Skip to content

Commit 87c9c81

Browse files
authored
fix: Ignore tests failing due to public access prevention policy (#3374)
1 parent 03e6261 commit 87c9c81

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

samples/snippets/src/test/java/com/example/storage/ITBucketSnippets.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@
101101
import org.junit.After;
102102
import org.junit.AfterClass;
103103
import org.junit.BeforeClass;
104+
import org.junit.Ignore;
104105
import org.junit.Rule;
105106
import org.junit.Test;
106107
import org.junit.rules.ExpectedException;
@@ -425,6 +426,7 @@ public void testAddListRemoveBucketIamMembers() throws Throwable {
425426
.build());
426427
}
427428

429+
@Ignore("TODO(b/456381873): Test fails in CI due to project's public access prevention policy.")
428430
@Test
429431
public void testMakeBucketPublic() throws Throwable {
430432
MakeBucketPublic.makeBucketPublic(PROJECT_ID, BUCKET);

samples/snippets/src/test/java/com/example/storage/ITObjectSnippets.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@
9292
import java.util.Random;
9393
import javax.net.ssl.HttpsURLConnection;
9494
import org.junit.Assert;
95+
import org.junit.Ignore;
9596
import org.junit.Rule;
9697
import org.junit.Test;
9798
import org.junit.rules.TemporaryFolder;
@@ -167,6 +168,7 @@ public void testDownloadObjectIntoMemory() throws IOException {
167168
assertThat(snippetOutput).contains("The contents of " + objectName);
168169
}
169170

171+
@Ignore("TODO(b/456381873): Test fails in CI due to project's public access prevention policy.")
170172
@Test
171173
public void testDownloadPublicObject() throws Exception {
172174
try (TemporaryBucket tmpBucket =
@@ -436,6 +438,7 @@ public void testV4SignedURLs() throws IOException {
436438
}
437439
}
438440

441+
@Ignore("TODO(b/456381873): Test fails in CI due to project's public access prevention policy.")
439442
@Test
440443
public void testMakeObjectPublic() {
441444
String aclBlob = generator.randomObjectName();

0 commit comments

Comments
 (0)