-
Notifications
You must be signed in to change notification settings - Fork 9.2k
HADOOP-16505. Add ability to register custom signer with AWS SignerFactory #1280
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
Conversation
| } | ||
|
|
||
| @Test | ||
| public void testCustomSignerOverride() throws AssertionError { |
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.
Please use a testing principle in your test: Arrange, Act, Assert - http://wiki.c2.com/?ArrangeActAssert
...tools/hadoop-aws/src/test/java/org/apache/hadoop/fs/s3a/TestS3ASigningAlgorithmOverride.java
Outdated
Show resolved
Hide resolved
| @Test | ||
| public void testCustomSignerOverride() throws AssertionError { | ||
| LOG.debug("Inside createConfiguration..."); | ||
| assertTrue(assertIsCustomSignerLoaded()); |
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.
This does not need to be factored out in a separate method.
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.
Refactored the code
...tools/hadoop-aws/src/test/java/org/apache/hadoop/fs/s3a/TestS3ASigningAlgorithmOverride.java
Outdated
Show resolved
Hide resolved
...tools/hadoop-aws/src/test/java/org/apache/hadoop/fs/s3a/TestS3ASigningAlgorithmOverride.java
Outdated
Show resolved
Hide resolved
|
🎊 +1 overall
This message was automatically generated. |
|
🎊 +1 overall
This message was automatically generated. |
|
🎊 +1 overall
This message was automatically generated. |
|
🎊 +1 overall
This message was automatically generated. |
|
🎊 +1 overall
This message was automatically generated. |
|
closing this as its been superceded by the other patches from Sid Can you experiment with the current trunk branch and verify it meets your needs? If it doesn't -now is the time to make the appropriate changes |
Currently, the AWS SignerFactory restricts the class of Signer algorithms that can be used.
We require an ability to register a custom Signer. The
SignerFactorysupports this functionality through itsregisterSignermethod.By providing a fully qualified classname to the existing parameter
fs.s3a.signing-algorithm, the custom signer can be registered.