Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DEMO
spring-boot
Commits
50aa2b60
Commit
50aa2b60
authored
Dec 30, 2019
by
Stephane Nicoll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simplify cache smoke tests
Closes gh-19325
parent
334f3e08
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
11 additions
and
140 deletions
+11
-140
pom.xml
...ing-boot-smoke-tests/spring-boot-smoke-test-cache/pom.xml
+10
-81
application.properties
...moke-test-cache/src/main/resources/application.properties
+1
-16
ehcache.xml
...ring-boot-smoke-test-cache/src/main/resources/ehcache.xml
+0
-7
hazelcast.xml
...ng-boot-smoke-test-cache/src/main/resources/hazelcast.xml
+0
-24
infinispan.xml
...g-boot-smoke-test-cache/src/main/resources/infinispan.xml
+0
-12
No files found.
spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-cache/pom.xml
View file @
50aa2b60
...
...
@@ -28,6 +28,16 @@
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-actuator
</artifactId>
</dependency>
<!-- cache implementation -->
<dependency>
<groupId>
javax.cache
</groupId>
<artifactId>
cache-api
</artifactId>
</dependency>
<dependency>
<groupId>
org.ehcache
</groupId>
<artifactId>
ehcache
</artifactId>
<scope>
runtime
</scope>
</dependency>
<!-- Test -->
<dependency>
<groupId>
org.springframework.boot
</groupId>
...
...
@@ -43,85 +53,4 @@
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>
caffeine
</id>
<dependencies>
<dependency>
<groupId>
com.github.ben-manes.caffeine
</groupId>
<artifactId>
caffeine
</artifactId>
</dependency>
</dependencies>
</profile>
<profile>
<id>
couchbase
</id>
<dependencies>
<dependency>
<groupId>
com.couchbase.client
</groupId>
<artifactId>
java-client
</artifactId>
</dependency>
<dependency>
<groupId>
com.couchbase.client
</groupId>
<artifactId>
couchbase-spring-cache
</artifactId>
</dependency>
</dependencies>
</profile>
<profile>
<id>
ehcache2
</id>
<dependencies>
<dependency>
<groupId>
net.sf.ehcache
</groupId>
<artifactId>
ehcache
</artifactId>
</dependency>
</dependencies>
</profile>
<profile>
<id>
ehcache
</id>
<dependencies>
<dependency>
<groupId>
javax.cache
</groupId>
<artifactId>
cache-api
</artifactId>
</dependency>
<dependency>
<groupId>
org.ehcache
</groupId>
<artifactId>
ehcache
</artifactId>
</dependency>
</dependencies>
</profile>
<profile>
<id>
hazelcast
</id>
<dependencies>
<dependency>
<groupId>
com.hazelcast
</groupId>
<artifactId>
hazelcast
</artifactId>
</dependency>
<dependency>
<groupId>
com.hazelcast
</groupId>
<artifactId>
hazelcast-spring
</artifactId>
</dependency>
</dependencies>
</profile>
<profile>
<id>
infinispan
</id>
<dependencies>
<dependency>
<groupId>
org.infinispan
</groupId>
<artifactId>
infinispan-spring5-embedded
</artifactId>
</dependency>
<dependency>
<groupId>
org.infinispan
</groupId>
<artifactId>
infinispan-jcache
</artifactId>
</dependency>
</dependencies>
</profile>
<profile>
<id>
redis
</id>
<dependencies>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-data-redis
</artifactId>
</dependency>
</dependencies>
</profile>
</profiles>
</project>
spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-cache/src/main/resources/application.properties
View file @
50aa2b60
management.endpoints.web.exposure.include
=
*
#
# Infinispan configuration file location.
#
spring.cache.infinispan.config
=
classpath:infinispan.xml
#
# JCache configuration (example with ehcache 3).
#
#spring.cache.jcache.config=classpath:ehcache3.xml
#
# Caffeine configuration
#
spring.cache.caffeine.spec
=
maximumSize=200,expireAfterAccess=600s
spring.cache.jcache.config
=
classpath:ehcache3.xml
spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-cache/src/main/resources/ehcache.xml
deleted
100644 → 0
View file @
334f3e08
<ehcache
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation=
"ehcache.xsd"
>
<cache
name=
"countries"
maxEntriesLocalHeap=
"200"
timeToLiveSeconds=
"600"
>
</cache>
</ehcache>
spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-cache/src/main/resources/hazelcast.xml
deleted
100644 → 0
View file @
334f3e08
<hazelcast
xsi:schemaLocation=
"http://www.hazelcast.com/schema/config hazelcast-config-3.12.xsd"
xmlns=
"http://www.hazelcast.com/schema/config"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
>
<map
name=
"countries"
>
<time-to-live-seconds>
600
</time-to-live-seconds>
<max-size>
200
</max-size>
</map>
<cache
name=
"countries"
>
<eviction
size=
"200"
/>
<statistics-enabled>
true
</statistics-enabled>
<management-enabled>
true
</management-enabled>
</cache>
<network>
<join>
<tcp-ip
enabled=
"false"
/>
<multicast
enabled=
"false"
/>
</join>
</network>
</hazelcast>
spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-cache/src/main/resources/infinispan.xml
deleted
100644 → 0
View file @
334f3e08
<?xml version="1.0" encoding="UTF-8"?>
<infinispan>
<cache-container
default-cache=
"default"
>
<local-cache
name=
"default"
/>
<local-cache
name=
"countries"
>
<eviction
max-entries=
"200"
/>
<expiration
lifespan=
"600000"
/>
</local-cache>
</cache-container>
</infinispan>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment