File tree Expand file tree Collapse file tree
source/Calamari.Tests/AWS Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -268,10 +268,7 @@ public async Task UploadPackageWithMetadata()
268268 CannedAcl = "private" ,
269269 BucketKeyBehaviour = BucketKeyBehaviourType . Filename ,
270270 Metadata = specialHeaders . Concat ( userDefinedMetadata ) . ToList ( ) ,
271- Tags = new List < KeyValuePair < string , string > > ( )
272- {
273- new KeyValuePair < string , string > ( "Environment" , "Test" )
274- }
271+ Tags = [ new KeyValuePair < string , string > ( "Environment" , "Test" ) ]
275272 }
276273 } ;
277274
@@ -287,10 +284,7 @@ await Validate(async client =>
287284 {
288285 if ( specialHeader . Key == "Expires" )
289286 {
290- //There's a serialization bug in Json.Net that ends up changing the time to local.
291- //Fix this assertion once that's done.
292- var expectedDate = DateTime . Parse ( specialHeader . Value . TrimEnd ( 'Z' ) ) . ToUniversalTime ( ) ;
293- response . Expiration . Should ( ) . Be ( expectedDate ) ;
287+ response . ExpiresString . Should ( ) . Be ( specialHeader . Value ) ;
294288 }
295289 else if ( specialHeader . Key == "x-amz-website-redirect-location" )
296290 {
You can’t perform that action at this time.
0 commit comments