From 7809f58f9ede48c9f813f04623a02b1572b3bfa7 Mon Sep 17 00:00:00 2001 From: juchan204 Date: Wed, 4 Dec 2024 10:13:26 +0900 Subject: [PATCH] =?UTF-8?q?MATE-85=20:=20[FIX]=20deploy=20test=20=EC=8B=9C?= =?UTF-8?q?=EB=8F=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/example/mate/MateApplicationTests.java | 8 +++++++- src/test/resources/application-test.yml | 13 ------------- 2 files changed, 7 insertions(+), 14 deletions(-) diff --git a/src/test/java/com/example/mate/MateApplicationTests.java b/src/test/java/com/example/mate/MateApplicationTests.java index 5af75f44..545ece3c 100644 --- a/src/test/java/com/example/mate/MateApplicationTests.java +++ b/src/test/java/com/example/mate/MateApplicationTests.java @@ -5,7 +5,13 @@ import org.springframework.boot.context.properties.EnableConfigurationProperties; import org.springframework.boot.test.context.SpringBootTest; -@SpringBootTest +@SpringBootTest(properties = { + "jwt.secret_key=testsecretkey12345678901234567890", + "oauth.naver.client-id=test_client_id", + "oauth.naver.redirect-uri=http://localhost:8080/callback", + "oauth.naver.client-secret=test_client_secret", + "openweather.api.key=test_api_key" +}) @EnableConfigurationProperties(OAuthConfig.class) class MateApplicationTests { diff --git a/src/test/resources/application-test.yml b/src/test/resources/application-test.yml index b5d28357..a9db6f16 100644 --- a/src/test/resources/application-test.yml +++ b/src/test/resources/application-test.yml @@ -18,16 +18,3 @@ spring: console: enabled: true path: /h2-console - -oauth: - naver: - client-id: ${NAVER_CLIENT_ID} - redirect-uri: ${NAVER_REDIRECT_URI} - client-secret: ${NAVER_CLIENT_SECRET} - -jwt: - secret_key: ${JWT_SECRET_KEY} - -openweather: - api: - key: ${OPENWEATHER_API_KEY} \ No newline at end of file