Skip to content
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

misc: add Accept header to all RpcV2Cbor requests #1170

Merged
merged 6 commits into from
Oct 30, 2024

Conversation

lauzadis
Copy link
Contributor

Issue #

Description of changes

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

@lauzadis lauzadis requested a review from a team as a code owner October 30, 2024 14:13

This comment has been minimized.

This comment has been minimized.

Copy link
Contributor

@ianbotsf ianbotsf left a comment

Choose a reason for hiding this comment

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

Can we add/update some tests please?

This comment has been minimized.

1 similar comment

This comment has been minimized.

operations: [GetFoo, GetFooStreaming]
}

@http(method: "POST", uri: "/foo")
Copy link
Contributor

Choose a reason for hiding this comment

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

Small nit, feel free to ignore it: This looks like it should be "GET" instead of "POST"

Copy link
Contributor

Choose a reason for hiding this comment

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

Same thing for the GetFooStreaming operation

Copy link
Contributor Author

Choose a reason for hiding this comment

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

If we make it a GET request Smithy fails with some "DANGER" level validations about sending bodies with GET. Setting up POST operations is simpler and the distinction is not important to the test

ctx.generationCtx.delegator.flushWriters()

val actual = ctx.manifest.expectFileString("/src/main/kotlin/com/test/DefaultTestClient.kt")
println(actual)
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: Stray print statements here and in the next test

Copy link

Affected Artifacts

Changed in size
Artifact Pull Request (bytes) Latest Release (bytes) Delta (bytes) Delta (percentage)
aws-signing-tests-jvm.jar 456,568 456,608 -40 -0.01%
http-test-jvm.jar 58,718 58,725 -7 -0.01%
test-suite-jvm.jar 93,931 97,936 -4,005 -4.09%

@lauzadis lauzadis merged commit 40bf65d into main Oct 30, 2024
16 checks passed
@lauzadis lauzadis deleted the misc-cbor-accept-header branch October 30, 2024 17:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants