application test : chaos monkey

This commit is contained in:
haerong22
2021-03-02 17:23:41 +09:00
parent 53bda6ff02
commit 0774762ff7
2 changed files with 29 additions and 3 deletions

View File

@@ -39,6 +39,17 @@
<artifactId>lombok</artifactId>
</dependency>
<dependency>
<groupId>de.codecentric</groupId>
<artifactId>chaos-monkey-spring-boot</artifactId>
<version>2.1.1</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
@@ -62,8 +73,6 @@
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.vintage</groupId>
<artifactId>junit-vintage-engine</artifactId>

View File

@@ -1,4 +1,7 @@
spring:
profiles:
active: chaos-monkey
datasource:
url: jdbc:postgresql://localhost:5432/study
username: study
@@ -6,10 +9,24 @@ spring:
jpa:
hibernate:
ddl-auto: create
ddl-auto: update
generate-ddl: true
properties:
format_sql: true
hibernate:
show-sql: true
management:
endpoint:
chaosmonkey:
enabled: true
endpoints:
web:
exposure:
include: health,info,chaosmonkey
chaos:
monkey:
watcher:
repository: true