Skip to content

Commit

Permalink
chore: ignore failing VpcFlowLogsServiceClientHttpJsonTest unit tests…
Browse files Browse the repository at this point in the history
… in network management (#11087)
  • Loading branch information
mpeddada1 authored Sep 17, 2024
1 parent 66a384d commit e21bb50
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion java-network-management/owlbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

v1_file_name = "owl-bot-staging/v1/google-cloud-network-management/src/test/java/com/google/cloud/networkmanagement/v1/ReachabilityServiceClientHttpJsonTest.java"
v1beta1_file_name = "owl-bot-staging/v1beta1/google-cloud-network-management/src/test/java/com/google/cloud/networkmanagement/v1beta1/ReachabilityServiceClientHttpJsonTest.java"

v1beta1_vpcflowlogs_file_name = "owl-bot-staging/v1beta1/google-cloud-network-management/src/test/java/com/google/cloud/networkmanagement/v1beta1/VpcFlowLogsServiceClientHttpJsonTest.java"

for library in s.get_staging_dirs():
# put any special-case replacements here
Expand Down Expand Up @@ -61,6 +61,26 @@
r'\s+@Test\n\s+public void testIamPermissionsTest\(\) throws Exception.*',
'@Ignore("See: https://github.com/googleapis/sdk-platform-java/issues/1839")@Test\npublic void testIamPermissionsTest() throws Exception {'
)
s.replace(
v1beta1_vpcflowlogs_file_name,
r'^import org.junit.Test;',
'import org.junit.Ignore;\nimport org.junit.Test;'
)
s.replace(
v1beta1_vpcflowlogs_file_name,
r"\s+@Test\n\s+public void setIamPolicyTest\(\) throws Exception.*",
'@Ignore("See: https://github.com/googleapis/sdk-platform-java/issues/1839")\n@Test\npublic void setIamPolicyTest() throws Exception {'
)
s.replace(
v1beta1_vpcflowlogs_file_name,
r'\s+@Test\n\s+public void getIamPolicyTest\(\) throws Exception.*',
'@Ignore("See: https://github.com/googleapis/sdk-platform-java/issues/1839")\n@Test\npublic void getIamPolicyTest() throws Exception {'
)
s.replace(
v1beta1_vpcflowlogs_file_name,
r'\s+@Test\n\s+public void testIamPermissionsTest\(\) throws Exception.*',
'@Ignore("See: https://github.com/googleapis/sdk-platform-java/issues/1839")@Test\npublic void testIamPermissionsTest() throws Exception {'
)
s.move(library)

s.remove_staging_dirs()
Expand Down

0 comments on commit e21bb50

Please sign in to comment.