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