Skip to content

Commit 10ec1b6

Browse files
Dhriti07Dhriti Chopra
andauthored
chore: Ignore tests that are failing due to Public access prevention (#3489)
Co-authored-by: Dhriti Chopra <dhritichopra@google.com>
1 parent ed2ddb7 commit 10ec1b6

5 files changed

Lines changed: 15 additions & 0 deletions

File tree

google-cloud-storage/src/test/java/com/google/cloud/storage/it/ITAccessTest.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959
import java.util.Optional;
6060
import java.util.function.Predicate;
6161
import java.util.stream.Collectors;
62+
import org.junit.Ignore;
6263
import org.junit.Test;
6364
import org.junit.runner.RunWith;
6465

@@ -137,6 +138,7 @@ public void bucket_defaultAcl_list_bucket404() {
137138
}
138139

139140
@Test
141+
@Ignore("TODO: fix b/468377909 to enable test again")
140142
public void bucket_defaultAcl_create() throws Exception {
141143
BucketInfo bucketInfo = BucketInfo.newBuilder(generator.randomBucketName()).build();
142144
try (TemporaryBucket tempB =
@@ -355,6 +357,7 @@ private void doTestUniformBucketLevelAccessAclImpact(IamConfiguration iamConfigu
355357
}
356358

357359
@Test
360+
@Ignore("TODO: fix b/468377909 to enable test again")
358361
public void testEnableAndDisableUniformBucketLevelAccessOnExistingBucket() throws Exception {
359362
String bpoBucket = generator.randomBucketName();
360363
BucketInfo.IamConfiguration ublaDisabledIamConfiguration =
@@ -462,6 +465,7 @@ public void testEnforcedPublicAccessPreventionOnBucket() throws Exception {
462465
}
463466

464467
@Test
468+
@Ignore("TODO: fix b/468377909 to enable test again")
465469
public void testUnspecifiedPublicAccessPreventionOnBucket() throws Exception {
466470
String papBucket = generator.randomBucketName();
467471
BucketInfo bucketInfo =
@@ -630,6 +634,7 @@ public void testRetentionPolicyNoLock() throws Exception {
630634
}
631635

632636
@Test
637+
@Ignore("TODO: fix b/468377909 to enable test again.")
633638
@SuppressWarnings({"unchecked", "deprecation"})
634639
public void testEnableAndDisableBucketPolicyOnlyOnExistingBucket() throws Exception {
635640
String bpoBucket = generator.randomBucketName();

google-cloud-storage/src/test/java/com/google/cloud/storage/it/ITBucketAclTest.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
import java.util.Optional;
4747
import java.util.function.Predicate;
4848
import java.util.stream.Collectors;
49+
import org.junit.Ignore;
4950
import org.junit.Test;
5051
import org.junit.runner.RunWith;
5152

@@ -114,6 +115,7 @@ public void bucket_acl_list_bucket404() {
114115
}
115116

116117
@Test
118+
@Ignore("TODO: fix b/468377909 to enable test again")
117119
public void bucket_acl_create() throws Exception {
118120
BucketInfo bucketInfo = BucketInfo.newBuilder(generator.randomBucketName()).build();
119121
try (TemporaryBucket tempB =
@@ -213,6 +215,7 @@ public void bucket_acl_update_bucket404() {
213215

214216
/** Update of an acl that doesn't exist should create it */
215217
@Test
218+
@Ignore("TODO: fix b/468377909 to enable test again")
216219
public void bucket_acl_404_acl_update() throws Exception {
217220
BucketInfo bucketInfo = BucketInfo.newBuilder(generator.randomBucketName()).build();
218221
try (TemporaryBucket tempB =

google-cloud-storage/src/test/java/com/google/cloud/storage/it/ITObjectAclTest.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151
import java.util.function.Predicate;
5252
import java.util.stream.Collectors;
5353
import org.junit.Before;
54+
import org.junit.Ignore;
5455
import org.junit.Test;
5556
import org.junit.runner.RunWith;
5657

@@ -183,6 +184,7 @@ public void object_acl_404_acl_get() {
183184

184185
/** Update of an acl that doesn't exist should create it */
185186
@Test
187+
@Ignore("TODO: fix b/468377909 to enable test again")
186188
public void object_acl_404_acl_update() {
187189
Blob mgen1 = tmpObject();
188190

@@ -231,6 +233,7 @@ public void object_acl_200_list() {
231233
}
232234

233235
@Test
236+
@Ignore("TODO: fix b/468377909 to enable test again")
234237
public void object_acl_200_create() {
235238
Blob mgen1 = tmpObject();
236239

google-cloud-storage/src/test/java/com/google/cloud/storage/it/ITObjectTest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@
9898
import java.util.stream.StreamSupport;
9999
import javax.crypto.spec.SecretKeySpec;
100100
import org.checkerframework.checker.nullness.qual.NonNull;
101+
import org.junit.Ignore;
101102
import org.junit.Test;
102103
import org.junit.runner.RunWith;
103104

@@ -891,6 +892,7 @@ public void copyBlob_classChange_multipleChunks() {
891892
}
892893

893894
@Test
895+
@Ignore("TODO: fix b/468377909 to enable test again")
894896
public void testCopyBlobWithPredefinedAcl() {
895897

896898
String sourceBlobName = generator.randomObjectName() + "-source";

google-cloud-storage/src/test/java/com/google/cloud/storage/it/ITSignedUrlTest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@
6363
import org.apache.http.impl.client.CloseableHttpClient;
6464
import org.apache.http.impl.client.HttpClientBuilder;
6565
import org.junit.Before;
66+
import org.junit.Ignore;
6667
import org.junit.Test;
6768
import org.junit.runner.RunWith;
6869

@@ -196,6 +197,7 @@ public void testV4SignedUrl() throws IOException {
196197
}
197198

198199
@Test
200+
@Ignore("TODO: fix b/468377909 to enable test again")
199201
public void testSignedPostPolicyV4() throws Exception {
200202
PostFieldsV4 fields = PostFieldsV4.newBuilder().setAcl("public-read").build();
201203

0 commit comments

Comments
 (0)