From 87b5a66a929599aa2b106447d1631e358a2cf151 Mon Sep 17 00:00:00 2001 From: taejin1221 Date: Tue, 3 Sep 2024 11:05:31 +0900 Subject: [PATCH] =?UTF-8?q?Chore:=20Test=EC=9A=A9=20application=20yml=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Related to: #2 --- .gitignore | 1 + .../kaboo_auth/KabooAuthApplicationTests.java | 2 ++ src/test/resources/application.yml | 18 ------------------ 3 files changed, 3 insertions(+), 18 deletions(-) delete mode 100644 src/test/resources/application.yml diff --git a/.gitignore b/.gitignore index df991c9..655245b 100644 --- a/.gitignore +++ b/.gitignore @@ -178,3 +178,4 @@ gradle-app.setting oauth.yml database.yml jwt.yml +application-test.yml diff --git a/src/test/java/kaboo/kaboo_auth/KabooAuthApplicationTests.java b/src/test/java/kaboo/kaboo_auth/KabooAuthApplicationTests.java index 70093fc..3da9996 100644 --- a/src/test/java/kaboo/kaboo_auth/KabooAuthApplicationTests.java +++ b/src/test/java/kaboo/kaboo_auth/KabooAuthApplicationTests.java @@ -2,8 +2,10 @@ import org.junit.jupiter.api.Test; import org.springframework.boot.test.context.SpringBootTest; +import org.springframework.test.context.ActiveProfiles; @SpringBootTest +@ActiveProfiles("test") class KabooAuthApplicationTests { @Test diff --git a/src/test/resources/application.yml b/src/test/resources/application.yml deleted file mode 100644 index 01468af..0000000 --- a/src/test/resources/application.yml +++ /dev/null @@ -1,18 +0,0 @@ -spring: - datasource: - url: jdbc:h2:mem:test;MODE=MariaDB;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE - username: sa - password: - driverClassName: org.h2.Driver - jpa: - database-platform: org.hibernate.dialect.H2Dialect - hibernate: - ddl-auto: update - show-sql: true - properties: - hibernate: - format_sql: true - h2: - console: - enabled: true - path: /h2-console \ No newline at end of file