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

Update protocol tests with datetime offset coverage #1502

Conversation

haydenbaker
Copy link
Contributor

Issue #, if available:

Description of changes:
Adds a blurb about offsets for the protocol-timestampFormat trait (specifically, date-time) for and adds the corresponding tests to verify the right behaviors

Testing
I generated and ran the client protocol tests in the Go-SDK, and then generated and ran the server protocol tests in the JS-SDK (only RestJson1)

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

While the datetime specification mentions that UTC offsets are not allowed,
they should be parsed gracefully and normalized to zero (no offset).
While the datetime specification mentions that UTC offsets are not allowed,
they should be parsed gracefully and normalized to zero (no offset). These
changes add tests to verify the correct serialization/deserialization
behavior of both client and server protocol implementations.
@haydenbaker haydenbaker requested a review from a team as a code owner November 17, 2022 18:09
haydenbaker and others added 2 commits December 14, 2022 14:42
Servers aren't expected to handle datetimes with offsets
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