From ddcf5686d4c67995a124690d01a911ddf75c785b Mon Sep 17 00:00:00 2001 From: JIHO LEE <161289673+GitJIHO@users.noreply.github.com> Date: Mon, 4 Nov 2024 23:32:14 +0900 Subject: [PATCH] =?UTF-8?q?Deploy:=20=ED=94=84=EB=A1=A0=ED=8A=B8=20?= =?UTF-8?q?=EB=B0=B0=ED=8F=AC=EC=A3=BC=EC=86=8C=20=EB=B3=80=EA=B2=BD?= =?UTF-8?q?=EC=97=90=20=EB=94=B0=EB=A5=B8=20=EC=83=81=EC=88=98=ED=99=94?= =?UTF-8?q?=EA=B0=92=20=EB=B3=80=EA=B2=BD=20(#157)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * deploy: 프론트 배포주소 변경에 따른 서버 변경 * test: 테스트 mock값 변경 --- .../java/com/example/sinitto/auth/service/KakaoApiService.java | 2 +- .../com/example/sinitto/auth/service/KakaoApiServiceTest.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/example/sinitto/auth/service/KakaoApiService.java b/src/main/java/com/example/sinitto/auth/service/KakaoApiService.java index cfae5c0c..71fbe33a 100644 --- a/src/main/java/com/example/sinitto/auth/service/KakaoApiService.java +++ b/src/main/java/com/example/sinitto/auth/service/KakaoApiService.java @@ -20,7 +20,7 @@ public class KakaoApiService { private static final String KAKAO_AUTH_BASE_URL = "https://kauth.kakao.com/oauth"; private static final String KAKAO_API_BASE_URL = "https://kapi.kakao.com/v2/user"; private static final String LOCALHOST_URL = "localhost:5173"; - private static final String FRONT_URL = "sinitto.s3-website.ap-northeast-2.amazonaws.com"; + private static final String FRONT_URL = "dc9u22hnkwb24.cloudfront.net"; private final RestTemplate restTemplate; private final KakaoProperties kakaoProperties; diff --git a/src/test/java/com/example/sinitto/auth/service/KakaoApiServiceTest.java b/src/test/java/com/example/sinitto/auth/service/KakaoApiServiceTest.java index 68262147..794e4a9a 100644 --- a/src/test/java/com/example/sinitto/auth/service/KakaoApiServiceTest.java +++ b/src/test/java/com/example/sinitto/auth/service/KakaoApiServiceTest.java @@ -57,7 +57,7 @@ void getAuthorizationUrlTestWithDevUri() { @DisplayName("getAuthorizationUrl 메소드 테스트 - 배포 uri 포홤 시") void getAuthorizationUrlTestWithAwsUri() { //given - when(httpServletRequest.getHeader("Referer")).thenReturn("http://sinitto.s3-website.ap-northeast-2.amazonaws.com"); + when(httpServletRequest.getHeader("Referer")).thenReturn("https://dc9u22hnkwb24.cloudfront.net"); when(kakaoProperties.redirectUri()).thenReturn(redirectUri); when(kakaoProperties.clientId()).thenReturn(clientId);