5151import org .junit .AfterClass ;
5252import org .junit .Assert ;
5353import org .junit .Before ;
54+ import org .junit .Ignore ;
5455import org .junit .Rule ;
5556import org .junit .Test ;
5657import org .junit .rules .TestName ;
@@ -104,6 +105,7 @@ public void tearDown() {
104105 }
105106
106107 @ Test
108+ @ Ignore ("https://github.com/GoogleCloudPlatform/java-docs-samples/issues/10180" )
107109 public void testCreateNote () throws Exception {
108110 // note should have been created as part of set up. verify that it succeeded
109111 Note n = GetNote .getNote (noteId , PROJECT_ID );
@@ -112,6 +114,7 @@ public void testCreateNote() throws Exception {
112114 }
113115
114116 @ Test
117+ @ Ignore ("https://github.com/GoogleCloudPlatform/java-docs-samples/issues/10180" )
115118 public void testDeleteNote () throws Exception {
116119 DeleteNote .deleteNote (noteId , PROJECT_ID );
117120 try {
@@ -124,6 +127,7 @@ public void testDeleteNote() throws Exception {
124127 }
125128
126129 @ Test
130+ @ Ignore ("https://github.com/GoogleCloudPlatform/java-docs-samples/issues/10180" )
127131 public void testCreateOccurrence () throws Exception {
128132 Occurrence o = CreateOccurrence .createOccurrence (imageUrl , noteId , PROJECT_ID , PROJECT_ID );
129133 String [] nameArr = o .getName ().split ("/" );
@@ -136,6 +140,7 @@ public void testCreateOccurrence() throws Exception {
136140 }
137141
138142 @ Test
143+ @ Ignore ("https://github.com/GoogleCloudPlatform/java-docs-samples/issues/10180" )
139144 public void testDeleteOccurrence () throws Exception {
140145 Occurrence o = CreateOccurrence .createOccurrence (imageUrl , noteId , PROJECT_ID , PROJECT_ID );
141146 String occName = o .getName ();
@@ -154,6 +159,7 @@ public void testDeleteOccurrence() throws Exception {
154159 }
155160
156161 @ Test
162+ @ Ignore ("https://github.com/GoogleCloudPlatform/java-docs-samples/issues/10180" )
157163 public void testOccurrencesForImage () throws Exception {
158164 int newCount ;
159165 int tries = 0 ;
@@ -175,6 +181,7 @@ public void testOccurrencesForImage() throws Exception {
175181 }
176182
177183 @ Test
184+ @ Ignore ("https://github.com/GoogleCloudPlatform/java-docs-samples/issues/10180" )
178185 public void testOccurrencesForNote () throws Exception {
179186 int newCount ;
180187 int tries = 0 ;
@@ -196,6 +203,7 @@ public void testOccurrencesForNote() throws Exception {
196203 }
197204
198205 @ Test
206+ @ Ignore ("https://github.com/GoogleCloudPlatform/java-docs-samples/issues/10180" )
199207 public void testPubSub () throws Exception {
200208 // create new topic and subscription if needed
201209 try (TopicAdminClient topicAdminClient = TopicAdminClient .create ()) {
@@ -244,6 +252,7 @@ public void testPubSub() throws Exception {
244252 }
245253
246254 @ Test
255+ @ Ignore ("https://github.com/GoogleCloudPlatform/java-docs-samples/issues/10180" )
247256 public void testPollDiscoveryOccurrenceFinished () throws Exception {
248257 try {
249258 // expect fail on first try
@@ -301,6 +310,7 @@ public void testPollDiscoveryOccurrenceFinished() throws Exception {
301310 }
302311
303312 @ Test
313+ @ Ignore ("https://github.com/GoogleCloudPlatform/java-docs-samples/issues/10180" )
304314 public void testFindVulnerabilitiesForImage () throws Exception {
305315 List <Occurrence > result =
306316 VulnerabilityOccurrencesForImage .findVulnerabilityOccurrencesForImage (imageUrl , PROJECT_ID );
@@ -323,6 +333,7 @@ public void testFindVulnerabilitiesForImage() throws Exception {
323333 }
324334
325335 @ Test
336+ @ Ignore ("https://github.com/GoogleCloudPlatform/java-docs-samples/issues/10180" )
326337 public void testFindHighSeverityVulnerabilitiesForImage () throws Exception {
327338 // check before creation
328339 List <Occurrence > result =
0 commit comments