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

Add tests for DowngradeToV1 #1410

Merged
merged 1 commit into from
Sep 21, 2022

Conversation

syall
Copy link
Contributor

@syall syall commented Sep 16, 2022

Issue #, if available:

N/A


Description of changes:

Also addressed some comments from the original DowngradeToV1 PR: #1403

This commit adds the following test cases for 1.0 roundtrip serialization for @enum and @box traits (refactor test factories).

Also, added a string shape with the @enum trait for the 2.0 enum roundtrip test case.

Updated removing unnecessary defaults to fix MemberShape cases with comments to explain each case.


Testing:

Ran ./gradlew clean build check.


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

@syall syall force-pushed the add-1.0-serialization-option-test branch 2 times, most recently from 7cae62a to 7397255 Compare September 19, 2022 22:01
@syall syall changed the title Add test for 1.0 roundtrip and serialization Add tests for DowngradeToV1 Sep 19, 2022
@syall syall force-pushed the add-1.0-serialization-option-test branch from 7397255 to f2dbe5f Compare September 19, 2022 22:09
@syall syall marked this pull request as ready for review September 19, 2022 22:24
@syall syall requested a review from a team as a code owner September 19, 2022 22:24
@syall syall force-pushed the add-1.0-serialization-option-test branch from f2dbe5f to 3e5ae6d Compare September 19, 2022 22:49
@syall syall requested review from mtdowling and a team and removed request for mtdowling September 19, 2022 22:55
@syall syall force-pushed the add-1.0-serialization-option-test branch from 3e5ae6d to 841053c Compare September 21, 2022 00:11
Copy link
Contributor

@gosar gosar left a comment

Choose a reason for hiding this comment

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

My comments are non-blocking, so marking this as approved anyways.

@syall syall force-pushed the add-1.0-serialization-option-test branch from 841053c to c5f57a0 Compare September 21, 2022 03:34
This commit adds the following test cases for 1.0 roundtrip
serialization for `@enum` and `@box` traits (refactor test
factories).

Also, added a string shape with the `@enum` trait for the 2.0
enum roundtrip test case.

Updated removing unnecessary defaults to fix `MemberShape`
cases with comments to explain each case.
@syall syall force-pushed the add-1.0-serialization-option-test branch from c5f57a0 to b44e6ea Compare September 21, 2022 03:38
@syall syall merged commit 5ffabe8 into smithy-lang:main Sep 21, 2022
@syall syall deleted the add-1.0-serialization-option-test branch September 21, 2022 16:20
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