Skip to content

Commit d782298

Browse files
committed
chore: skip problematic test
1 parent f48c9e2 commit d782298

2 files changed

Lines changed: 25 additions & 0 deletions

File tree

java-network-management/google-cloud-network-management/src/test/java/com/google/cloud/networkmanagement/v1/OrganizationVpcFlowLogsServiceClientHttpJsonTest.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@
6060
import org.junit.Assert;
6161
import org.junit.Before;
6262
import org.junit.BeforeClass;
63+
import org.junit.Ignore;
6364
import org.junit.Test;
6465

6566
@Generated("by gapic-generator-java")
@@ -97,6 +98,7 @@ public void tearDown() throws Exception {
9798
mockService.reset();
9899
}
99100

101+
@Ignore("See: https://github.com/googleapis/sdk-platform-java/issues/1839")
100102
@Test
101103
public void listVpcFlowLogsConfigsTest() throws Exception {
102104
VpcFlowLogsConfig responsesElement = VpcFlowLogsConfig.newBuilder().build();
@@ -361,6 +363,7 @@ public void getVpcFlowLogsConfigExceptionTest2() throws Exception {
361363
}
362364
}
363365

366+
@Ignore("See: https://github.com/googleapis/sdk-platform-java/issues/1839")
364367
@Test
365368
public void createVpcFlowLogsConfigTest() throws Exception {
366369
VpcFlowLogsConfig expectedResponse =
@@ -429,6 +432,7 @@ public void createVpcFlowLogsConfigExceptionTest() throws Exception {
429432
}
430433
}
431434

435+
@Ignore("See: https://github.com/googleapis/sdk-platform-java/issues/1839")
432436
@Test
433437
public void createVpcFlowLogsConfigTest2() throws Exception {
434438
VpcFlowLogsConfig expectedResponse =

java-network-management/owlbot.py

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
v1beta1_vpcflowlogs_file_name = "owl-bot-staging/v1beta1/google-cloud-network-management/src/test/java/com/google/cloud/networkmanagement/v1beta1/VpcFlowLogsServiceClientHttpJsonTest.java"
2121
v1_vpcflowlogs_file_name = "owl-bot-staging/v1/google-cloud-network-management/src/test/java/com/google/cloud/networkmanagement/v1/VpcFlowLogsServiceClientHttpJsonTest.java"
2222
v1beta1_org_vpcflowlogs_file_name = "owl-bot-staging/v1beta1/google-cloud-network-management/src/test/java/com/google/cloud/networkmanagement/v1beta1/OrganizationVpcFlowLogsServiceClientHttpJsonTest.java"
23+
v1_org_vpcflowlogs_file_name = "owl-bot-staging/v1/google-cloud-network-management/src/test/java/com/google/cloud/networkmanagement/v1/OrganizationVpcFlowLogsServiceClientHttpJsonTest.java"
2324

2425
for library in s.get_staging_dirs():
2526
# put any special-case replacements here
@@ -158,6 +159,26 @@
158159
r'\s+@Test\n\s+public void listVpcFlowLogsConfigsTest\(\) throws Exception.*',
159160
'@Ignore("See: https://github.com/googleapis/sdk-platform-java/issues/1839")@Test\npublic void listVpcFlowLogsConfigsTest() throws Exception {'
160161
)
162+
s.replace(
163+
v1_org_vpcflowlogs_file_name,
164+
r'^import org.junit.Test;',
165+
'import org.junit.Ignore;\nimport org.junit.Test;'
166+
)
167+
s.replace(
168+
v1_org_vpcflowlogs_file_name,
169+
r'\s+@Test\n\s+public void createVpcFlowLogsConfigTest\(\) throws Exception.*',
170+
'@Ignore("See: https://github.com/googleapis/sdk-platform-java/issues/1839")@Test\npublic void createVpcFlowLogsConfigTest() throws Exception {'
171+
)
172+
s.replace(
173+
v1_org_vpcflowlogs_file_name,
174+
r'\s+@Test\n\s+public void createVpcFlowLogsConfigTest2\(\) throws Exception.*',
175+
'@Ignore("See: https://github.com/googleapis/sdk-platform-java/issues/1839")@Test\npublic void createVpcFlowLogsConfigTest2() throws Exception {'
176+
)
177+
s.replace(
178+
v1_org_vpcflowlogs_file_name,
179+
r'\s+@Test\n\s+public void listVpcFlowLogsConfigsTest\(\) throws Exception.*',
180+
'@Ignore("See: https://github.com/googleapis/sdk-platform-java/issues/1839")@Test\npublic void listVpcFlowLogsConfigsTest() throws Exception {'
181+
)
161182
s.move(library)
162183

163184
s.remove_staging_dirs()

0 commit comments

Comments
 (0)