浏览代码

HADOOP-19190. Skip ITestS3AEncryptionWithDefaultS3Settings.testEncryptionFileAttributes when bucket not encrypted with sse-kms (#6859)

Follow up of HADOOP-19190
Mukund Thakur 11 月之前
父节点
当前提交
f92a8ab8ae

+ 1 - 0
hadoop-tools/hadoop-aws/src/test/java/org/apache/hadoop/fs/s3a/ITestS3AEncryptionWithDefaultS3Settings.java

@@ -102,6 +102,7 @@ public class ITestS3AEncryptionWithDefaultS3Settings extends
   @Test
   @Test
   public void testEncryptionFileAttributes() throws Exception {
   public void testEncryptionFileAttributes() throws Exception {
     describe("Test for correct encryption file attributes for SSE-KMS with user default setting.");
     describe("Test for correct encryption file attributes for SSE-KMS with user default setting.");
+    skipIfBucketNotKmsEncrypted();
     Path path = path(createFilename(1024));
     Path path = path(createFilename(1024));
     byte[] data = dataset(1024, 'a', 'z');
     byte[] data = dataset(1024, 'a', 'z');
     S3AFileSystem fs = getFileSystem();
     S3AFileSystem fs = getFileSystem();