File tree 3 files changed +16
-4
lines changed
3 files changed +16
-4
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,15 @@ services:
18
18
volumes :
19
19
- postgresql-data:/var/lib/postgresql/data
20
20
21
+ redis :
22
+ networks :
23
+ - tsvi_network
24
+ container_name : redis_container
25
+ image : redis:latest
26
+ restart : on-failure
27
+ ports :
28
+ - " 6379:6379"
29
+
21
30
app :
22
31
networks :
23
32
- tsvi_network
@@ -29,12 +38,15 @@ services:
29
38
container_name : spring_app_container
30
39
depends_on :
31
40
- database
41
+ - redis
32
42
restart : on-failure
33
43
environment :
34
44
- USER_NAME=postgres
35
45
- DB_URL=jdbc:postgresql://database:5432/postgres
36
46
- PASSWORD=postgres
37
47
- CHANGELOG_VERSION=changelog_version-3.3.xml
48
+ - REDIS_HOST=redis
49
+ - REDIS_PORT=6379
38
50
39
51
volumes :
40
- postgresql-data :
52
+ postgresql-data:
Original file line number Diff line number Diff line change @@ -13,4 +13,4 @@ spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect
13
13
spring.jpa.properties.hibernate.temp.use_jdbc_metadata_defaults =false
14
14
spring.redis.host =localhost
15
15
spring.redis.port =6379
16
- enableSearchFeature =false
16
+ enableSearchFeature =true
Original file line number Diff line number Diff line change @@ -35,11 +35,11 @@ void testInsert() {
35
35
@ Test
36
36
void testEnableSearchFeature () {
37
37
// print a comment about the value of enableSearchFeature
38
- System .out .println ("Expected value of enableSearchFeature: false " );
38
+ System .out .println ("Expected value of enableSearchFeature: true " );
39
39
System .out .println ("Actual value of enableSearchFeature: " + appController .getEnableSearchFeature ());
40
40
41
41
// assert that the value of enableSearchFeature is true
42
- assertEquals (false , appController .getEnableSearchFeature ());
42
+ assertEquals (true , appController .getEnableSearchFeature ());
43
43
44
44
System .out .println ("\n \n Test11-2 Successful!\n \n " );
45
45
}
You can’t perform that action at this time.
0 commit comments