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

Commit

Permalink
feat: generate java files for error_reason.proto, bigquery_audit_meta…
Browse files Browse the repository at this point in the history
…data.proto and localized_text.proto (#616)

- [ ] Regenerate this pull request now.

PiperOrigin-RevId: 393186792

Source-Link: googleapis/googleapis@9e36f4e

Source-Link: googleapis/googleapis-gen@1bb34f9
  • Loading branch information
gcf-owl-bot[bot] committed Aug 31, 2021
1 parent 8fc790b commit dacada4
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -578,7 +578,7 @@ public void getIamPolicyTest() throws Exception {
.build();
mockSecurityCenter.addResponse(expectedResponse);

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

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

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

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

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

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

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

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

try {
ResourceName resource = AssetName.ofOrganizationAssetName("[ORGANIZATION]", "[ASSET]");
ResourceName resource = SourceName.ofOrganizationSourceName("[ORGANIZATION]", "[SOURCE]");
List<String> permissions = new ArrayList<>();
client.testIamPermissions(resource, permissions);
Assert.fail("No exception raised");
Expand Down

0 comments on commit dacada4

Please sign in to comment.