Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(credential-provider-node): update date strings to use fully specified offsets #5790

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jest.mock("@smithy/shared-ini-file-loader", () => {
async getSSOTokenFromFile() {
return {
accessToken: "mock_sso_token",
expiresAt: new Date("3000/1/1").toISOString(),
expiresAt: "3000-01-01T00:00:00.000Z",
};
},
};
Expand All @@ -58,7 +58,7 @@ jest.mock("@aws-sdk/client-sso", () => {
accessKeyId: "SSO_ACCESS_KEY_ID",
secretAccessKey: "SSO_SECRET_ACCESS_KEY",
sessionToken: "SSO_SESSION_TOKEN",
expiration: new Date("3000/1/1"),
expiration: new Date("3000-01-01T00:00:00.000Z"),
credentialScope: "us-sso-1",
},
};
Expand All @@ -81,7 +81,7 @@ jest.mock("@aws-sdk/client-sts", () => {
AccessKeyId: "STS_AR_ACCESS_KEY_ID",
SecretAccessKey: "STS_AR_SECRET_ACCESS_KEY",
SessionToken: "STS_AR_SESSION_TOKEN",
Expiration: new Date("3000/1/1"),
Expiration: new Date("3000-01-01T00:00:00.000Z"),
CredentialScope: "us-stsar-1__" + (await this.config.region()),
},
};
Expand All @@ -92,7 +92,7 @@ jest.mock("@aws-sdk/client-sts", () => {
AccessKeyId: "STS_ARWI_ACCESS_KEY_ID",
SecretAccessKey: "STS_ARWI_SECRET_ACCESS_KEY",
SessionToken: "STS_ARWI_SESSION_TOKEN",
Expiration: new Date("3000/1/1"),
Expiration: new Date("3000-01-01T00:00:00.000Z"),
CredentialScope: "us-stsarwi-1__" + (await this.config.region()),
},
};
Expand All @@ -118,7 +118,7 @@ jest.mock("@smithy/node-http-handler", () => {
AccessKeyId: "CONTAINER_ACCESS_KEY",
SecretAccessKey: "CONTAINER_SECRET_ACCESS_KEY",
Token: "CONTAINER_TOKEN",
Expiration: "3000-01-01T00:00:00Z",
Expiration: "3000-01-01T00:00:00.000Z",
})
);
body.push(null);
Expand Down Expand Up @@ -300,7 +300,7 @@ describe("credential-provider-node integration test", () => {
accessKeyId: "SSO_ACCESS_KEY_ID",
secretAccessKey: "SSO_SECRET_ACCESS_KEY",
sessionToken: "SSO_SESSION_TOKEN",
expiration: new Date("3000/1/1"),
expiration: new Date("3000-01-01T00:00:00.000Z"),
credentialScope: "us-sso-1",
});
});
Expand Down Expand Up @@ -339,7 +339,7 @@ describe("credential-provider-node integration test", () => {
accessKeyId: "STS_AR_ACCESS_KEY_ID",
secretAccessKey: "STS_AR_SECRET_ACCESS_KEY",
sessionToken: "STS_AR_SESSION_TOKEN",
expiration: new Date("3000/1/1"),
expiration: new Date("3000-01-01T00:00:00.000Z"),
credentialScope: "us-stsar-1__us-east-1",
});
});
Expand Down Expand Up @@ -367,7 +367,7 @@ describe("credential-provider-node integration test", () => {
accessKeyId: "STS_AR_ACCESS_KEY_ID",
secretAccessKey: "STS_AR_SECRET_ACCESS_KEY",
sessionToken: "STS_AR_SESSION_TOKEN",
expiration: new Date("3000/1/1"),
expiration: new Date("3000-01-01T00:00:00.000Z"),
credentialScope: "us-stsar-1__us-gov-stsar-1",
});
});
Expand All @@ -387,7 +387,7 @@ describe("credential-provider-node integration test", () => {
accessKeyId: "STS_ARWI_ACCESS_KEY_ID",
secretAccessKey: "STS_ARWI_SECRET_ACCESS_KEY",
sessionToken: "STS_ARWI_SESSION_TOKEN",
expiration: new Date("3000/1/1"),
expiration: new Date("3000-01-01T00:00:00.000Z"),
credentialScope: "us-stsarwi-1__us-east-1",
});
});
Expand All @@ -408,7 +408,7 @@ describe("credential-provider-node integration test", () => {
accessKeyId: "STS_ARWI_ACCESS_KEY_ID",
secretAccessKey: "STS_ARWI_SECRET_ACCESS_KEY",
sessionToken: "STS_ARWI_SESSION_TOKEN",
expiration: new Date("3000/1/1"),
expiration: new Date("3000-01-01T00:00:00.000Z"),
credentialScope: "us-stsarwi-1__us-gov-sts-1",
});
});
Expand Down Expand Up @@ -445,7 +445,7 @@ describe("credential-provider-node integration test", () => {
accessKeyId: "SSO_ACCESS_KEY_ID",
secretAccessKey: "SSO_SECRET_ACCESS_KEY",
sessionToken: "SSO_SESSION_TOKEN",
expiration: new Date("3000/1/1"),
expiration: new Date("3000-01-01T00:00:00.000Z"),
credentialScope: "us-sso-1",
});
});
Expand Down Expand Up @@ -481,7 +481,7 @@ describe("credential-provider-node integration test", () => {
accessKeyId: "STS_ARWI_ACCESS_KEY_ID",
secretAccessKey: "STS_ARWI_SECRET_ACCESS_KEY",
sessionToken: "STS_ARWI_SESSION_TOKEN",
expiration: new Date("3000/1/1"),
expiration: new Date("3000-01-01T00:00:00.000Z"),
credentialScope: "us-stsarwi-1__us-east-1",
});
});
Expand All @@ -497,7 +497,7 @@ describe("credential-provider-node integration test", () => {
accessKeyId: "CONTAINER_ACCESS_KEY",
secretAccessKey: "CONTAINER_SECRET_ACCESS_KEY",
sessionToken: "CONTAINER_TOKEN",
expiration: new Date("3000/1/1"),
expiration: new Date("3000-01-01T00:00:00.000Z"),
});
});

Expand Down
Loading