Skip to content

Add config definitions for aws protocol tests#705

Merged
JordonPhillips merged 3 commits intosmithy-lang:mainfrom
JordonPhillips:modeled-params
Feb 5, 2021
Merged

Add config definitions for aws protocol tests#705
JordonPhillips merged 3 commits intosmithy-lang:mainfrom
JordonPhillips:modeled-params

Conversation

@JordonPhillips
Copy link
Copy Markdown
Contributor

This adds aws config definitions intended to be used alongside: #702

It's not an exhaustive listing, but includes most of what should be needed for protocol tests.

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

@JordonPhillips JordonPhillips requested a review from kstich February 4, 2021 17:00

/// Config settings that can be set in the AWS config file.
structure FileConfig {
access_key_id: String,
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.

I'm not positive I would model these—by modeling this explicitly, we'd need to upgrade Smithy for any new features that wanted to be tested (which is maybe OK?)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

These are for the protocol tests here, you'd need to update this package anyway to add more tests to it. In any event, adding a line here is never gonna be the bottleneck.

This updates the model of the config files to a representation of
how they're actually parsed, namely as a map of profile to config.
@JordonPhillips JordonPhillips requested a review from kstich February 5, 2021 17:47
@JordonPhillips JordonPhillips merged commit 80d59a7 into smithy-lang:main Feb 5, 2021
@kstich kstich mentioned this pull request Feb 22, 2021
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