Skip to content

Commit 5a1cd73

Browse files
authored
test(polly-request-presigner): make polly presigner test compatible with model change (#7356)
1 parent 3cace3e commit 5a1cd73

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/polly-request-presigner/src/polly-request-presigner.integ.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ describe("polly-request-presigner", () => {
2626
"VoiceId=Kimberly",
2727
"X-Amz-Algorithm=AWS4-HMAC-SHA256",
2828
/X-Amz-Credential=(.*?)%2F(\d{8})%2Fus-east-1%2Fpolly%2Faws4_request/,
29-
/X-Amz-Date=\d{8}T\d+Z/,
29+
/X-Amz-Date=\d{8}T\d{6}Z/,
3030
"X-Amz-Expires=3600",
31-
/X-Amz-Signature=(.*?)/,
32-
"X-Amz-SignedHeaders=host",
31+
/X-Amz-Signature=[a-f0-9]+/,
32+
/X-Amz-SignedHeaders=(host|%3Aauthority)/,
3333
"https://polly.us-east-1.amazonaws.com/v1/speech?OutputFormat=mp3",
3434
/x-amz-user-agent=aws-sdk-js%2F\d\.\d+\.\d+/,
3535
]);

0 commit comments

Comments
 (0)