Skip to content

Commit

Permalink
오타수정
Browse files Browse the repository at this point in the history
  • Loading branch information
pspace-jwkwak committed Nov 10, 2023
1 parent 51d52b9 commit 5807184
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
11 changes: 8 additions & 3 deletions java/sdk1/src/main/java/org/example/test/Analytics.java
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,9 @@ public void test_get_bucket_analytics() {
}

@Test
@Tag("Change")
// 버킷 분석 설정이 변경되는지 확인
public void test_update_bucket_analytics() {
@Tag("Put")
// 버킷 분석 설정이 여러개 가능한지 확인
public void test_add_bucket_analytics() {
var bucketName = getNewBucket();
var targetBucketName = getNewBucket();
var client = getClient();
Expand All @@ -83,13 +83,18 @@ public void test_update_bucket_analytics() {
.withS3BucketDestination(new AnalyticsS3BucketDestination()
.withBucketArn("arn:aws:s3:::" + targetBucketName)
.withFormat("CSV"))))));
var response = client.listBucketAnalyticsConfigurations(new ListBucketAnalyticsConfigurationsRequest().withBucketName(bucketName));
assertEquals(1, response.getAnalyticsConfigurationList().size());

client.setBucketAnalyticsConfiguration(bucketName, new AnalyticsConfiguration().withId("test2")
.withStorageClassAnalysis(new StorageClassAnalysis()
.withDataExport(new StorageClassAnalysisDataExport().withOutputSchemaVersion("V_1")
.withDestination(new AnalyticsExportDestination()
.withS3BucketDestination(new AnalyticsS3BucketDestination()
.withBucketArn("arn:aws:s3:::" + targetBucketName)
.withFormat("CSV"))))));
response = client.listBucketAnalyticsConfigurations(new ListBucketAnalyticsConfigurationsRequest().withBucketName(bucketName));
assertEquals(2, response.getAnalyticsConfigurationList().size());
}

@Test
Expand Down
8 changes: 4 additions & 4 deletions java/sdk1/src/test/java/org/example/s3tests/Analytics.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ public void test_get_bucket_analytics() {
}

@Test
@Tag("Change")
// 버킷 분석 설정이 변경되는지 확인
public void test_update_bucket_analytics() {
Test.test_update_bucket_analytics();
@Tag("Put")
// 버킷 분석 설정이 여러개 가능한지 확인
public void test_add_bucket_analytics() {
Test.test_add_bucket_analytics();
}

@Test
Expand Down

0 comments on commit 5807184

Please sign in to comment.