Skip to content

Commit b4b2047

Browse files
author
Anirav Kareddy
committed
Replaced passing in ARN of my personal testing bucket with the BUCKET variable
1 parent b1c0898 commit b4b2047

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/test/java/software/amazon/encryption/s3/S3EncryptionClientCompatibilityTest.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)