Skip to content

Add event stream protocol tests for client#1176

Open
joewyz wants to merge 1 commit into
mainfrom
joewyz/event-stream-protocol-tests
Open

Add event stream protocol tests for client#1176
joewyz wants to merge 1 commit into
mainfrom
joewyz/event-stream-protocol-tests

Conversation

@joewyz
Copy link
Copy Markdown
Contributor

@joewyz joewyz commented May 14, 2026

Add event stream protocol tests for client. Will work on fixes for skipped test cases later.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@joewyz joewyz requested a review from sugmanue May 14, 2026 00:03
// We dont ignore defaults on input shapes
"aws.protocoltests.restjson#OperationWithDefaults",
},
skipTests = {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Is this list right? We had no exclusions before and now we have a ton?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Most of the skipped blob tests can be removed given that we released the change to update the test model. Will work on the remaining fixes later.

for (Schema member : schema.members()) {
if (member.hasTrait(TraitKey.EVENT_HEADER_TRAIT)) {
if (member.hasTrait(TraitKey.EVENT_HEADER_TRAIT)
&& headersDeserializer.headers.containsKey(member.memberName())) {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Why do we need this?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I added this to prevent it from reading all the members in the structure, otherwise all header input tests would fail.
example structure:

structure HeadersEvent {
    @eventHeader
    booleanHeader: Boolean

    @eventHeader
    byteHeader: Byte

    @eventHeader
    shortHeader: Short

    @eventHeader
    intHeader: Integer

    @eventHeader
    longHeader: Long

    @eventHeader
    blobHeader: Blob

    @eventHeader
    stringHeader: String

    @eventHeader
    timestampHeader: DateTime
}

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.

2 participants