-
Notifications
You must be signed in to change notification settings - Fork 2.9k
ci(container-registry): skip tests #10181
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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") | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
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") | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
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") | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
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") | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
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") | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
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") | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
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") | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
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") | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
public void testFindVulnerabilitiesForImage() throws Exception { | ||
List<Occurrence> 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") | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
public void testFindHighSeverityVulnerabilitiesForImage() throws Exception { | ||
// check before creation | ||
List<Occurrence> result = | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since all tests in this class are being ignored for the same reason, it would be cleaner to add a single
@Ignore
annotation to theSamplesTest
class instead of annotating each test method individually. This would make the code more concise and easier to maintain when the tests are re-enabled. Please remove this annotation and add@Ignore("https://github.com/GoogleCloudPlatform/java-docs-samples/issues/10180")
to theSamplesTest
class.