Skip to content

Commit

Permalink
Delete Test bucket after completion HeadObjectIntegrationTest
Browse files Browse the repository at this point in the history
  • Loading branch information
John Viegas authored and joviegas committed Feb 16, 2021
1 parent ec332a9 commit 4afdf9f
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
import java.io.IOException;
import java.nio.charset.StandardCharsets;
import java.util.zip.GZIPOutputStream;

import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.junit.Test;
import software.amazon.awssdk.core.sync.RequestBody;
Expand Down Expand Up @@ -61,4 +63,9 @@ public void syncClientSupportsGzippedObjects() {
HeadObjectResponse response = s3.headObject(r -> r.bucket(BUCKET).key(GZIPPED_KEY));
assertThat(response.contentEncoding()).isEqualTo("gzip");
}

@AfterClass
public static void cleanup() {
deleteBucketAndAllContents(BUCKET);
}
}

0 comments on commit 4afdf9f

Please sign in to comment.