-
Notifications
You must be signed in to change notification settings - Fork 633
test(clients): update payload types in client tests #7373
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
userId: "user", | ||
contentType: "text/plain; charset=utf-8", | ||
inputStream: "hello world!", | ||
inputStream: Readable.from(new Uint8Array([1, 2, 3, 4, 5, 6, 7, 8])), |
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.
rather than always being set to UNSIGNED-PAYLOAD because the operation is modeled as having a data stream, in schema-serde the sigv4 signer sets a sha256 hash if the input is buffered (string or Buffer) and UNSIGNED-PAYLOAD only when it is a stream.
return await client.putObject({ | ||
Path: "foo.avi", | ||
Body: "binary body", | ||
Body: Readable.from(new Uint8Array([1, 2, 3, 4, 5, 6, 7, 8])), |
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 as LexRuntime
42185fb
to
67f755f
Compare
body: { | ||
*[Symbol.asyncIterator]() { | ||
// see https://docs.aws.amazon.com/AmazonS3/latest/API/RESTSelectObjectAppendix.html | ||
yield new Uint8Array([ |
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.
These bytes are the actual event stream whereas the previous XML was from a generated structural example and not what is actually sent.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread. |
Issue
smithy-lang/smithy-typescript#1600
preparatory compatibility fixes for Schemas
Description
Updates client integ tests to use the correct body payload types.
Checklist
*.integ.spec.ts
).@public
tag and enable doc generation on the package?