@@ -238,21 +238,21 @@ public void multipartPutObjectWithOptionsAndInstructionFileV2() throws IOExcepti
238
238
.withCryptoConfiguration (cryptoConfig )
239
239
.withEncryptionMaterialsProvider (materialsProvider )
240
240
.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 ())
242
242
.withPartSize (1024 * 1024 * 5 )
243
- .withStorageClass (StorageClass .Glacier );
243
+ .withStorageClass (StorageClass .StandardInfrequentAccess );
244
244
v2Client .uploadObject (uploadObjectRequest );
245
245
246
246
//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 );
248
248
ObjectMetadata mainObjectMetadata = v2Client .getObjectMetadata (mainObjectRequest );
249
- assertEquals ("GLACIER " , mainObjectMetadata .getStorageClass ());
249
+ assertEquals ("STANDARD_IA " , mainObjectMetadata .getStorageClass ());
250
250
251
251
//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" );
253
253
ObjectMetadata instructionFileMetadata = v2Client .getObjectMetadata (instructionObjectRequest );
254
254
255
- assertNotEquals ("GLACIER " , instructionFileMetadata .getStorageClass ());
255
+ assertNotEquals ("STANDARD_IA " , instructionFileMetadata .getStorageClass ());
256
256
257
257
}
258
258
0 commit comments