Skip to content

Conversation

zoewangg
Copy link
Contributor

Add tests to verify that signer properties are propagated to legacy signers

@zoewangg zoewangg requested a review from a team as a code owner October 14, 2025 21:23
@@ -274,6 +274,12 @@
<version>${awsjavasdk.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>software.amazon.awssdk</groupId>
<artifactId>http-auth-aws-crt</artifactId>
Copy link
Contributor Author

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");
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.


assertThatThrownBy(() -> client.simpleOperationWithNoEndpointParams(r -> r.stringMember("")))
.hasMessageContaining(CRT_DEPENDENCY_ERROR_MESSAGE);
.hasMessageContaining("dependency not available");
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

}

@Test
public void asyncClient_signerOverriddenInConfig_takesPrecedence() {
Copy link
Contributor

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

@sonarqubecloud
Copy link

@zoewangg zoewangg added this pull request to the merge queue Oct 15, 2025
Merged via the queue into master with commit 27d33d2 Oct 15, 2025
38 checks passed
@github-actions
Copy link

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 15, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants