Skip to content

Conversation

@ianbotsf
Copy link
Contributor

Issue #

(none)

Description of changes

This change prepares for SESv2 Sigv4a support. This won't take effect until additional support rolls out from the service side.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@ianbotsf ianbotsf added the no-changelog Indicates that a changelog entry isn't required for a pull request. Use sparingly. label Oct 25, 2024
@ianbotsf ianbotsf requested a review from a team as a code owner October 25, 2024 17:47
class Sigv4aTest {
@Test
@Ignore // TODO enable once SESv2 model adds endpointId and Sigv4a

Copy link
Member

Choose a reason for hiding this comment

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

nit: remove blank line

}.use { ses ->
assertFailsWith<HttpException> {
ses.sendEmail {
// endpointId = "bdm3x3zl.n5x" // TODO uncomment
Copy link
Member

Choose a reason for hiding this comment

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

Will this TODO be completed in this PR?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No, we'll need to follow up. There's no public issue to track for doing so.

assertEquals(1, interceptor.requests.size)
val request = interceptor.requests.single()

assertContains("bdm3x3zl.n5x.endpoints.email.amazonaws.com", request.url.host.toString()) // Correct endpoint?
Copy link
Member

Choose a reason for hiding this comment

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

Is it the correct endpoint?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, it is. The comment is probably misleading now, I'll update it.

@sonarqubecloud
Copy link

@github-actions
Copy link

A new generated diff is ready to view.

@github-actions
Copy link

Affected Artifacts

Changed in size
Artifact Pull Request (bytes) Latest Release (bytes) Delta (bytes) Delta (percentage)
sesv2-jvm.jar 3,346,919 3,343,381 3,538 0.11%
sesv2-jvm.jar closure 11,180,189 11,176,651 3,538 0.03%

@ianbotsf ianbotsf merged commit 4b8c43a into main Oct 25, 2024
18 checks passed
@ianbotsf ianbotsf deleted the feat-sesv2-sigv4a branch October 25, 2024 18:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-changelog Indicates that a changelog entry isn't required for a pull request. Use sparingly.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants