HADOOP-18918. ITestS3GuardTool fails if SSE/DSSE encryption is used (#6165)
HADOOP-18918. ITestS3GuardTool fails if SSE/DSSE encryption is used. Contributed by Viraj Jasani.
This commit is contained in:
parent
215cb15beb
commit
acaf8ef3ca
@ -33,11 +33,13 @@
|
|||||||
import org.apache.hadoop.test.LambdaTestUtils;
|
import org.apache.hadoop.test.LambdaTestUtils;
|
||||||
import org.apache.hadoop.util.StringUtils;
|
import org.apache.hadoop.util.StringUtils;
|
||||||
|
|
||||||
|
import static org.apache.hadoop.fs.s3a.Constants.S3_ENCRYPTION_ALGORITHM;
|
||||||
import static org.apache.hadoop.fs.s3a.MultipartTestUtils.assertNoUploadsAt;
|
import static org.apache.hadoop.fs.s3a.MultipartTestUtils.assertNoUploadsAt;
|
||||||
import static org.apache.hadoop.fs.s3a.MultipartTestUtils.clearAnyUploads;
|
import static org.apache.hadoop.fs.s3a.MultipartTestUtils.clearAnyUploads;
|
||||||
import static org.apache.hadoop.fs.s3a.MultipartTestUtils.countUploadsAt;
|
import static org.apache.hadoop.fs.s3a.MultipartTestUtils.countUploadsAt;
|
||||||
import static org.apache.hadoop.fs.s3a.MultipartTestUtils.createPartUpload;
|
import static org.apache.hadoop.fs.s3a.MultipartTestUtils.createPartUpload;
|
||||||
import static org.apache.hadoop.fs.s3a.S3ATestUtils.getLandsatCSVFile;
|
import static org.apache.hadoop.fs.s3a.S3ATestUtils.getLandsatCSVFile;
|
||||||
|
import static org.apache.hadoop.fs.s3a.S3ATestUtils.removeBaseAndBucketOverrides;
|
||||||
import static org.apache.hadoop.fs.s3a.s3guard.S3GuardTool.BucketInfo;
|
import static org.apache.hadoop.fs.s3a.s3guard.S3GuardTool.BucketInfo;
|
||||||
import static org.apache.hadoop.fs.s3a.s3guard.S3GuardTool.E_BAD_STATE;
|
import static org.apache.hadoop.fs.s3a.s3guard.S3GuardTool.E_BAD_STATE;
|
||||||
import static org.apache.hadoop.fs.s3a.s3guard.S3GuardTool.Uploads;
|
import static org.apache.hadoop.fs.s3a.s3guard.S3GuardTool.Uploads;
|
||||||
@ -70,7 +72,7 @@ public void testLandsatBucketRequireGuarded() throws Throwable {
|
|||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testLandsatBucketRequireUnencrypted() throws Throwable {
|
public void testLandsatBucketRequireUnencrypted() throws Throwable {
|
||||||
skipIfClientSideEncryption();
|
removeBaseAndBucketOverrides(getConfiguration(), S3_ENCRYPTION_ALGORITHM);
|
||||||
run(BucketInfo.NAME,
|
run(BucketInfo.NAME,
|
||||||
"-" + BucketInfo.ENCRYPTION_FLAG, "none",
|
"-" + BucketInfo.ENCRYPTION_FLAG, "none",
|
||||||
getLandsatCSVFile(getConfiguration()));
|
getLandsatCSVFile(getConfiguration()));
|
||||||
|
Loading…
Reference in New Issue
Block a user