-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Protocol tests parsed response validation #3414
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
base: main
Are you sure you want to change the base?
Conversation
1491dca
to
ee87925
Compare
ee87925
to
2f031e3
Compare
2f031e3
to
98cd28b
Compare
98cd28b
to
605eb6b
Compare
else: # Unix-like | ||
self.process.send_signal(signal.SIGINT) | ||
|
||
time.sleep(0.5) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we need static sleep? what are we waiting for?
def wait(self): | ||
"""Wait for the subprocess to complete.""" | ||
if self.process: | ||
return self.process.wait() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
waits without timeouts have heavily traumatized my up to this point, lets add a reasonable timeout to prevent zombie hosts
.collect(Collectors.toSet()); | ||
// include the request shapes | ||
Set<String> requestShapes = testSuite.getCases().stream() | ||
.map(entry -> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks like we only ever add one item to the set ever, simplified this could just be
testSuite.getCases().stream()
.map(entry -> { return String.format("<aws/%s/model/%s.h>",
serviceModel.getMetadata().getProjectName(),
entry.getGiven().getName() + "Request")})
.collect(Collectors.toSet());
to avoid creating a extra set per test case
#if(!$expectedResult.isEmpty()) | ||
const ${responseShape.name}& result = outcome.GetResult(); | ||
#end | ||
/* expectedResult = R"( ${expectedResult} )" */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
love the debug comment
Issue #, if available:
Protocol tests
Description of changes:
Generate parsed response structure validation
Check all that applies:
Check which platforms you have built SDK on to verify the correctness of this PR.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.