From 0774762ff794647a5398e7fcfb5f53c3a6750de3 Mon Sep 17 00:00:00 2001 From: haerong22 Date: Tue, 2 Mar 2021 17:23:41 +0900 Subject: [PATCH] application test : chaos monkey --- application-test/app-test/pom.xml | 13 +++++++++++-- .../src/main/resources/application.yml | 19 ++++++++++++++++++- 2 files changed, 29 insertions(+), 3 deletions(-) diff --git a/application-test/app-test/pom.xml b/application-test/app-test/pom.xml index e6d23bb4..e3ad73ad 100644 --- a/application-test/app-test/pom.xml +++ b/application-test/app-test/pom.xml @@ -39,6 +39,17 @@ lombok + + de.codecentric + chaos-monkey-spring-boot + 2.1.1 + + + + org.springframework.boot + spring-boot-starter-actuator + + org.springframework.boot spring-boot-starter-test @@ -62,8 +73,6 @@ test - - org.junit.vintage junit-vintage-engine diff --git a/application-test/app-test/src/main/resources/application.yml b/application-test/app-test/src/main/resources/application.yml index 22eeb9ad..3437ec1f 100644 --- a/application-test/app-test/src/main/resources/application.yml +++ b/application-test/app-test/src/main/resources/application.yml @@ -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 \ No newline at end of file