Skip to content

Commit 4ec6f72

Browse files
committed
Update deployment image and enable search feature
1 parent 5a6c4f4 commit 4ec6f72

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

deployments/spring-app-deployment-v1.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ spec:
1515
spec:
1616
containers:
1717
- name: spring-app-container
18-
image: ghcr.io/octodemo/java-springboot-demo:197
18+
image: ghcr.io/octodemo/java-springboot-demo:196
1919
ports:
2020
- containerPort: 8086
2121
env:

deployments/spring-app-deployment-v2.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ spec:
1515
spec:
1616
containers:
1717
- name: spring-app-container
18-
image: ghcr.io/octodemo/java-springboot-demo:190
18+
image: ghcr.io/octodemo/java-springboot-demo:197
1919
ports:
2020
- containerPort: 8086
2121
env:

src/main/resources/application.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ spring.redis.port=6379
1515
# spring.data.jpa.repositories.enabled=false
1616
# spring.jpa.hibernate.naming.physical-strategy=org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl
1717
spring.jpa.hibernate.ddl-auto=none
18-
enableSearchFeature=false
18+
enableSearchFeature=true

src/test/java/net/codejava/JUnit5ExampleTest11.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,12 @@ void testEnableSearchFeature() {
5858
// print a comment about the value of enableSearchFeature
5959
System.out.println("\n\n");
6060
System.out.println("--------------------------------------------------------------------------------");
61-
System.out.println("Expected value of enableSearchFeature: false");
61+
System.out.println("Expected value of enableSearchFeature: true");
6262
System.out.println("Actual value of enableSearchFeature: " + appController.getEnableSearchFeature());
6363
System.out.println("--------------------------------------------------------------------------------");
6464

6565
// assert that the value of enableSearchFeature is true
66-
assertEquals(false, appController.getEnableSearchFeature());
66+
assertEquals(true, appController.getEnableSearchFeature());
6767

6868
System.out.println("\n\nTest11-2 Successful!\n\n");
6969
}

0 commit comments

Comments
 (0)