steveloughran commented on a change in pull request #1823: HADOOP-16794 S3
Encryption keys not propagating correctly during copy operation
URL: https://github.com/apache/hadoop/pull/1823#discussion_r384733189
##########
File path:
hadoop-tools/hadoop-aws/src/test/java/org/apache/hadoop/fs/s3a/AbstractS3ATestBase.java
##########
@@ -159,4 +168,63 @@ protected void assertStatusCode(AWSServiceIOException e,
int code)
throw e;
}
}
+
+ /**
+ * Assert that a path is encrypted with right encryption settings.
+ * @param path file path.
+ * @param algorithm encryption algorithm.
+ * @param kmsKeyArn
+ * @throws IOException
+ */
+ protected void assertEncrypted(final Path path,
+ final S3AEncryptionMethods algorithm,
+ final String kmsKeyArn)
+ throws IOException {
+ ObjectMetadata md = getFileSystem().getObjectMetadata(path);
+ String details = String.format(
+ "file %s with encryption algorthm %s and key %s",
Review comment:
Typo
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]