-
Notifications
You must be signed in to change notification settings - Fork 193
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
Server protocol tests extras #1164
Comments
A first test we should add to not regress on #1163 (but to the extras suite, not to diff --git a/codegen-server-test/model/simple.smithy b/codegen-server-test/model/simple.smithy
index 70dee327..2feae1d2 100644
--- a/codegen-server-test/model/simple.smithy
+++ b/codegen-server-test/model/simple.smithy
@@ -63,7 +63,10 @@ resource Service {
id: "RegisterServiceResponseTest",
protocol: "aws.protocols#restJson1",
params: { id: "1", name: "TestService" },
- body: "{\"id\":\"1\",\"name\":\"TestService\"}",
+ headers: {
+ "Content-Type": "TestService",
+ },
+ body: "{\"id\":\"1\"}",
code: 200,
}
])
@@ -85,6 +88,9 @@ structure RegisterServiceInputRequest {
structure RegisterServiceOutputResponse {
@required
id: ServiceId,
+
+ @required
+ @httpHeader("Content-Type")
name: ServiceName,
} |
Another one: |
Add rest-json-extras.smithy and protocol tests that are now failing in smithy-rs, but are not correct from smithy Closes: #1164 Signed-off-by: Daniele Ahmed <[email protected]>
Add rest-json-extras.smithy and protocol tests that are now failing in smithy-rs, but are not correct from smithy Closes: #1164 Signed-off-by: Daniele Ahmed <[email protected]>
Add rest-json-extras.smithy and protocol tests that are now failing in smithy-rs, but are not correct from smithy Closes: #1164 Signed-off-by: Daniele Ahmed <[email protected]>
We can now remove the only remaining broken test as it has been fixed upstream |
I'm going to close this since I no longer stand by this:
Now that we have #3726, there are no advantages to putting broken protocol tests in the |
The client has suites like
rest-json-extras.smithy
that contains extra protocol tests, some of which are upstreamed in the awslabs/smithy repo and will be hosted there in the next Smithy release.Ideally the server should also pass these suites, and we should put there additional tests we come up with.
Fixed tests should also go there, instead of hot-patching them at runtime like we currently do. Advantages:
ExpectFailing
will fail because they now pass, so we will get alerted and remove the fixed tests from the "extra" suite.The text was updated successfully, but these errors were encountered: