Skip to content

Commit

Permalink
Allow non-nil but empty headers (#2826)
Browse files Browse the repository at this point in the history
* Allow non-nil but empty headers
  • Loading branch information
Madrigal authored Oct 8, 2024
1 parent 5a4e5bb commit aa04330
Show file tree
Hide file tree
Showing 47 changed files with 915 additions and 820 deletions.
9 changes: 9 additions & 0 deletions .changelog/1a4f8663e68646a7a2f0546bf0a7fb59.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"id": "1a4f8663-e686-46a7-a2f0-546bf0a7fb59",
"type": "bugfix",
"description": "Allow non-nil but empty headers",
"modules": [
"internal/protocoltest/awsrestjson",
"internal/protocoltest/restxml"
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,20 @@ public static void generateHttpProtocolTests(GenerationContext context) {
.service(ShapeId.from("aws.protocoltests.json10#JsonRpc10"))
.operation(ShapeId.from("aws.protocoltests.json10#OperationWithNestedStructure"))
.addTestName("AwsJson10ClientPopulatesNestedDefaultValuesWhenMissing")
.build(),

// TODO these tests are currently failing due to tests not being updated, see #2825
HttpProtocolUnitTestGenerator.SkipTest.builder()
.service(ShapeId.from("aws.protocoltests.restjson#RestJson"))
.operation(ShapeId.from("aws.protocoltests.restjson#NullAndEmptyHeadersClient"))
.addTestName("RestJsonNullAndEmptyHeaders")
.build(),
HttpProtocolUnitTestGenerator.SkipTest.builder()
.service(ShapeId.from("aws.protocoltests.restxml#RestXml"))
.operation(ShapeId.from("aws.protocoltests.restxml#NullAndEmptyHeadersClient"))
.addTestName("NullAndEmptyHeaders")
.build()
));
));

Set<HttpProtocolUnitTestGenerator.SkipTest> outputSkipTests = new TreeSet<>(SetUtils.of(
// CBOR default value deserialization (SHOULD)
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

65 changes: 46 additions & 19 deletions internal/protocoltest/awsrestjson/serializers.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit aa04330

Please sign in to comment.