Skip to content

Commit

Permalink
fix misleading timestamp value from tests and lint issues
Browse files Browse the repository at this point in the history
Removes timestamp with single digit hour code to avoid confusion. Also
fixes lint issues.

References:
* golang/go#57912 (comment)
* GOSDK-2932
  • Loading branch information
aajtodd committed Jan 23, 2023
1 parent f95afa9 commit 78e22ac
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions config/shared_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const ecsResponse = `{
"SecretAccessKey": "ecs-secret-key",
"Token": "token",
"Expiration": "2100-01-01T00:00:00Z",
"LastUpdated": "2009-11-23T0:00:00Z"
"LastUpdated": "2009-11-23T00:00:00Z"
}`

const ec2MetadataResponse = `{
Expand All @@ -24,7 +24,7 @@ const ec2MetadataResponse = `{
"SecretAccessKey": "ec2-secret-key",
"Token": "token",
"Expiration": "2100-01-01T00:00:00Z",
"LastUpdated": "2009-11-23T0:00:00Z"
"LastUpdated": "2009-11-23T00:00:00Z"
}`

const assumeRoleRespMsg = `
Expand Down
4 changes: 2 additions & 2 deletions credentials/ec2rolecreds/provider_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ const credsRespTmpl = `{
"SecretAccessKey" : "secret",
"Token" : "token",
"Expiration" : "%s",
"LastUpdated" : "2009-11-23T0:00:00Z"
"LastUpdated" : "2009-11-23T00:00:00Z"
}`

const credsFailRespTmpl = `{
"Code": "ErrorCode",
"Message": "ErrorMsg",
"LastUpdated": "2009-11-23T0:00:00Z"
"LastUpdated": "2009-11-23T00:00:00Z"
}`

type mockClient struct {
Expand Down

0 comments on commit 78e22ac

Please sign in to comment.