-
I wonder if tests at GEneratePreSigendUrlTests.cs are wrong? TestPreSignedUrl(new PresignedUrlTestParameters
{
Region = RegionEndpoint.USEast1,
Expiration = AWSSDKUtils.CorrectedUtcNow.AddDays(7).AddHours(-2),
UseSigV4 = true,
ExpectSigV4Url = true,
IsS3Express = false
}); However, it's used to set the var request = new GetPreSignedUrlRequest
{
BucketName = testParams.BucketName,
Key = objectKey,
Verb = HttpVerb.PUT,
Expires = testParams.Expiration,
Protocol = Protocol.HTTPS
}; Which is expected to be in local time. |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments
-
These tests run before every release, so we'd have noticed if they were failing (for the record: they do run in hosts with the timezone set to UTC). Were you trying to run them locally and seeing failures? |
Beta Was this translation helpful? Give feedback.
-
No, I didn't run the tests, but I was doing tests with similar code in separate application and I noticed it's wrong.
That explains why the tests are passing, right? |
Beta Was this translation helpful? Give feedback.
-
I wouldn't call them wrong, they were written expecting to be run in UTC... If you find an issue with the |
Beta Was this translation helpful? Give feedback.
-
No problem. I just wanted to clarify what I found. Thank you. |
Beta Was this translation helpful? Give feedback.
-
Hello! Reopening this discussion to make it searchable. |
Beta Was this translation helpful? Give feedback.
No problem. I just wanted to clarify what I found. Thank you.