File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
services/s3/src/it/java/software/amazon/awssdk/services/s3/s3express Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 20
20
import static org .assertj .core .api .Assertions .fail ;
21
21
import static org .junit .jupiter .api .Assertions .assertThrows ;
22
22
import static software .amazon .awssdk .testutils .service .AwsTestBase .CREDENTIALS_PROVIDER_CHAIN ;
23
+ import static software .amazon .awssdk .testutils .service .S3BucketUtils .temporaryBucketName ;
23
24
24
25
import java .io .IOException ;
25
26
import java .io .InputStream ;
@@ -101,6 +102,12 @@ public class S3ExpressIntegrationTest extends S3ExpressIntegrationTestBase {
101
102
private static S3AsyncClient s3CrtAsync ;
102
103
private static String testBucket ;
103
104
105
+ private static final String S3EXPRESS_BUCKET_PATTERN = temporaryBucketName (S3ExpressIntegrationTest .class ) +"--%s--x-s3" ;
106
+
107
+ private static String getS3ExpressBucketNameForAz (String az ) {
108
+ return String .format (S3EXPRESS_BUCKET_PATTERN , az );
109
+ }
110
+
104
111
@ BeforeAll
105
112
static void setup () {
106
113
s3 = s3ClientBuilder (TEST_REGION ).overrideConfiguration (o -> o .addExecutionInterceptor (capturingInterceptor ))
Original file line number Diff line number Diff line change 43
43
44
44
public class S3ExpressIntegrationTestBase {
45
45
46
- private static final String S3EXPRESS_BUCKET_PATTERN = "s3express-java-integ--%s--x-s3" ;
47
- protected static final String STANDARD_BUCKET = "s3express-java-integ-tests" ;
48
-
49
- protected static String getS3ExpressBucketNameForAz (String az ) {
50
- return String .format (S3EXPRESS_BUCKET_PATTERN , az );
51
- }
52
-
53
46
protected static S3ClientBuilder s3ClientBuilder (Region region ) {
54
47
return S3Client .builder ()
55
48
.region (region )
You can’t perform that action at this time.
0 commit comments