File tree Expand file tree Collapse file tree 3 files changed +13
-4
lines changed
src/test/java/software/amazon/encryption/s3 Expand file tree Collapse file tree 3 files changed +13
-4
lines changed Original file line number Diff line number Diff line change 134134 <scope >test</scope >
135135 </dependency >
136136
137+ <dependency >
138+ <groupId >org.junit-pioneer</groupId >
139+ <artifactId >junit-pioneer</artifactId >
140+ <version >2.3.0</version >
141+ <scope >test</scope >
142+ </dependency >
143+
137144 <dependency >
138145 <groupId >com.amazonaws</groupId >
139146 <artifactId >aws-java-sdk-kms</artifactId >
Original file line number Diff line number Diff line change 1111import com .amazonaws .services .s3 .model .StaticEncryptionMaterialsProvider ;
1212import org .apache .commons .io .IOUtils ;
1313import org .junit .jupiter .api .Test ;
14+ import org .junitpioneer .jupiter .RetryingTest ;
1415import software .amazon .awssdk .core .ResponseBytes ;
1516import software .amazon .awssdk .core .ResponseInputStream ;
1617import software .amazon .awssdk .core .sync .RequestBody ;
@@ -309,7 +310,7 @@ public void testPutWithInstructionFileV3ToV2Rsa() throws NoSuchAlgorithmExceptio
309310 s3Client .close ();
310311 }
311312
312- @ Test
313+ @ RetryingTest ( maxAttempts = 3 )
313314 public void testMultipartPutWithInstructionFile () throws IOException {
314315 final String object_key = appendTestSuffix ("test-multipart-put-instruction-file" );
315316
Original file line number Diff line number Diff line change 1313import org .bouncycastle .jce .provider .BouncyCastleProvider ;
1414import org .junit .jupiter .api .BeforeAll ;
1515import org .junit .jupiter .api .Test ;
16+ import org .junitpioneer .jupiter .RetryingTest ;
1617import software .amazon .awssdk .core .ResponseBytes ;
1718import software .amazon .awssdk .core .ResponseInputStream ;
1819import software .amazon .awssdk .core .async .AsyncRequestBody ;
@@ -306,7 +307,7 @@ public void failsWhenBothBufferSizeAndDelayedAuthModeEnabled() {
306307 .build ());
307308 }
308309
309- @ Test
310+ @ RetryingTest ( maxAttempts = 3 )
310311 public void customSetBufferSizeWithLargeObject () throws IOException {
311312 final String objectKey = appendTestSuffix ("large-object-test-custom-buffer-size" );
312313
@@ -358,7 +359,7 @@ public void customSetBufferSizeWithLargeObject() throws IOException {
358359 v3ClientWithDelayedAuth .close ();
359360 }
360361
361- @ Test
362+ @ RetryingTest ( maxAttempts = 3 )
362363 public void customSetBufferSizeWithLargeObjectAsyncClient () throws IOException {
363364 final String objectKey = appendTestSuffix ("large-object-test-custom-buffer-size-async" );
364365
@@ -418,7 +419,7 @@ public void customSetBufferSizeWithLargeObjectAsyncClient() throws IOException {
418419 v3ClientWithDelayedAuth .close ();
419420 }
420421
421- @ Test
422+ @ RetryingTest ( maxAttempts = 3 )
422423 public void delayedAuthModeWithLargeObject () throws IOException {
423424 final String objectKey = appendTestSuffix ("large-object-test" );
424425
You can’t perform that action at this time.
0 commit comments