Skip to content

Commit 7e3eaf3

Browse files
committed
fix: fix building failure
1 parent f6659e7 commit 7e3eaf3

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/AwsEndpointGeneratorIntegration.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ public void addRuntimeConfigValues(
7070
writer.addImport("defaultRegionInfoProvider", "defaultRegionInfoProvider", "./endpoints");
7171
writer.write("regionInfoProvider: defaultRegionInfoProvider");
7272
break;
73+
default:
74+
//do nothing
7375
}
7476
}
7577

packages/signature-v4/src/suite.spec.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import {
77
signingDate
88
} from "./suite.fixture";
99
import { Sha256 } from "@aws-crypto/sha256-js";
10+
import { HttpRequest } from "@aws-sdk/protocol-http";
1011

1112
/**
1213
* Executes the official AWS Signature Version 4 test suite.
@@ -24,7 +25,9 @@ describe("AWS Signature Version 4 Test Suite", () => {
2425

2526
for (const { name, request, authorization } of requests) {
2627
it(`should calculate the correct signature for ${name}`, async () => {
27-
const signed = await signer.sign(request, { signingDate });
28+
const signed = await signer.sign(new HttpRequest(request), {
29+
signingDate
30+
});
2831
expect(signed.headers["authorization"]).toEqual(authorization);
2932
});
3033
}

0 commit comments

Comments
 (0)