Skip to content

Commit

Permalink
Update deployment replicas and enable search feature
Browse files Browse the repository at this point in the history
  • Loading branch information
tsviz committed Jan 31, 2024
1 parent 1989d44 commit a0df9ec
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions deployments/spring-app-deployment-v1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kind: Deployment
metadata:
name: spring-app-deployment-v1
spec:
replicas: 3
replicas: 2
selector:
matchLabels:
app: spring-app
Expand All @@ -15,7 +15,7 @@ spec:
spec:
containers:
- name: spring-app-container
image: ghcr.io/octodemo/java-springboot-demo:167
image: ghcr.io/octodemo/java-springboot-demo:168
ports:
- containerPort: 8086
env:
Expand Down
4 changes: 2 additions & 2 deletions deployments/spring-app-deployment-v2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kind: Deployment
metadata:
name: spring-app-deployment-v2
spec:
replicas: 6
replicas: 4
selector:
matchLabels:
app: spring-app
Expand All @@ -15,7 +15,7 @@ spec:
spec:
containers:
- name: spring-app-container
image: ghcr.io/octodemo/java-springboot-demo:168
image: ghcr.io/octodemo/java-springboot-demo:169
ports:
- containerPort: 8086
env:
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ spring.redis.port=6379
# spring.data.jpa.repositories.enabled=false
# spring.jpa.hibernate.naming.physical-strategy=org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl
spring.jpa.hibernate.ddl-auto=none
enableSearchFeature=false
enableSearchFeature=true
4 changes: 2 additions & 2 deletions src/test/java/net/codejava/JUnit5ExampleTest11.java
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,12 @@ void testEnableSearchFeature() {
// print a comment about the value of enableSearchFeature
System.out.println("\n\n");
System.out.println("--------------------------------------------------------------------------------");
System.out.println("Expected value of enableSearchFeature: false");
System.out.println("Expected value of enableSearchFeature: true");
System.out.println("Actual value of enableSearchFeature: " + appController.getEnableSearchFeature());
System.out.println("--------------------------------------------------------------------------------");

// assert that the value of enableSearchFeature is true
assertEquals(false, appController.getEnableSearchFeature());
assertEquals(true, appController.getEnableSearchFeature());

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

0 comments on commit a0df9ec

Please sign in to comment.