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

Commit f66cdd6

Browse files
feat: added support for test cases and agent validation (#280)
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
1 parent d6cd078 commit f66cdd6

2 files changed

Lines changed: 16 additions & 10 deletions

File tree

google-cloud-servicedirectory/src/test/java/com/google/cloud/servicedirectory/v1/RegistrationServiceClientTest.java

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1236,7 +1236,8 @@ public void getIamPolicyTest() throws Exception {
12361236

12371237
GetIamPolicyRequest request =
12381238
GetIamPolicyRequest.newBuilder()
1239-
.setResource(NamespaceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]").toString())
1239+
.setResource(
1240+
ServiceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]").toString())
12401241
.setOptions(GetPolicyOptions.newBuilder().build())
12411242
.build();
12421243

@@ -1263,7 +1264,8 @@ public void getIamPolicyExceptionTest() throws Exception {
12631264
try {
12641265
GetIamPolicyRequest request =
12651266
GetIamPolicyRequest.newBuilder()
1266-
.setResource(NamespaceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]").toString())
1267+
.setResource(
1268+
ServiceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]").toString())
12671269
.setOptions(GetPolicyOptions.newBuilder().build())
12681270
.build();
12691271
client.getIamPolicy(request);
@@ -1285,7 +1287,8 @@ public void setIamPolicyTest() throws Exception {
12851287

12861288
SetIamPolicyRequest request =
12871289
SetIamPolicyRequest.newBuilder()
1288-
.setResource(NamespaceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]").toString())
1290+
.setResource(
1291+
ServiceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]").toString())
12891292
.setPolicy(Policy.newBuilder().build())
12901293
.build();
12911294

@@ -1312,7 +1315,8 @@ public void setIamPolicyExceptionTest() throws Exception {
13121315
try {
13131316
SetIamPolicyRequest request =
13141317
SetIamPolicyRequest.newBuilder()
1315-
.setResource(NamespaceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]").toString())
1318+
.setResource(
1319+
ServiceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]").toString())
13161320
.setPolicy(Policy.newBuilder().build())
13171321
.build();
13181322
client.setIamPolicy(request);
@@ -1330,7 +1334,8 @@ public void testIamPermissionsTest() throws Exception {
13301334

13311335
TestIamPermissionsRequest request =
13321336
TestIamPermissionsRequest.newBuilder()
1333-
.setResource(NamespaceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]").toString())
1337+
.setResource(
1338+
ServiceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]").toString())
13341339
.addAllPermissions(new ArrayList<String>())
13351340
.build();
13361341

@@ -1357,7 +1362,8 @@ public void testIamPermissionsExceptionTest() throws Exception {
13571362
try {
13581363
TestIamPermissionsRequest request =
13591364
TestIamPermissionsRequest.newBuilder()
1360-
.setResource(NamespaceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]").toString())
1365+
.setResource(
1366+
ServiceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]").toString())
13611367
.addAllPermissions(new ArrayList<String>())
13621368
.build();
13631369
client.testIamPermissions(request);

synth.metadata

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,16 @@
1111
"git": {
1212
"name": "googleapis",
1313
"remote": "https://github.com/googleapis/googleapis.git",
14-
"sha": "91e206bcfeaf8948ea03fe3cb1b7616108496cd3",
15-
"internalRef": "350949863"
14+
"sha": "f83715b48369c8d43548cc3cd84015e60be94cf2",
15+
"internalRef": "352834280"
1616
}
1717
},
1818
{
1919
"git": {
2020
"name": "googleapis",
2121
"remote": "https://github.com/googleapis/googleapis.git",
22-
"sha": "91e206bcfeaf8948ea03fe3cb1b7616108496cd3",
23-
"internalRef": "350949863"
22+
"sha": "f83715b48369c8d43548cc3cd84015e60be94cf2",
23+
"internalRef": "352834280"
2424
}
2525
},
2626
{

0 commit comments

Comments
 (0)