-
Notifications
You must be signed in to change notification settings - Fork 8.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HADOOP-18918. ITestS3GuardTool fails if SSE/DSSE encryption is used #6165
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,6 +38,7 @@ | |
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.S3ATestUtils.getLandsatCSVFile; | ||
import static org.apache.hadoop.fs.s3a.S3ATestUtils.skipIfAnyEncryptionSet; | ||
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.Uploads; | ||
|
@@ -71,6 +72,7 @@ public void testLandsatBucketRequireGuarded() throws Throwable { | |
@Test | ||
public void testLandsatBucketRequireUnencrypted() throws Throwable { | ||
skipIfClientSideEncryption(); | ||
skipIfAnyEncryptionSet(getConfiguration()); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. instead of skipping, how about Gets better coverage even if encryption settings are used. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nice, it would be better coverage regardless of encryption configured. Tested the changes with and without encryption. |
||
run(BucketInfo.NAME, | ||
"-" + BucketInfo.ENCRYPTION_FLAG, "none", | ||
getLandsatCSVFile(getConfiguration())); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
think we can remove this now?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done