34
34
import software .amazon .awssdk .regions .Region ;
35
35
import software .amazon .awssdk .services .s3 .S3AsyncClient ;
36
36
import software .amazon .awssdk .services .s3 .S3Client ;
37
- import software .amazon .awssdk .services .s3 .model .BucketAccelerateStatus ;
38
37
import software .amazon .awssdk .services .s3 .model .BucketLocationConstraint ;
39
38
import software .amazon .awssdk .services .s3 .model .CreateBucketConfiguration ;
40
39
import software .amazon .awssdk .services .s3 .model .CreateBucketRequest ;
@@ -62,8 +61,6 @@ private S3ChecksumsTestUtils() {
62
61
public static String createBucket (S3Client s3 , String name , Logger log ) {
63
62
log .debug (() -> "Creating bucket: " + name );
64
63
createBucket (s3 , name , 3 , log );
65
- s3 .putBucketAccelerateConfiguration (r -> r .bucket (name )
66
- .accelerateConfiguration (c -> c .status (BucketAccelerateStatus .ENABLED )));
67
64
return name ;
68
65
}
69
66
@@ -193,22 +190,6 @@ public static void assumeNotAccessPointWithPathStyle(TestConfig config) {
193
190
"Path style doesn't work with ARN type buckets" );
194
191
}
195
192
196
- public static void assumeNotAccelerateWithPathStyle (TestConfig config ) {
197
- Assumptions .assumeFalse (config .isForcePathStyle () && config .isAccelerateEnabled (),
198
- "Path style doesn't work with Accelerate" );
199
- }
200
-
201
- public static void assumeNotAccelerateWithArnType (TestConfig config ) {
202
- Assumptions .assumeFalse (config .isAccelerateEnabled () && config .getBucketType ().isArnType (),
203
- "Accelerate doesn't work with ARN buckets" );
204
- }
205
-
206
- public static void assumeNotAccelerateWithEoz (TestConfig config ) {
207
- Assumptions .assumeFalse (config .isAccelerateEnabled () && config .getBucketType () == BucketType .EOZ ,
208
- "Accelerate is not supported with Express One Zone" );
209
- }
210
-
211
-
212
193
public static String crc32 (String s ) {
213
194
return crc32 (s .getBytes (StandardCharsets .UTF_8 ));
214
195
}
@@ -245,7 +226,6 @@ public static S3Client makeSyncClient(TestConfig config, Region region, AwsCrede
245
226
.requestChecksumCalculation (config .getRequestChecksumValidation ())
246
227
.region (region )
247
228
.credentialsProvider (provider )
248
- .accelerate (config .isAccelerateEnabled ())
249
229
.build ();
250
230
default :
251
231
throw new RuntimeException ("Unsupported sync flavor: " + config .getFlavor ());
@@ -260,15 +240,13 @@ public static S3AsyncClient makeAsyncClient(TestConfig config, Region region, Aw
260
240
.requestChecksumCalculation (config .getRequestChecksumValidation ())
261
241
.region (region )
262
242
.credentialsProvider (provider )
263
- .accelerate (config .isAccelerateEnabled ())
264
243
.build ();
265
244
case MULTIPART_ENABLED :
266
245
return S3AsyncClient .builder ()
267
246
.forcePathStyle (config .isForcePathStyle ())
268
247
.requestChecksumCalculation (config .getRequestChecksumValidation ())
269
248
.region (region )
270
249
.credentialsProvider (provider )
271
- .accelerate (config .isAccelerateEnabled ())
272
250
.multipartEnabled (true )
273
251
.build ();
274
252
case CRT_BASED : {
@@ -277,7 +255,6 @@ public static S3AsyncClient makeAsyncClient(TestConfig config, Region region, Aw
277
255
.requestChecksumCalculation (config .getRequestChecksumValidation ())
278
256
.region (region )
279
257
.credentialsProvider (provider )
280
- .accelerate (config .isAccelerateEnabled ())
281
258
.build ();
282
259
}
283
260
default :
@@ -295,7 +272,6 @@ public static S3Client makeSyncClient(TestConfig config, ClientOverrideConfigura
295
272
.requestChecksumCalculation (config .getRequestChecksumValidation ())
296
273
.region (region )
297
274
.credentialsProvider (provider )
298
- .accelerate (config .isAccelerateEnabled ())
299
275
.build ();
300
276
default :
301
277
throw new RuntimeException ("Unsupported sync flavor: " + config .getFlavor ());
@@ -312,7 +288,6 @@ public static S3AsyncClient makeAsyncClient(TestConfig config, ClientOverrideCon
312
288
.requestChecksumCalculation (config .getRequestChecksumValidation ())
313
289
.region (region )
314
290
.credentialsProvider (provider )
315
- .accelerate (config .isAccelerateEnabled ())
316
291
.build ();
317
292
case MULTIPART_ENABLED :
318
293
return S3AsyncClient .builder ()
@@ -321,7 +296,6 @@ public static S3AsyncClient makeAsyncClient(TestConfig config, ClientOverrideCon
321
296
.requestChecksumCalculation (config .getRequestChecksumValidation ())
322
297
.region (region )
323
298
.credentialsProvider (provider )
324
- .accelerate (config .isAccelerateEnabled ())
325
299
.multipartEnabled (true )
326
300
.build ();
327
301
case CRT_BASED : {
@@ -330,7 +304,6 @@ public static S3AsyncClient makeAsyncClient(TestConfig config, ClientOverrideCon
330
304
.requestChecksumCalculation (config .getRequestChecksumValidation ())
331
305
.region (region )
332
306
.credentialsProvider (provider )
333
- .accelerate (config .isAccelerateEnabled ())
334
307
.build ();
335
308
}
336
309
default :
0 commit comments