Skip to content

Add tags and appliesTo to protocol tests#696

Merged
mtdowling merged 1 commit intomainfrom
add-tags-to-protocol-tests
Jan 28, 2021
Merged

Add tags and appliesTo to protocol tests#696
mtdowling merged 1 commit intomainfrom
add-tags-to-protocol-tests

Conversation

@mtdowling
Copy link
Copy Markdown
Member

This commit adds support for applying tags to individual test cases,
allowing them to be grouped much more granularly. It also adds support
for appliesTo, which allows test cases to indicate if they should only
be implemented by clients or servers. Test cases that do not define an
appliesTo member are to be implemented by both client and server
implementations.

Existing AWS protocol tests are updated to now utilize appliesTo rather
than adding tags to operations.

@mtdowling mtdowling requested a review from kstich January 28, 2021 00:09
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Can these operations be consolidated now that the distinction is on the tests themselves? This would require removing the operation level tags, though, and possibly cause a downstream issue. Maybe we just consolidate this as a followup.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Since I'm adding tags back for now, this will need to wait. But it's a good idea.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Can these operations be consolidated now that the distinction is on the tests themselves? This would require removing the operation level tags, though, and possibly cause a downstream issue. Maybe we just consolidate this as a followup.

This commit adds support for applying tags to individual test cases,
allowing them to be grouped much more granularly. It also adds support
for appliesTo, which allows test cases to indicate if they should only
be implemented by clients or servers. Test cases that do not define an
appliesTo member are to be implemented by both client and server
implementations.

Existing AWS protocol tests are updated to now utilize appliesTo, and
the tags are left as-is. These tags will be removed in the future once
implementations have migrated away from them.
@mtdowling mtdowling force-pushed the add-tags-to-protocol-tests branch from 8b13ea9 to 9034f24 Compare January 28, 2021 18:16
@mtdowling mtdowling requested a review from kstich January 28, 2021 18:16
@mtdowling mtdowling merged commit 3dadd3a into main Jan 28, 2021
@kstich kstich mentioned this pull request Feb 22, 2021
@mtdowling mtdowling deleted the add-tags-to-protocol-tests branch April 21, 2021 05:01
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