@@ -238,21 +238,21 @@ public void multipartPutObjectWithOptionsAndInstructionFileV2() throws IOExcepti
238238 .withCryptoConfiguration (cryptoConfig )
239239 .withEncryptionMaterialsProvider (materialsProvider )
240240 .build ();
241- UploadObjectRequest uploadObjectRequest = new UploadObjectRequest ("s3ec-github-test-bucket-597133212884" , objectKey , inputStream , new ObjectMetadata ())
241+ UploadObjectRequest uploadObjectRequest = new UploadObjectRequest (BUCKET , objectKey , inputStream , new ObjectMetadata ())
242242 .withPartSize (1024 * 1024 * 5 )
243- .withStorageClass (StorageClass .Glacier );
243+ .withStorageClass (StorageClass .StandardInfrequentAccess );
244244 v2Client .uploadObject (uploadObjectRequest );
245245
246246 //Assert that the storage class on main object matches "GLACIER"
247- GetObjectMetadataRequest mainObjectRequest = new GetObjectMetadataRequest ("s3ec-github-test-bucket-597133212884" , objectKey );
247+ GetObjectMetadataRequest mainObjectRequest = new GetObjectMetadataRequest (BUCKET , objectKey );
248248 ObjectMetadata mainObjectMetadata = v2Client .getObjectMetadata (mainObjectRequest );
249- assertEquals ("GLACIER " , mainObjectMetadata .getStorageClass ());
249+ assertEquals ("STANDARD_IA " , mainObjectMetadata .getStorageClass ());
250250
251251 //Assert that the instruction file does not contain storage class (V2)
252- GetObjectMetadataRequest instructionObjectRequest = new GetObjectMetadataRequest ("s3ec-github-test-bucket-597133212884" , objectKey + ".instruction" );
252+ GetObjectMetadataRequest instructionObjectRequest = new GetObjectMetadataRequest (BUCKET , objectKey + ".instruction" );
253253 ObjectMetadata instructionFileMetadata = v2Client .getObjectMetadata (instructionObjectRequest );
254254
255- assertNotEquals ("GLACIER " , instructionFileMetadata .getStorageClass ());
255+ assertNotEquals ("STANDARD_IA " , instructionFileMetadata .getStorageClass ());
256256
257257 }
258258
0 commit comments