-
Notifications
You must be signed in to change notification settings - Fork 947
Add tests to verify legacy signer code path #6473
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
@@ -274,6 +274,12 @@ | |||
<version>${awsjavasdk.version}</version> | |||
<scope>test</scope> | |||
</dependency> | |||
<dependency> | |||
<groupId>software.amazon.awssdk</groupId> | |||
<artifactId>http-auth-aws-crt</artifactId> |
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.
Added CRT dependency to be able to run sigV4a tests (otherwise it'd throw CRT not available error). There is a module to test functionalities w/o CRT https://github.com/aws/aws-sdk-java-v2/tree/master/test/crt-unavailable-tests
|
||
assertThatThrownBy(() -> client.multiAuthWithOnlySigv4a(r -> r.stringMember(""))) | ||
.hasMessageContaining(CRT_DEPENDENCY_ERROR_MESSAGE); | ||
.hasMessageContaining("dependency not available"); |
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.
CRT specific error is covered in https://github.com/aws/aws-sdk-java-v2/blob/master/test/crt-unavailable-tests/src/test/java/software/amazon/awssdk/auth/aws/AwsV4aAuthSchemeTest.java. Updated this test to verify resolution behavior
|
||
assertThatThrownBy(() -> client.simpleOperationWithNoEndpointParams(r -> r.stringMember(""))) | ||
.hasMessageContaining(CRT_DEPENDENCY_ERROR_MESSAGE); | ||
.hasMessageContaining("dependency not available"); |
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.
Same here. CRT specific error is covered in https://github.com/aws/aws-sdk-java-v2/blob/master/test/crt-unavailable-tests/src/test/java/software/amazon/awssdk/auth/aws/AwsV4aAuthSchemeTest.java. Updated this test to verify resolution behavior
} | ||
|
||
@Test | ||
public void asyncClient_signerOverriddenInConfig_takesPrecedence() { |
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.
super nit: some tests have public
others don't
|
This pull request has been closed and the conversation has been locked. Comments on closed PRs are hard for our team to see. If you need more assistance, please open a new issue that references this one. |
Add tests to verify that signer properties are propagated to legacy signers