diff --git a/user-service/src/main/java/kr/mybrary/userservice/user/domain/storage/AmazonS3Service.java b/user-service/src/main/java/kr/mybrary/userservice/user/domain/storage/AmazonS3Service.java index 7fc3dd5..b3ee361 100644 --- a/user-service/src/main/java/kr/mybrary/userservice/user/domain/storage/AmazonS3Service.java +++ b/user-service/src/main/java/kr/mybrary/userservice/user/domain/storage/AmazonS3Service.java @@ -22,8 +22,8 @@ public class AmazonS3Service implements StorageService { @Value("${spring.cloud.aws.s3.bucket}") private String bucketName; private static final String RESIZED_POSTFIX = "-resized"; - private static final String BASE_URL = "https://mybrary-user-service.s3.ap-northeast-2.amazonaws.com/"; - private static final String RESIZED_BASE_URL = "https://mybrary-user-service-resized.s3.ap-northeast-2.amazonaws.com/"; + private static final String BASE_URL = "https://mybrary-user.s3.ap-northeast-2.amazonaws.com/"; + private static final String RESIZED_BASE_URL = "https://mybrary-user-resized.s3.ap-northeast-2.amazonaws.com/"; @Override public String putFile(MultipartFile multipartFile, String path) { diff --git a/user-service/src/test/java/kr/mybrary/userservice/user/domain/storage/AmazonS3ServiceTest.java b/user-service/src/test/java/kr/mybrary/userservice/user/domain/storage/AmazonS3ServiceTest.java index a344c58..5db0b5e 100644 --- a/user-service/src/test/java/kr/mybrary/userservice/user/domain/storage/AmazonS3ServiceTest.java +++ b/user-service/src/test/java/kr/mybrary/userservice/user/domain/storage/AmazonS3ServiceTest.java @@ -30,8 +30,8 @@ class AmazonS3ServiceTest { @InjectMocks AmazonS3Service amazonS3Service; - private static final String BASE_URL = "https://mybrary-user-service.s3.ap-northeast-2.amazonaws.com/"; - private static final String RESIZED_BASE_URL = "https://mybrary-user-service-resized.s3.ap-northeast-2.amazonaws.com/"; + private static final String BASE_URL = "https://mybrary-user.s3.ap-northeast-2.amazonaws.com/"; + private static final String RESIZED_BASE_URL = "https://mybrary-user-resized.s3.ap-northeast-2.amazonaws.com/"; @Test @DisplayName("파일을 업로드한다.") @@ -125,7 +125,7 @@ void hasResizedFilesTrue() { @DisplayName("리사이징된 파일의 url을 반환한다.") void getResizedFileUrl() { // given - String url = "https://mybrary-user-service.s3.ap-northeast-2.amazonaws.com/path"; + String url = "https://mybrary-user.s3.ap-northeast-2.amazonaws.com/path"; String size = "small"; // when