@@ -96,7 +96,7 @@ public static void setUp() throws NoSuchAlgorithmException {
9696 PROVIDER = Security .getProvider ("BC" );
9797 }
9898
99- @ Test
99+ @ RetryingTest ( 3 )
100100 public void asyncCustomConfiguration () {
101101 final String objectKey = appendTestSuffix ("wrapped-s3-client-with-custom-credentials-async" );
102102
@@ -145,7 +145,7 @@ public void asyncCustomConfiguration() {
145145 s3Client .close ();
146146 }
147147
148- @ Test
148+ @ RetryingTest ( 3 )
149149 public void asyncTopLevelConfigurationAllOptions () {
150150 final String objectKey = appendTestSuffix ("async-top-level-all-options" );
151151 AwsCredentialsProvider creds = DefaultCredentialsProvider .create ();
@@ -192,7 +192,7 @@ public void asyncTopLevelConfigurationAllOptions() {
192192 s3Client .close ();
193193 }
194194
195- @ Test
195+ @ RetryingTest ( 3 )
196196 public void asyncTopLevelConfiguration () {
197197 final String objectKey = appendTestSuffix ("wrapped-s3-client-with-top-level-credentials-async" );
198198
@@ -225,7 +225,7 @@ public void asyncTopLevelConfiguration() {
225225 s3Client .close ();
226226 }
227227
228- @ Test
228+ @ RetryingTest ( 3 )
229229 public void s3AsyncEncryptionClientTopLevelAlternateCredentials () {
230230 final String objectKey = appendTestSuffix ("wrapped-s3-async-client-with-top-level-alternate-credentials" );
231231 final String input = "S3EncryptionClientTopLevelAlternateCredsTest" ;
@@ -279,7 +279,7 @@ public void s3AsyncEncryptionClientTopLevelAlternateCredentials() {
279279 s3ClientAltCreds .close ();
280280 }
281281
282- @ Test
282+ @ RetryingTest ( 3 )
283283 public void s3AsyncEncryptionClientMixedCredentials () {
284284 final String objectKey = appendTestSuffix ("wrapped-s3-client-with-mixed-credentials" );
285285 final String input = "S3EncryptionClientTopLevelAlternateCredsTest" ;
@@ -321,7 +321,7 @@ public void s3AsyncEncryptionClientMixedCredentials() {
321321 kmsClient .close ();
322322 }
323323
324- @ Test
324+ @ RetryingTest ( 3 )
325325 public void asyncTopLevelConfigurationWrongRegion () {
326326 final String objectKey = appendTestSuffix ("wrapped-s3-client-with-wrong-region-credentials-async" );
327327
@@ -349,7 +349,7 @@ public void asyncTopLevelConfigurationWrongRegion() {
349349 }
350350 }
351351
352- @ Test
352+ @ RetryingTest ( 3 )
353353 public void asyncTopLevelConfigurationNullCreds () {
354354 final String objectKey = appendTestSuffix ("wrapped-s3-client-with-null-credentials-async" );
355355
@@ -377,7 +377,7 @@ public void asyncTopLevelConfigurationNullCreds() {
377377 }
378378 }
379379
380- @ Test
380+ @ RetryingTest ( 3 )
381381 public void putAsyncGetDefault () {
382382 final String objectKey = appendTestSuffix ("put-async-get-default" );
383383
@@ -410,7 +410,7 @@ public void putAsyncGetDefault() {
410410 s3AsyncClient .close ();
411411 }
412412
413- @ Test
413+ @ RetryingTest ( 3 )
414414 public void putDefaultGetAsync () {
415415 final String objectKey = appendTestSuffix ("put-default-get-async" );
416416
@@ -443,7 +443,7 @@ public void putDefaultGetAsync() {
443443 s3AsyncClient .close ();
444444 }
445445
446- @ Test
446+ @ RetryingTest ( 3 )
447447 public void putAsyncGetAsync () {
448448 final String objectKey = appendTestSuffix ("put-async-get-async" );
449449
@@ -473,7 +473,7 @@ public void putAsyncGetAsync() {
473473 s3AsyncClient .close ();
474474 }
475475
476- @ Test
476+ @ RetryingTest ( 3 )
477477 public void aesCbcV1toV3Async () {
478478 final String objectKey = appendTestSuffix ("aes-cbc-v1-to-v3-async" );
479479
@@ -512,7 +512,7 @@ public void aesCbcV1toV3Async() {
512512 s3Client .close ();
513513 }
514514
515- @ Test
515+ @ RetryingTest ( 3 )
516516 public void failAesCbcV1toV3AsyncWhenDisabled () {
517517 final String objectKey = appendTestSuffix ("fail-aes-cbc-v1-to-v3-async-when-disabled" );
518518
@@ -549,7 +549,7 @@ public void failAesCbcV1toV3AsyncWhenDisabled() {
549549 s3Client .close ();
550550 }
551551
552- @ Test
552+ @ RetryingTest ( 3 )
553553 public void AsyncAesGcmV2toV3WithInstructionFile () {
554554 final String objectKey = appendTestSuffix ("async-aes-gcm-v2-to-v3-with-instruction-file" );
555555
@@ -588,7 +588,7 @@ public void AsyncAesGcmV2toV3WithInstructionFile() {
588588 s3AsyncClient .close ();
589589 }
590590
591- @ Test
591+ @ RetryingTest ( 3 )
592592 public void deleteObjectWithInstructionFileSuccessAsync () {
593593 final String objectKey = appendTestSuffix ("async-delete-object-with-instruction-file" );
594594
@@ -631,7 +631,7 @@ public void deleteObjectWithInstructionFileSuccessAsync() {
631631 defaultClient .close ();
632632 }
633633
634- @ Test
634+ @ RetryingTest ( 3 )
635635 public void deleteObjectsWithInstructionFilesSuccessAsync () {
636636 final String [] objectKeys = {appendTestSuffix ("async-delete-object-with-instruction-file-1" ),
637637 appendTestSuffix ("async-delete-object-with-instruction-file-2" ),
@@ -680,7 +680,7 @@ public void deleteObjectsWithInstructionFilesSuccessAsync() {
680680 defaultClient .close ();
681681 }
682682
683- @ Test
683+ @ RetryingTest ( 3 )
684684 public void deleteObjectWithWrongObjectKeySuccessAsync () {
685685 // V3 Client
686686 S3AsyncClient s3Client = S3AsyncEncryptionClient .builderV4 ()
@@ -692,7 +692,7 @@ public void deleteObjectWithWrongObjectKeySuccessAsync() {
692692 s3Client .close ();
693693 }
694694
695- @ Test
695+ @ RetryingTest ( 3 )
696696 public void copyObjectTransparentlyAsync () {
697697 final String objectKey = appendTestSuffix ("copy-object-from-here-async" );
698698 final String newObjectKey = appendTestSuffix ("copy-object-to-here-async" );
@@ -741,7 +741,7 @@ public void copyObjectTransparentlyAsync() {
741741 * to be logged when debug logging is enabled.
742742 * @throws IOException
743743 */
744- @ Test
744+ @ RetryingTest ( 3 )
745745 public void tinyBufferTest () throws IOException {
746746 // BouncyCastle actually returns null buffers, unlike ACCP and SunJCE, which return empty buffers
747747 Security .addProvider (new BouncyCastleProvider ());
@@ -781,7 +781,7 @@ public void tinyBufferTest() throws IOException {
781781 exec .shutdown ();
782782 }
783783
784- @ Test
784+ @ RetryingTest ( 3 )
785785 public void testAsyncInstructionFileConfig () {
786786 final String objectKey = appendTestSuffix ("async-instruction-file-config" );
787787 final String input = "SimpleTestOfV3EncryptionClient" ;
@@ -841,7 +841,7 @@ public void testAsyncInstructionFileConfig() {
841841 s3ClientDisabledInstructionFile .close ();
842842 s3Client .close ();
843843 }
844- @ Test
844+ @ RetryingTest ( 3 )
845845 public void testAsyncInstructionFileConfigMultipart () {
846846 final String objectKey = appendTestSuffix ("test-multipart-async-instruction-file-config" );
847847 final String input = "SimpleTestOfV3EncryptionClient" ;
@@ -885,7 +885,7 @@ public void testAsyncInstructionFileConfigMultipart() {
885885
886886 s3Client .close ();
887887 }
888- @ Test
888+ @ RetryingTest ( 3 )
889889 public void testAsyncInstructionFileConfigMultipartWithOptions () {
890890 final String objectKey = appendTestSuffix ("test-multipart-async-instruction-file-config-options" );
891891 final String input = "SimpleTestOfV3EncryptionClient" ;
@@ -934,7 +934,7 @@ public void testAsyncInstructionFileConfigMultipartWithOptions() {
934934
935935 }
936936
937- @ Test
937+ @ RetryingTest ( 3 )
938938 public void wrappedClientMultipartUploadThrowsException () throws IOException {
939939 final String objectKey = appendTestSuffix ("multipart-put-object-async-wrapped-client" );
940940
@@ -1013,21 +1013,21 @@ public void wrappedClientMultipartUploadThrowsException() throws IOException {
10131013 s3Client .close ();
10141014 }
10151015
1016- @ Test
1016+ @ RetryingTest ( 3 )
10171017 public void s3AsyncClientBuilderForbidsMultipartEnabled () {
10181018 assertThrows (
10191019 UnsupportedOperationException .class ,
10201020 () -> S3AsyncEncryptionClient .builderV4 ().multipartEnabled (Boolean .TRUE ));
10211021 }
10221022
1023- @ Test
1023+ @ RetryingTest ( 3 )
10241024 public void s3AsyncClientBuilderForbidsMultipartConfiguration () {
10251025 assertThrows (
10261026 UnsupportedOperationException .class ,
10271027 () -> S3AsyncEncryptionClient .builderV4 ().multipartConfiguration (MultipartConfiguration .builder ().build ()));
10281028 }
10291029
1030- @ Test
1030+ @ RetryingTest ( 3 )
10311031 public void s3AsyncClientForbidsCreateMultipartUpload () {
10321032 S3AsyncClient s3AsyncClient = S3AsyncEncryptionClient .builderV4 ()
10331033 .kmsKeyId ("fails" )
@@ -1037,7 +1037,7 @@ public void s3AsyncClientForbidsCreateMultipartUpload() {
10371037 s3AsyncClient .close ();
10381038 }
10391039
1040- @ Test
1040+ @ RetryingTest ( 3 )
10411041 public void s3AsyncClientForbidsUploadPart () {
10421042 S3AsyncClient s3AsyncClient = S3AsyncEncryptionClient .builderV4 ()
10431043 .kmsKeyId ("fails" )
@@ -1047,7 +1047,7 @@ public void s3AsyncClientForbidsUploadPart() {
10471047 s3AsyncClient .close ();
10481048 }
10491049
1050- @ Test
1050+ @ RetryingTest ( 3 )
10511051 public void s3AsyncClientForbidsCompleteMultipartUpload () {
10521052 S3AsyncClient s3AsyncClient = S3AsyncEncryptionClient .builderV4 ()
10531053 .kmsKeyId ("fails" )
0 commit comments