@@ -91,11 +91,6 @@ public interface Harness extends AutoCloseable {
9191
9292 // Returns the KMS key ID for encryption tests (provider-specific)
9393 String getKmsKeyId ();
94-
95- // Returns list of WireMock extension class names to register (optional)
96- default List <String > getWiremockExtensions () {
97- return Collections .emptyList ();
98- }
9994 }
10095
10196 protected abstract Harness createHarness ();
@@ -110,13 +105,7 @@ default List<String> getWiremockExtensions() {
110105 @ BeforeAll
111106 public void initializeWireMockServer () {
112107 harness = createHarness ();
113- List <String > extensions = harness .getWiremockExtensions ();
114- if (extensions .isEmpty ()) {
115- TestsUtil .startWireMockServer ("src/test/resources" , harness .getPort ());
116- } else {
117- TestsUtil .startWireMockServer ("src/test/resources" , harness .getPort (),
118- extensions .toArray (new String [0 ]));
119- }
108+ TestsUtil .startWireMockServer ("src/test/resources" , harness .getPort ());
120109 }
121110
122111 /**
@@ -167,10 +156,8 @@ public void testInvalidCredentials() {
167156
168157 // And run the tests given the invalid credentialsOverrider
169158 runOperationsThatShouldFail ("testInvalidCredentials" , bucketClient );
170- if (!GCP_PROVIDER_ID .equals (harness .getProviderId ())) {
171159 runOperationsThatShouldNotFail ("testInvalidCredentials" , bucketClient );
172160 }
173- }
174161
175162 private void runOperationsThatShouldFail (String testName , BucketClient bucketClient ) {
176163
@@ -488,7 +475,6 @@ public void testVersionedDownload_happy() throws IOException {
488475
489476 @ Test
490477 public void testVersionedDownload_noVersionId () throws IOException {
491- Assumptions .assumeFalse (GCP_PROVIDER_ID .equals (harness .getProviderId ()));
492478 runVersionedDownloadTests ("no versionId download" ,
493479 "conformance-tests/versioned_download_no_versionId" ,
494480 "conformance-tests/versioned_download_no_versionId" ,
@@ -893,7 +879,7 @@ public void testVersionedDelete_fileDoesNotExist() throws IOException {
893879
894880 @ Test
895881 public void testVersionedDelete () throws IOException {
896- Assumptions .assumeFalse (GCP_PROVIDER_ID .equals (harness .getProviderId ()));
882+ Assumptions .assumeFalse (GCP_PROVIDER_ID .equals (harness .getProviderId ()));
897883 // Create the BucketClient
898884 AbstractBlobStore blobStore = harness .createBlobStore (true , true , true );
899885 BucketClient bucketClient = new BucketClient (blobStore );
@@ -1262,7 +1248,7 @@ private void verifyBlobCopy(BucketClient bucketClient, String originalKey, Strin
12621248
12631249 @ Test
12641250 public void testList () throws IOException {
1265- Assumptions .assumeFalse (GCP_PROVIDER_ID .equals (harness .getProviderId ()));
1251+ Assumptions .assumeFalse (GCP_PROVIDER_ID .equals (harness .getProviderId ()));
12661252 // Create the BucketClient
12671253 AbstractBlobStore blobStore = harness .createBlobStore (true , true , false );
12681254 BucketClient bucketClient = new BucketClient (blobStore );
@@ -1483,7 +1469,6 @@ public void testListPage() throws IOException {
14831469
14841470 @ Test
14851471 public void testGetMetadata () throws IOException {
1486- Assumptions .assumeFalse (GCP_PROVIDER_ID .equals (harness .getProviderId ()), "testGetMetadata: GCP metadata etag mismatch in replay mode" );
14871472
14881473 class TestConfig {
14891474 final String testName ;
@@ -1813,7 +1798,7 @@ public void testMultipartUpload_unorderedMultipleParts() throws IOException {
18131798
18141799 @ Test
18151800 public void testMultipartUpload_skippingNumbers () throws IOException {
1816- Assumptions .assumeFalse (GCP_PROVIDER_ID .equals (harness .getProviderId ()), "testMultipartUpload_skippingNumbers: GCP etag mismatch in replay mode" );
1801+ Assumptions .assumeFalse (GCP_PROVIDER_ID .equals (harness .getProviderId ()));
18171802 runMultipartUploadTest (new MultipartUploadTestConfig (
18181803 "skipping numbers" , DEFAULT_MULTIPART_KEY_PREFIX + "skippingNumbers" ,
18191804 Map .of ("456" , "456" ),
@@ -1860,7 +1845,7 @@ public void testMultipartUpload_nonExistentParts() throws IOException {
18601845
18611846 @ Test
18621847 public void testMultipartUpload_badETag () throws IOException {
1863- Assumptions .assumeFalse (GCP_PROVIDER_ID .equals (harness .getProviderId ()));
1848+ Assumptions .assumeFalse (GCP_PROVIDER_ID .equals (harness .getProviderId ()));
18641849 runMultipartUploadTest (new MultipartUploadTestConfig (
18651850 "bad etag" , DEFAULT_MULTIPART_KEY_PREFIX + "badETag" ,
18661851 Map .of ("789" , "456" ),
@@ -2000,7 +1985,7 @@ public void testMultipartUpload_completeAnAbortedUpload(){
20001985
20011986 @ Test
20021987 public void testMultipartUpload_withKms () throws IOException {
2003- Assumptions .assumeFalse (GCP_PROVIDER_ID .equals (harness .getProviderId ()), "testMultipartUpload_withKms: GCP multipart list parts issue in replay mode" );
1988+ Assumptions .assumeFalse (GCP_PROVIDER_ID .equals (harness .getProviderId ()));
20041989 String kmsKeyId = harness .getKmsKeyId ();
20051990 Assumptions .assumeTrue (kmsKeyId != null && !kmsKeyId .isEmpty (), "KMS key ID not configured" );
20061991
@@ -2019,8 +2004,6 @@ public void testMultipartUpload_withKms() throws IOException {
20192004 @ Test
20202005 @ Disabled
20212006 public void testTagging () throws IOException {
2022- Assumptions .assumeFalse (GCP_PROVIDER_ID .equals (harness .getProviderId ()));
2023-
20242007 AbstractBlobStore blobStore = harness .createBlobStore (true , true , false );
20252008 BucketClient bucketClient = new BucketClient (blobStore );
20262009
@@ -2071,32 +2054,28 @@ public void testTagging() throws IOException {
20712054 private static final String PRESIGNED_BLOB_UPLOAD_PREFIX = "conformance-tests/presignedUploadUrls/" ;
20722055 private static final String PRESIGNED_BLOB_DOWNLOAD_PREFIX = "conformance-tests/presignedDownloadUrls/" ;
20732056
2074- @ Test
2057+ // @Test
20752058 public void testGeneratePresignedUploadUrl_happyPathWithNoMetadataOrTags () throws IOException {
2076- Assumptions .assumeFalse (GCP_PROVIDER_ID .equals (harness .getProviderId ()));
20772059 String key = PRESIGNED_BLOB_UPLOAD_PREFIX + "happyPathWithNoMetadataOrTags" ;
20782060 runPresignedUploadTest (key , Duration .ofHours (10 ), null , null , null , null , null );
20792061 }
20802062
2081- @ Test
2063+ // @Test
20822064 public void testGeneratePresignedUploadUrl_happyPathWithMetadataButWithNoTags () throws IOException {
2083- Assumptions .assumeFalse (GCP_PROVIDER_ID .equals (harness .getProviderId ()));
20842065 String key = PRESIGNED_BLOB_UPLOAD_PREFIX + "happyPathWithMetadataButWithNoTags" ;
20852066 Map <String , String > metadata = Map .of ("key1" , "value1" , "key2" , "value2" );
20862067 runPresignedUploadTest (key , Duration .ofHours (10 ), null , metadata , metadata , null , null );
20872068 }
20882069
2089- @ Test
2070+ // @Test
20902071 public void testGeneratePresignedUploadUrl_happyPathWithNoMetadataButWithTags () throws IOException {
2091- Assumptions .assumeFalse (GCP_PROVIDER_ID .equals (harness .getProviderId ()));
20922072 String key = PRESIGNED_BLOB_UPLOAD_PREFIX + "happyPathWithNoMetadataButWithTags" ;
20932073 Map <String , String > tags = Map .of ("tag1" , "tagValue1" , "tag2" , "tagValue2" );
20942074 runPresignedUploadTest (key , Duration .ofHours (10 ), null , null , null , tags , tags );
20952075 }
20962076
2097- @ Test
2077+ // @Test
20982078 public void testGeneratePresignedUploadUrl_happyPathWithBothMetadataAndTags () throws IOException {
2099- Assumptions .assumeFalse (GCP_PROVIDER_ID .equals (harness .getProviderId ()));
21002079 String key = PRESIGNED_BLOB_UPLOAD_PREFIX + "happyPathWithBothMetadataAndTags" ;
21012080 Map <String , String > metadata = Map .of ("key3" , "value3" , "key4" , "value4" );
21022081 Map <String , String > tags = Map .of ("tag3" , "tagValue3" , "tag4" , "tagValue4" );
@@ -2234,9 +2213,8 @@ private void runPresignedUploadTest(String key,
22342213 }
22352214 }
22362215
2237- @ Test
2216+ // @Test
22382217 void testGeneratePresignedDownloadUrl_happyPath () throws IOException {
2239- Assumptions .assumeFalse (GCP_PROVIDER_ID .equals (harness .getProviderId ()));
22402218 String key = PRESIGNED_BLOB_DOWNLOAD_PREFIX + "happyPath" ;
22412219 runPresignedDownloadTest (key , true , Duration .ofHours (6 ), null );
22422220 }
@@ -2459,7 +2437,6 @@ private void safeDeleteBlobs(BucketClient bucketClient, String... keys){
24592437 public void testUploadWithKmsKey_happyPath () {
24602438 String key = "conformance-tests/kms/upload-happy-path" ;
24612439 String kmsKeyId = harness .getKmsKeyId ();
2462- Assumptions .assumeTrue (kmsKeyId != null && !kmsKeyId .isEmpty (), "KMS key ID not configured" );
24632440 runUploadWithKmsKeyTest (key , kmsKeyId , "Test data with KMS encryption" .getBytes ());
24642441 }
24652442
@@ -2515,7 +2492,6 @@ private void runUploadWithKmsKeyTest(String key, String kmsKeyId, byte[] content
25152492 public void testDownloadWithKmsKey () throws IOException {
25162493 String key = "conformance-tests/kms/download-happy-path" ;
25172494 String kmsKeyId = harness .getKmsKeyId ();
2518- Assumptions .assumeTrue (kmsKeyId != null && !kmsKeyId .isEmpty (), "KMS key ID not configured" );
25192495 byte [] content = "Test data for KMS download" .getBytes (StandardCharsets .UTF_8 );
25202496 AbstractBlobStore blobStore = harness .createBlobStore (true , true , false );
25212497 BucketClient bucketClient = new BucketClient (blobStore );
@@ -2553,7 +2529,6 @@ public void testDownloadWithKmsKey() throws IOException {
25532529 public void testRangedReadWithKmsKey () throws IOException {
25542530 String key = "conformance-tests/kms/ranged-read" ;
25552531 String kmsKeyId = harness .getKmsKeyId ();
2556- Assumptions .assumeTrue (kmsKeyId != null && !kmsKeyId .isEmpty (), "KMS key ID not configured" );
25572532 runRangedReadWithKmsKeyTest (key , kmsKeyId );
25582533 }
25592534
@@ -2616,7 +2591,7 @@ private void runRangedReadWithKmsKeyTest(String key, String kmsKeyId) throws IOE
26162591
26172592 @ Test
26182593 public void testPresignedUrlWithKmsKey_nullKmsKeyId () throws IOException {
2619- Assumptions .assumeFalse (GCP_PROVIDER_ID .equals (harness .getProviderId ()), "testPresignedUrlWithKmsKey_nullKmsKeyId: GCP signing key issue" );
2594+ Assumptions .assumeFalse (GCP_PROVIDER_ID .equals (harness .getProviderId ()));
26202595 String key = "conformance-tests/kms/presigned-url-null-key" ;
26212596 Map <String , String > metadata = Map .of ("key2" , "value2" );
26222597 byte [] content = "Test data for presigned URL without KMS" .getBytes (StandardCharsets .UTF_8 );
0 commit comments