-
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
Conversation
Endpoint:
|
🎊 +1 overall
This message was automatically generated. |
@ahmarsuhail @mehakmeet @mukund-thakur could you please review this PR? |
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 should remove the encryption setting from conf instead of skipping.
@@ -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 comment
The reason will be displayed to describe this comment to others. Learn more.
instead of skipping, how about removeBaseAndBucketOverrides(getConfiguration(), Constants.S3_ENCRYPTION_ALGORITHM);
and you can remove the skipIfClientSideEncryption()
too?
Gets better coverage even if encryption settings are used.
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.
Nice, it would be better coverage regardless of encryption configured. Tested the changes with and without encryption.
Thanks @ahmarsuhail
💔 -1 overall
This message was automatically generated. |
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.
Remove code in S3ATestUtils and Yetus is complaining about a unit test failure.
* | ||
* @param configuration configuration to probe. | ||
*/ | ||
public static void skipIfAnyEncryptionSet(Configuration configuration) throws IOException { |
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
|
💔 -1 overall
This message was automatically generated. |
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.
+1, LGTM. Merging.
…pache#6165) HADOOP-18918. ITestS3GuardTool fails if SSE/DSSE encryption is used. Contributed by Viraj Jasani.
No description provided.