Skip to content

Commit

Permalink
[hotfix] s3 버킷 이름 변경 이슈
Browse files Browse the repository at this point in the history
  • Loading branch information
0112leesy committed Jan 3, 2024
1 parent fbead22 commit fcbf9c8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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("파일을 업로드한다.")
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit fcbf9c8

Please sign in to comment.