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

Commit dacada4

Browse files
feat: generate java files for error_reason.proto, bigquery_audit_metadata.proto and localized_text.proto (#616)
- [ ] Regenerate this pull request now. PiperOrigin-RevId: 393186792 Source-Link: googleapis/googleapis@9e36f4e Source-Link: https://github.com/googleapis/googleapis-gen/commit/1bb34f9bedf6f864d69716ec0cc5b4322bb05e70
1 parent 8fc790b commit dacada4

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/v1/SecurityCenterClientTest.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -578,7 +578,7 @@ public void getIamPolicyTest() throws Exception {
578578
.build();
579579
mockSecurityCenter.addResponse(expectedResponse);
580580

581-
ResourceName resource = AssetName.ofOrganizationAssetName("[ORGANIZATION]", "[ASSET]");
581+
ResourceName resource = SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]");
582582

583583
Policy actualResponse = client.getIamPolicy(resource);
584584
Assert.assertEquals(expectedResponse, actualResponse);
@@ -600,7 +600,7 @@ public void getIamPolicyExceptionTest() throws Exception {
600600
mockSecurityCenter.addException(exception);
601601

602602
try {
603-
ResourceName resource = AssetName.ofOrganizationAssetName("[ORGANIZATION]", "[ASSET]");
603+
ResourceName resource = SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]");
604604
client.getIamPolicy(resource);
605605
Assert.fail("No exception raised");
606606
} catch (InvalidArgumentException e) {
@@ -1689,7 +1689,7 @@ public void setIamPolicyTest() throws Exception {
16891689
.build();
16901690
mockSecurityCenter.addResponse(expectedResponse);
16911691

1692-
ResourceName resource = AssetName.ofOrganizationAssetName("[ORGANIZATION]", "[ASSET]");
1692+
ResourceName resource = SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]");
16931693
Policy policy = Policy.newBuilder().build();
16941694

16951695
Policy actualResponse = client.setIamPolicy(resource, policy);
@@ -1713,7 +1713,7 @@ public void setIamPolicyExceptionTest() throws Exception {
17131713
mockSecurityCenter.addException(exception);
17141714

17151715
try {
1716-
ResourceName resource = AssetName.ofOrganizationAssetName("[ORGANIZATION]", "[ASSET]");
1716+
ResourceName resource = SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]");
17171717
Policy policy = Policy.newBuilder().build();
17181718
client.setIamPolicy(resource, policy);
17191719
Assert.fail("No exception raised");
@@ -1771,7 +1771,7 @@ public void testIamPermissionsTest() throws Exception {
17711771
TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList<String>()).build();
17721772
mockSecurityCenter.addResponse(expectedResponse);
17731773

1774-
ResourceName resource = AssetName.ofOrganizationAssetName("[ORGANIZATION]", "[ASSET]");
1774+
ResourceName resource = SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]");
17751775
List<String> permissions = new ArrayList<>();
17761776

17771777
TestIamPermissionsResponse actualResponse = client.testIamPermissions(resource, permissions);
@@ -1795,7 +1795,7 @@ public void testIamPermissionsExceptionTest() throws Exception {
17951795
mockSecurityCenter.addException(exception);
17961796

17971797
try {
1798-
ResourceName resource = AssetName.ofOrganizationAssetName("[ORGANIZATION]", "[ASSET]");
1798+
ResourceName resource = SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]");
17991799
List<String> permissions = new ArrayList<>();
18001800
client.testIamPermissions(resource, permissions);
18011801
Assert.fail("No exception raised");

0 commit comments

Comments
 (0)