Skip to content

Commit 441480b

Browse files
authored
test(client-s3): fix unit test (#1638)
Because the issue with our CI/CD script, the unit doesn't fail even the unit test fails. We will fix it shortly later. This change fixes a failed unit test.
1 parent 1ee5119 commit 441480b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

clients/client-s3/S3.spec.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,9 @@ describe("Accesspoint ARN", async () => {
8787
Body: "body",
8888
});
8989
expect(result.request.hostname).to.eql(`abc-111-${AccountId}.${OutpostId}.s3-outposts.us-west-2.amazonaws.com`);
90+
const date = new Date().toISOString().substr(0, 10).replace(/-/g, ""); //20201029
9091
expect(result.request.headers["authorization"]).contains(
91-
`Credential=${credentials.accessKeyId}/20200928/${region}/s3-outposts/aws4_request`
92+
`Credential=${credentials.accessKeyId}/${date}/${region}/s3-outposts/aws4_request`
9293
);
9394
});
9495
});

0 commit comments

Comments
 (0)