diff --git a/container-registry/container-analysis/src/test/java/com/example/containeranalysis/SamplesTest.java b/container-registry/container-analysis/src/test/java/com/example/containeranalysis/SamplesTest.java index 391e6b92f67..2f6990e0990 100644 --- a/container-registry/container-analysis/src/test/java/com/example/containeranalysis/SamplesTest.java +++ b/container-registry/container-analysis/src/test/java/com/example/containeranalysis/SamplesTest.java @@ -51,6 +51,7 @@ import org.junit.AfterClass; import org.junit.Assert; import org.junit.Before; +import org.junit.Ignore; import org.junit.Rule; import org.junit.Test; import org.junit.rules.TestName; @@ -104,6 +105,7 @@ public void tearDown() { } @Test + @Ignore("https://github.com/GoogleCloudPlatform/java-docs-samples/issues/10180") public void testCreateNote() throws Exception { // note should have been created as part of set up. verify that it succeeded Note n = GetNote.getNote(noteId, PROJECT_ID); @@ -112,6 +114,7 @@ public void testCreateNote() throws Exception { } @Test + @Ignore("https://github.com/GoogleCloudPlatform/java-docs-samples/issues/10180") public void testDeleteNote() throws Exception { DeleteNote.deleteNote(noteId, PROJECT_ID); try { @@ -124,6 +127,7 @@ public void testDeleteNote() throws Exception { } @Test + @Ignore("https://github.com/GoogleCloudPlatform/java-docs-samples/issues/10180") public void testCreateOccurrence() throws Exception { Occurrence o = CreateOccurrence.createOccurrence(imageUrl, noteId, PROJECT_ID, PROJECT_ID); String[] nameArr = o.getName().split("/"); @@ -136,6 +140,7 @@ public void testCreateOccurrence() throws Exception { } @Test + @Ignore("https://github.com/GoogleCloudPlatform/java-docs-samples/issues/10180") public void testDeleteOccurrence() throws Exception { Occurrence o = CreateOccurrence.createOccurrence(imageUrl, noteId, PROJECT_ID, PROJECT_ID); String occName = o.getName(); @@ -154,6 +159,7 @@ public void testDeleteOccurrence() throws Exception { } @Test + @Ignore("https://github.com/GoogleCloudPlatform/java-docs-samples/issues/10180") public void testOccurrencesForImage() throws Exception { int newCount; int tries = 0; @@ -175,6 +181,7 @@ public void testOccurrencesForImage() throws Exception { } @Test + @Ignore("https://github.com/GoogleCloudPlatform/java-docs-samples/issues/10180") public void testOccurrencesForNote() throws Exception { int newCount; int tries = 0; @@ -196,6 +203,7 @@ public void testOccurrencesForNote() throws Exception { } @Test + @Ignore("https://github.com/GoogleCloudPlatform/java-docs-samples/issues/10180") public void testPubSub() throws Exception { // create new topic and subscription if needed try (TopicAdminClient topicAdminClient = TopicAdminClient.create()) { @@ -244,6 +252,7 @@ public void testPubSub() throws Exception { } @Test + @Ignore("https://github.com/GoogleCloudPlatform/java-docs-samples/issues/10180") public void testPollDiscoveryOccurrenceFinished() throws Exception { try { // expect fail on first try @@ -301,6 +310,7 @@ public void testPollDiscoveryOccurrenceFinished() throws Exception { } @Test + @Ignore("https://github.com/GoogleCloudPlatform/java-docs-samples/issues/10180") public void testFindVulnerabilitiesForImage() throws Exception { List result = VulnerabilityOccurrencesForImage.findVulnerabilityOccurrencesForImage(imageUrl, PROJECT_ID); @@ -323,6 +333,7 @@ public void testFindVulnerabilitiesForImage() throws Exception { } @Test + @Ignore("https://github.com/GoogleCloudPlatform/java-docs-samples/issues/10180") public void testFindHighSeverityVulnerabilitiesForImage() throws Exception { // check before creation List result =