Skip to content
This repository was archived by the owner on Sep 16, 2023. It is now read-only.

Commit 2397ab2

Browse files
feat: add google/api/routing.proto (#658)
* feat: add `google/api/routing.proto` Committer: @virost PiperOrigin-RevId: 399105877 Source-Link: googleapis/googleapis@161fdb4 Source-Link: https://github.com/googleapis/googleapis-gen/commit/fa615d148944b7b80eba98be4ed59b757fd55a62 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZmE2MTVkMTQ4OTQ0YjdiODBlYmE5OGJlNGVkNTliNzU3ZmQ1NWE2MiJ9 * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 122c008 commit 2397ab2

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1p1beta1/SecurityCenterClientTest.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -688,7 +688,7 @@ public void getIamPolicyTest() throws Exception {
688688
.build();
689689
mockSecurityCenter.addResponse(expectedResponse);
690690

691-
ResourceName resource = ProjectName.of("[PROJECT]");
691+
ResourceName resource = AssetName.ofOrganizationAssetName("[ORGANIZATION]", "[ASSET]");
692692

693693
Policy actualResponse = client.getIamPolicy(resource);
694694
Assert.assertEquals(expectedResponse, actualResponse);
@@ -710,7 +710,7 @@ public void getIamPolicyExceptionTest() throws Exception {
710710
mockSecurityCenter.addException(exception);
711711

712712
try {
713-
ResourceName resource = ProjectName.of("[PROJECT]");
713+
ResourceName resource = AssetName.ofOrganizationAssetName("[ORGANIZATION]", "[ASSET]");
714714
client.getIamPolicy(resource);
715715
Assert.fail("No exception raised");
716716
} catch (InvalidArgumentException e) {
@@ -1926,7 +1926,7 @@ public void setIamPolicyTest() throws Exception {
19261926
.build();
19271927
mockSecurityCenter.addResponse(expectedResponse);
19281928

1929-
ResourceName resource = ProjectName.of("[PROJECT]");
1929+
ResourceName resource = AssetName.ofOrganizationAssetName("[ORGANIZATION]", "[ASSET]");
19301930
Policy policy = Policy.newBuilder().build();
19311931

19321932
Policy actualResponse = client.setIamPolicy(resource, policy);
@@ -1950,7 +1950,7 @@ public void setIamPolicyExceptionTest() throws Exception {
19501950
mockSecurityCenter.addException(exception);
19511951

19521952
try {
1953-
ResourceName resource = ProjectName.of("[PROJECT]");
1953+
ResourceName resource = AssetName.ofOrganizationAssetName("[ORGANIZATION]", "[ASSET]");
19541954
Policy policy = Policy.newBuilder().build();
19551955
client.setIamPolicy(resource, policy);
19561956
Assert.fail("No exception raised");
@@ -2008,7 +2008,7 @@ public void testIamPermissionsTest() throws Exception {
20082008
TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList<String>()).build();
20092009
mockSecurityCenter.addResponse(expectedResponse);
20102010

2011-
ResourceName resource = ProjectName.of("[PROJECT]");
2011+
ResourceName resource = AssetName.ofOrganizationAssetName("[ORGANIZATION]", "[ASSET]");
20122012
List<String> permissions = new ArrayList<>();
20132013

20142014
TestIamPermissionsResponse actualResponse = client.testIamPermissions(resource, permissions);
@@ -2032,7 +2032,7 @@ public void testIamPermissionsExceptionTest() throws Exception {
20322032
mockSecurityCenter.addException(exception);
20332033

20342034
try {
2035-
ResourceName resource = ProjectName.of("[PROJECT]");
2035+
ResourceName resource = AssetName.ofOrganizationAssetName("[ORGANIZATION]", "[ASSET]");
20362036
List<String> permissions = new ArrayList<>();
20372037
client.testIamPermissions(resource, permissions);
20382038
Assert.fail("No exception raised");

0 commit comments

Comments
 (0)