|
15 | 15 | import synthtool as s |
16 | 16 | from synthtool.languages import java |
17 | 17 |
|
| 18 | +v1_file_name = "owl-bot-staging/v1/google-cloud-network-management/src/test/java/com/google/cloud/networkmanagement/v1/ReachabilityServiceClientHttpJsonTest.java" |
| 19 | +v1beta1_file_name = "owl-bot-staging/v1beta1/google-cloud-network-management/src/test/java/com/google/cloud/networkmanagement/v1beta1/ReachabilityServiceClientHttpJsonTest.java" |
| 20 | + |
18 | 21 |
|
19 | 22 | for library in s.get_staging_dirs(): |
20 | 23 | # put any special-case replacements here |
| 24 | + s.replace( |
| 25 | + v1_file_name, |
| 26 | + r'^import org.junit.Test;', |
| 27 | + 'import org.junit.Ignore;\nimport org.junit.Test;' |
| 28 | + ) |
| 29 | + s.replace( |
| 30 | + v1_file_name, |
| 31 | + r"\s+@Test\n\s+public void setIamPolicyTest\(\) throws Exception.*", |
| 32 | + '@Ignore("See: https://github.com/googleapis/sdk-platform-java/issues/1839")\n@Test\npublic void setIamPolicyTest() throws Exception {' |
| 33 | + ) |
| 34 | + s.replace( |
| 35 | + v1_file_name, |
| 36 | + r'\s+@Test\n\s+public void getIamPolicyTest\(\) throws Exception.*', |
| 37 | + '@Ignore("See: https://github.com/googleapis/sdk-platform-java/issues/1839")\n@Test\npublic void getIamPolicyTest() throws Exception {' |
| 38 | + ) |
| 39 | + s.replace( |
| 40 | + v1_file_name, |
| 41 | + r'\s+@Test\n\s+public void testIamPermissionsTest\(\) throws Exception.*', |
| 42 | + '@Ignore("See: https://github.com/googleapis/sdk-platform-java/issues/1839")@Test\npublic void testIamPermissionsTest() throws Exception {' |
| 43 | + ) |
| 44 | + s.replace( |
| 45 | + v1beta1_file_name, |
| 46 | + r'^import org.junit.Test;', |
| 47 | + 'import org.junit.Ignore;\nimport org.junit.Test;' |
| 48 | + ) |
| 49 | + s.replace( |
| 50 | + v1beta1_file_name, |
| 51 | + r"\s+@Test\n\s+public void setIamPolicyTest\(\) throws Exception.*", |
| 52 | + '@Ignore("See: https://github.com/googleapis/sdk-platform-java/issues/1839")\n@Test\npublic void setIamPolicyTest() throws Exception {' |
| 53 | + ) |
| 54 | + s.replace( |
| 55 | + v1beta1_file_name, |
| 56 | + r'\s+@Test\n\s+public void getIamPolicyTest\(\) throws Exception.*', |
| 57 | + '@Ignore("See: https://github.com/googleapis/sdk-platform-java/issues/1839")\n@Test\npublic void getIamPolicyTest() throws Exception {' |
| 58 | + ) |
| 59 | + s.replace( |
| 60 | + v1beta1_file_name, |
| 61 | + r'\s+@Test\n\s+public void testIamPermissionsTest\(\) throws Exception.*', |
| 62 | + '@Ignore("See: https://github.com/googleapis/sdk-platform-java/issues/1839")@Test\npublic void testIamPermissionsTest() throws Exception {' |
| 63 | + ) |
21 | 64 | s.move(library) |
22 | 65 |
|
23 | 66 | s.remove_staging_dirs() |
|
0 commit comments