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

Generate specs for protocol tests #270

Merged
merged 107 commits into from
Feb 22, 2025
Merged

Generate specs for protocol tests #270

merged 107 commits into from
Feb 22, 2025

Conversation

alextwoods
Copy link
Contributor

@alextwoods alextwoods commented Feb 11, 2025

Description of changes:
Diffing against cbor protocol branch.

Generates protocol tests. Full support for request, response and error tests. Most test code follows the patterns of codegen protocol test from java smithy-ruby.

Steps to run tests:
Run the new smithy:spec:protocols command (or run smithy:spec to do everything)

Steps for manually testing

To generate protocol tests:

export SMITHY_PLUGIN_DIR=build/smithy/source/smithy-ruby
bundle exec smithy-ruby smith client --gem-name rpcv2cbor --gem-version 1.0.0 <<< $(cat gems/smithy/spec/fixtures/protocol_tests/rpcv2_cbor/model.json)

Then to run them, from your IDE open up the build/smithy/source/smithy-ruby directory and run the tests from build/smithy/source/smithy-ruby/spec/rpcv2cbor/protocol_spec.rb

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

Base automatically changed from add_cbor_protocol to decaf February 22, 2025 21:14
@mullermp mullermp merged commit d74ab6e into decaf Feb 22, 2025
8 checks passed
@mullermp mullermp deleted the protocol_specs branch February 22, 2025 23:11
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