From e21bb5055ee47a47794b7616237fcdf5c9131d11 Mon Sep 17 00:00:00 2001 From: Mridula <66699525+mpeddada1@users.noreply.github.com> Date: Tue, 17 Sep 2024 16:21:53 -0400 Subject: [PATCH] chore: ignore failing VpcFlowLogsServiceClientHttpJsonTest unit tests in network management (#11087) --- java-network-management/owlbot.py | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/java-network-management/owlbot.py b/java-network-management/owlbot.py index 7f701cc8b84e..d3b371ec0e33 100644 --- a/java-network-management/owlbot.py +++ b/java-network-management/owlbot.py @@ -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 @@ -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()