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

Commit

Permalink
feat: added support for test cases and agent validation (#280)
Browse files Browse the repository at this point in the history
This PR was generated using Autosynth. 🌈

Synth log will be available here:
https://source.cloud.google.com/results/invocations/682263bc-1104-4854-b8bb-bd978b3d71f6/targets

- [ ] To automatically regenerate this PR, check this box.

PiperOrigin-RevId: 352834280
Source-Link: googleapis/googleapis@f83715b
  • Loading branch information
yoshi-automation committed Feb 16, 2021
1 parent d6cd078 commit f66cdd6
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 10 deletions.
Expand Up @@ -1236,7 +1236,8 @@ public void getIamPolicyTest() throws Exception {

GetIamPolicyRequest request =
GetIamPolicyRequest.newBuilder()
.setResource(NamespaceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]").toString())
.setResource(
ServiceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]").toString())
.setOptions(GetPolicyOptions.newBuilder().build())
.build();

Expand All @@ -1263,7 +1264,8 @@ public void getIamPolicyExceptionTest() throws Exception {
try {
GetIamPolicyRequest request =
GetIamPolicyRequest.newBuilder()
.setResource(NamespaceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]").toString())
.setResource(
ServiceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]").toString())
.setOptions(GetPolicyOptions.newBuilder().build())
.build();
client.getIamPolicy(request);
Expand All @@ -1285,7 +1287,8 @@ public void setIamPolicyTest() throws Exception {

SetIamPolicyRequest request =
SetIamPolicyRequest.newBuilder()
.setResource(NamespaceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]").toString())
.setResource(
ServiceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]").toString())
.setPolicy(Policy.newBuilder().build())
.build();

Expand All @@ -1312,7 +1315,8 @@ public void setIamPolicyExceptionTest() throws Exception {
try {
SetIamPolicyRequest request =
SetIamPolicyRequest.newBuilder()
.setResource(NamespaceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]").toString())
.setResource(
ServiceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]").toString())
.setPolicy(Policy.newBuilder().build())
.build();
client.setIamPolicy(request);
Expand All @@ -1330,7 +1334,8 @@ public void testIamPermissionsTest() throws Exception {

TestIamPermissionsRequest request =
TestIamPermissionsRequest.newBuilder()
.setResource(NamespaceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]").toString())
.setResource(
ServiceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]").toString())
.addAllPermissions(new ArrayList<String>())
.build();

Expand All @@ -1357,7 +1362,8 @@ public void testIamPermissionsExceptionTest() throws Exception {
try {
TestIamPermissionsRequest request =
TestIamPermissionsRequest.newBuilder()
.setResource(NamespaceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]").toString())
.setResource(
ServiceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]").toString())
.addAllPermissions(new ArrayList<String>())
.build();
client.testIamPermissions(request);
Expand Down
8 changes: 4 additions & 4 deletions synth.metadata
Expand Up @@ -11,16 +11,16 @@
"git": {
"name": "googleapis",
"remote": "https://github.com/googleapis/googleapis.git",
"sha": "91e206bcfeaf8948ea03fe3cb1b7616108496cd3",
"internalRef": "350949863"
"sha": "f83715b48369c8d43548cc3cd84015e60be94cf2",
"internalRef": "352834280"
}
},
{
"git": {
"name": "googleapis",
"remote": "https://github.com/googleapis/googleapis.git",
"sha": "91e206bcfeaf8948ea03fe3cb1b7616108496cd3",
"internalRef": "350949863"
"sha": "f83715b48369c8d43548cc3cd84015e60be94cf2",
"internalRef": "352834280"
}
},
{
Expand Down

0 comments on commit f66cdd6

Please sign in to comment.