| Index: generated/googleapis_beta/test/runtimeconfig/v1beta1_test.dart
|
| diff --git a/generated/googleapis_beta/test/runtimeconfig/v1beta1_test.dart b/generated/googleapis_beta/test/runtimeconfig/v1beta1_test.dart
|
| index e301e0c17fc01ef917c8e13f2c0cd19c2d48feed..86c3b5abe64fe245b757be78da1c3d269fa402b8 100644
|
| --- a/generated/googleapis_beta/test/runtimeconfig/v1beta1_test.dart
|
| +++ b/generated/googleapis_beta/test/runtimeconfig/v1beta1_test.dart
|
| @@ -51,14 +51,14 @@ http.StreamedResponse stringResponse(
|
| return new http.StreamedResponse(stream, status, headers: headers);
|
| }
|
|
|
| -buildUnnamed3551() {
|
| +buildUnnamed3534() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed3551(core.List<core.String> o) {
|
| +checkUnnamed3534(core.List<core.String> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| unittest.expect(o[0], unittest.equals('foo'));
|
| unittest.expect(o[1], unittest.equals('foo'));
|
| @@ -69,7 +69,7 @@ buildBinding() {
|
| var o = new api.Binding();
|
| buildCounterBinding++;
|
| if (buildCounterBinding < 3) {
|
| - o.members = buildUnnamed3551();
|
| + o.members = buildUnnamed3534();
|
| o.role = "foo";
|
| }
|
| buildCounterBinding--;
|
| @@ -79,7 +79,7 @@ buildBinding() {
|
| checkBinding(api.Binding o) {
|
| buildCounterBinding++;
|
| if (buildCounterBinding < 3) {
|
| - checkUnnamed3551(o.members);
|
| + checkUnnamed3534(o.members);
|
| unittest.expect(o.role, unittest.equals('foo'));
|
| }
|
| buildCounterBinding--;
|
| @@ -142,14 +142,14 @@ checkEndCondition(api.EndCondition o) {
|
| buildCounterEndCondition--;
|
| }
|
|
|
| -buildUnnamed3552() {
|
| +buildUnnamed3535() {
|
| var o = new core.List<api.RuntimeConfig>();
|
| o.add(buildRuntimeConfig());
|
| o.add(buildRuntimeConfig());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3552(core.List<api.RuntimeConfig> o) {
|
| +checkUnnamed3535(core.List<api.RuntimeConfig> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkRuntimeConfig(o[0]);
|
| checkRuntimeConfig(o[1]);
|
| @@ -160,7 +160,7 @@ buildListConfigsResponse() {
|
| var o = new api.ListConfigsResponse();
|
| buildCounterListConfigsResponse++;
|
| if (buildCounterListConfigsResponse < 3) {
|
| - o.configs = buildUnnamed3552();
|
| + o.configs = buildUnnamed3535();
|
| o.nextPageToken = "foo";
|
| }
|
| buildCounterListConfigsResponse--;
|
| @@ -170,20 +170,20 @@ buildListConfigsResponse() {
|
| checkListConfigsResponse(api.ListConfigsResponse o) {
|
| buildCounterListConfigsResponse++;
|
| if (buildCounterListConfigsResponse < 3) {
|
| - checkUnnamed3552(o.configs);
|
| + checkUnnamed3535(o.configs);
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| }
|
| buildCounterListConfigsResponse--;
|
| }
|
|
|
| -buildUnnamed3553() {
|
| +buildUnnamed3536() {
|
| var o = new core.List<api.Variable>();
|
| o.add(buildVariable());
|
| o.add(buildVariable());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3553(core.List<api.Variable> o) {
|
| +checkUnnamed3536(core.List<api.Variable> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkVariable(o[0]);
|
| checkVariable(o[1]);
|
| @@ -195,7 +195,7 @@ buildListVariablesResponse() {
|
| buildCounterListVariablesResponse++;
|
| if (buildCounterListVariablesResponse < 3) {
|
| o.nextPageToken = "foo";
|
| - o.variables = buildUnnamed3553();
|
| + o.variables = buildUnnamed3536();
|
| }
|
| buildCounterListVariablesResponse--;
|
| return o;
|
| @@ -205,19 +205,19 @@ checkListVariablesResponse(api.ListVariablesResponse o) {
|
| buildCounterListVariablesResponse++;
|
| if (buildCounterListVariablesResponse < 3) {
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| - checkUnnamed3553(o.variables);
|
| + checkUnnamed3536(o.variables);
|
| }
|
| buildCounterListVariablesResponse--;
|
| }
|
|
|
| -buildUnnamed3554() {
|
| +buildUnnamed3537() {
|
| var o = new core.List<api.Waiter>();
|
| o.add(buildWaiter());
|
| o.add(buildWaiter());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3554(core.List<api.Waiter> o) {
|
| +checkUnnamed3537(core.List<api.Waiter> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkWaiter(o[0]);
|
| checkWaiter(o[1]);
|
| @@ -229,7 +229,7 @@ buildListWaitersResponse() {
|
| buildCounterListWaitersResponse++;
|
| if (buildCounterListWaitersResponse < 3) {
|
| o.nextPageToken = "foo";
|
| - o.waiters = buildUnnamed3554();
|
| + o.waiters = buildUnnamed3537();
|
| }
|
| buildCounterListWaitersResponse--;
|
| return o;
|
| @@ -239,32 +239,32 @@ checkListWaitersResponse(api.ListWaitersResponse o) {
|
| buildCounterListWaitersResponse++;
|
| if (buildCounterListWaitersResponse < 3) {
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| - checkUnnamed3554(o.waiters);
|
| + checkUnnamed3537(o.waiters);
|
| }
|
| buildCounterListWaitersResponse--;
|
| }
|
|
|
| -buildUnnamed3555() {
|
| +buildUnnamed3538() {
|
| var o = new core.Map<core.String, core.Object>();
|
| o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
|
| o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
|
| return o;
|
| }
|
|
|
| -checkUnnamed3555(core.Map<core.String, core.Object> o) {
|
| +checkUnnamed3538(core.Map<core.String, core.Object> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| var casted1 = (o["x"]) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.expect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], unittest.equals('foo'));
|
| var casted2 = (o["y"]) as core.Map; unittest.expect(casted2, unittest.hasLength(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], unittest.equals('foo'));
|
| }
|
|
|
| -buildUnnamed3556() {
|
| +buildUnnamed3539() {
|
| var o = new core.Map<core.String, core.Object>();
|
| o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
|
| o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
|
| return o;
|
| }
|
|
|
| -checkUnnamed3556(core.Map<core.String, core.Object> o) {
|
| +checkUnnamed3539(core.Map<core.String, core.Object> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| var casted3 = (o["x"]) as core.Map; unittest.expect(casted3, unittest.hasLength(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unittest.expect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"], unittest.equals('foo'));
|
| var casted4 = (o["y"]) as core.Map; unittest.expect(casted4, unittest.hasLength(3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.expect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"], unittest.equals('foo'));
|
| @@ -277,9 +277,9 @@ buildOperation() {
|
| if (buildCounterOperation < 3) {
|
| o.done = true;
|
| o.error = buildStatus();
|
| - o.metadata = buildUnnamed3555();
|
| + o.metadata = buildUnnamed3538();
|
| o.name = "foo";
|
| - o.response = buildUnnamed3556();
|
| + o.response = buildUnnamed3539();
|
| }
|
| buildCounterOperation--;
|
| return o;
|
| @@ -290,21 +290,21 @@ checkOperation(api.Operation o) {
|
| if (buildCounterOperation < 3) {
|
| unittest.expect(o.done, unittest.isTrue);
|
| checkStatus(o.error);
|
| - checkUnnamed3555(o.metadata);
|
| + checkUnnamed3538(o.metadata);
|
| unittest.expect(o.name, unittest.equals('foo'));
|
| - checkUnnamed3556(o.response);
|
| + checkUnnamed3539(o.response);
|
| }
|
| buildCounterOperation--;
|
| }
|
|
|
| -buildUnnamed3557() {
|
| +buildUnnamed3540() {
|
| var o = new core.List<api.Binding>();
|
| o.add(buildBinding());
|
| o.add(buildBinding());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3557(core.List<api.Binding> o) {
|
| +checkUnnamed3540(core.List<api.Binding> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkBinding(o[0]);
|
| checkBinding(o[1]);
|
| @@ -315,7 +315,7 @@ buildPolicy() {
|
| var o = new api.Policy();
|
| buildCounterPolicy++;
|
| if (buildCounterPolicy < 3) {
|
| - o.bindings = buildUnnamed3557();
|
| + o.bindings = buildUnnamed3540();
|
| o.etag = "foo";
|
| o.version = 42;
|
| }
|
| @@ -326,7 +326,7 @@ buildPolicy() {
|
| checkPolicy(api.Policy o) {
|
| buildCounterPolicy++;
|
| if (buildCounterPolicy < 3) {
|
| - checkUnnamed3557(o.bindings);
|
| + checkUnnamed3540(o.bindings);
|
| unittest.expect(o.etag, unittest.equals('foo'));
|
| unittest.expect(o.version, unittest.equals(42));
|
| }
|
| @@ -373,30 +373,30 @@ checkSetIamPolicyRequest(api.SetIamPolicyRequest o) {
|
| buildCounterSetIamPolicyRequest--;
|
| }
|
|
|
| -buildUnnamed3558() {
|
| +buildUnnamed3541() {
|
| var o = new core.Map<core.String, core.Object>();
|
| o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
|
| o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
|
| return o;
|
| }
|
|
|
| -checkUnnamed3558(core.Map<core.String, core.Object> o) {
|
| +checkUnnamed3541(core.Map<core.String, core.Object> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| var casted5 = (o["x"]) as core.Map; unittest.expect(casted5, unittest.hasLength(3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest.expect(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["string"], unittest.equals('foo'));
|
| var casted6 = (o["y"]) as core.Map; unittest.expect(casted6, unittest.hasLength(3)); unittest.expect(casted6["list"], unittest.equals([1, 2, 3])); unittest.expect(casted6["bool"], unittest.equals(true)); unittest.expect(casted6["string"], unittest.equals('foo'));
|
| }
|
|
|
| -buildUnnamed3559() {
|
| +buildUnnamed3542() {
|
| var o = new core.List<core.Map<core.String, core.Object>>();
|
| - o.add(buildUnnamed3558());
|
| - o.add(buildUnnamed3558());
|
| + o.add(buildUnnamed3541());
|
| + o.add(buildUnnamed3541());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3559(core.List<core.Map<core.String, core.Object>> o) {
|
| +checkUnnamed3542(core.List<core.Map<core.String, core.Object>> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| - checkUnnamed3558(o[0]);
|
| - checkUnnamed3558(o[1]);
|
| + checkUnnamed3541(o[0]);
|
| + checkUnnamed3541(o[1]);
|
| }
|
|
|
| core.int buildCounterStatus = 0;
|
| @@ -405,7 +405,7 @@ buildStatus() {
|
| buildCounterStatus++;
|
| if (buildCounterStatus < 3) {
|
| o.code = 42;
|
| - o.details = buildUnnamed3559();
|
| + o.details = buildUnnamed3542();
|
| o.message = "foo";
|
| }
|
| buildCounterStatus--;
|
| @@ -416,20 +416,20 @@ checkStatus(api.Status o) {
|
| buildCounterStatus++;
|
| if (buildCounterStatus < 3) {
|
| unittest.expect(o.code, unittest.equals(42));
|
| - checkUnnamed3559(o.details);
|
| + checkUnnamed3542(o.details);
|
| unittest.expect(o.message, unittest.equals('foo'));
|
| }
|
| buildCounterStatus--;
|
| }
|
|
|
| -buildUnnamed3560() {
|
| +buildUnnamed3543() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed3560(core.List<core.String> o) {
|
| +checkUnnamed3543(core.List<core.String> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| unittest.expect(o[0], unittest.equals('foo'));
|
| unittest.expect(o[1], unittest.equals('foo'));
|
| @@ -440,7 +440,7 @@ buildTestIamPermissionsRequest() {
|
| var o = new api.TestIamPermissionsRequest();
|
| buildCounterTestIamPermissionsRequest++;
|
| if (buildCounterTestIamPermissionsRequest < 3) {
|
| - o.permissions = buildUnnamed3560();
|
| + o.permissions = buildUnnamed3543();
|
| }
|
| buildCounterTestIamPermissionsRequest--;
|
| return o;
|
| @@ -449,19 +449,19 @@ buildTestIamPermissionsRequest() {
|
| checkTestIamPermissionsRequest(api.TestIamPermissionsRequest o) {
|
| buildCounterTestIamPermissionsRequest++;
|
| if (buildCounterTestIamPermissionsRequest < 3) {
|
| - checkUnnamed3560(o.permissions);
|
| + checkUnnamed3543(o.permissions);
|
| }
|
| buildCounterTestIamPermissionsRequest--;
|
| }
|
|
|
| -buildUnnamed3561() {
|
| +buildUnnamed3544() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed3561(core.List<core.String> o) {
|
| +checkUnnamed3544(core.List<core.String> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| unittest.expect(o[0], unittest.equals('foo'));
|
| unittest.expect(o[1], unittest.equals('foo'));
|
| @@ -472,7 +472,7 @@ buildTestIamPermissionsResponse() {
|
| var o = new api.TestIamPermissionsResponse();
|
| buildCounterTestIamPermissionsResponse++;
|
| if (buildCounterTestIamPermissionsResponse < 3) {
|
| - o.permissions = buildUnnamed3561();
|
| + o.permissions = buildUnnamed3544();
|
| }
|
| buildCounterTestIamPermissionsResponse--;
|
| return o;
|
| @@ -481,7 +481,7 @@ buildTestIamPermissionsResponse() {
|
| checkTestIamPermissionsResponse(api.TestIamPermissionsResponse o) {
|
| buildCounterTestIamPermissionsResponse++;
|
| if (buildCounterTestIamPermissionsResponse < 3) {
|
| - checkUnnamed3561(o.permissions);
|
| + checkUnnamed3544(o.permissions);
|
| }
|
| buildCounterTestIamPermissionsResponse--;
|
| }
|
| @@ -563,45 +563,6 @@ checkWatchVariableRequest(api.WatchVariableRequest o) {
|
| buildCounterWatchVariableRequest--;
|
| }
|
|
|
| -buildUnnamed3562() {
|
| - var o = new core.List<core.String>();
|
| - o.add("foo");
|
| - o.add("foo");
|
| - return o;
|
| -}
|
| -
|
| -checkUnnamed3562(core.List<core.String> o) {
|
| - unittest.expect(o, unittest.hasLength(2));
|
| - unittest.expect(o[0], unittest.equals('foo'));
|
| - unittest.expect(o[1], unittest.equals('foo'));
|
| -}
|
| -
|
| -buildUnnamed3563() {
|
| - var o = new core.List<core.String>();
|
| - o.add("foo");
|
| - o.add("foo");
|
| - return o;
|
| -}
|
| -
|
| -checkUnnamed3563(core.List<core.String> o) {
|
| - unittest.expect(o, unittest.hasLength(2));
|
| - unittest.expect(o[0], unittest.equals('foo'));
|
| - unittest.expect(o[1], unittest.equals('foo'));
|
| -}
|
| -
|
| -buildUnnamed3564() {
|
| - var o = new core.List<core.String>();
|
| - o.add("foo");
|
| - o.add("foo");
|
| - return o;
|
| -}
|
| -
|
| -checkUnnamed3564(core.List<core.String> o) {
|
| - unittest.expect(o, unittest.hasLength(2));
|
| - unittest.expect(o[0], unittest.equals('foo'));
|
| - unittest.expect(o[1], unittest.equals('foo'));
|
| -}
|
| -
|
|
|
| main() {
|
| unittest.group("obj-schema-Binding", () {
|
| @@ -1193,9 +1154,12 @@ main() {
|
|
|
| var mock = new HttpServerMock();
|
| api.ProjectsConfigsOperationsResourceApi res = new api.RuntimeconfigApi(mock).projects.configs.operations;
|
| + var arg_request = buildTestIamPermissionsRequest();
|
| var arg_resource = "foo";
|
| - var arg_permissions = buildUnnamed3562();
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| + var obj = new api.TestIamPermissionsRequest.fromJson(json);
|
| + checkTestIamPermissionsRequest(obj);
|
| +
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| var index;
|
| @@ -1222,7 +1186,6 @@ main() {
|
| addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
| - unittest.expect(queryMap["permissions"], unittest.equals(arg_permissions));
|
|
|
|
|
| var h = {
|
| @@ -1231,7 +1194,7 @@ main() {
|
| var resp = convert.JSON.encode(buildTestIamPermissionsResponse());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.testIamPermissions(arg_resource, permissions: arg_permissions).then(unittest.expectAsync(((api.TestIamPermissionsResponse response) {
|
| + res.testIamPermissions(arg_request, arg_resource).then(unittest.expectAsync(((api.TestIamPermissionsResponse response) {
|
| checkTestIamPermissionsResponse(response);
|
| })));
|
| });
|
| @@ -1388,10 +1351,10 @@ main() {
|
| var mock = new HttpServerMock();
|
| api.ProjectsConfigsVariablesResourceApi res = new api.RuntimeconfigApi(mock).projects.configs.variables;
|
| var arg_parent = "foo";
|
| - var arg_filter = "foo";
|
| var arg_pageToken = "foo";
|
| var arg_returnValues = true;
|
| var arg_pageSize = 42;
|
| + var arg_filter = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| @@ -1419,10 +1382,10 @@ main() {
|
| addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
| - unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter));
|
| unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken));
|
| unittest.expect(queryMap["returnValues"].first, unittest.equals("$arg_returnValues"));
|
| unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize));
|
| + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter));
|
|
|
|
|
| var h = {
|
| @@ -1431,7 +1394,7 @@ main() {
|
| var resp = convert.JSON.encode(buildListVariablesResponse());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.list(arg_parent, filter: arg_filter, pageToken: arg_pageToken, returnValues: arg_returnValues, pageSize: arg_pageSize).then(unittest.expectAsync(((api.ListVariablesResponse response) {
|
| + res.list(arg_parent, pageToken: arg_pageToken, returnValues: arg_returnValues, pageSize: arg_pageSize, filter: arg_filter).then(unittest.expectAsync(((api.ListVariablesResponse response) {
|
| checkListVariablesResponse(response);
|
| })));
|
| });
|
| @@ -1440,9 +1403,12 @@ main() {
|
|
|
| var mock = new HttpServerMock();
|
| api.ProjectsConfigsVariablesResourceApi res = new api.RuntimeconfigApi(mock).projects.configs.variables;
|
| + var arg_request = buildTestIamPermissionsRequest();
|
| var arg_resource = "foo";
|
| - var arg_permissions = buildUnnamed3563();
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| + var obj = new api.TestIamPermissionsRequest.fromJson(json);
|
| + checkTestIamPermissionsRequest(obj);
|
| +
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| var index;
|
| @@ -1469,7 +1435,6 @@ main() {
|
| addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
| - unittest.expect(queryMap["permissions"], unittest.equals(arg_permissions));
|
|
|
|
|
| var h = {
|
| @@ -1478,7 +1443,7 @@ main() {
|
| var resp = convert.JSON.encode(buildTestIamPermissionsResponse());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.testIamPermissions(arg_resource, permissions: arg_permissions).then(unittest.expectAsync(((api.TestIamPermissionsResponse response) {
|
| + res.testIamPermissions(arg_request, arg_resource).then(unittest.expectAsync(((api.TestIamPermissionsResponse response) {
|
| checkTestIamPermissionsResponse(response);
|
| })));
|
| });
|
| @@ -1731,8 +1696,8 @@ main() {
|
| var mock = new HttpServerMock();
|
| api.ProjectsConfigsWaitersResourceApi res = new api.RuntimeconfigApi(mock).projects.configs.waiters;
|
| var arg_parent = "foo";
|
| - var arg_pageSize = 42;
|
| var arg_pageToken = "foo";
|
| + var arg_pageSize = 42;
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| @@ -1760,8 +1725,8 @@ main() {
|
| addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
| - unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize));
|
| unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken));
|
| + unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize));
|
|
|
|
|
| var h = {
|
| @@ -1770,7 +1735,7 @@ main() {
|
| var resp = convert.JSON.encode(buildListWaitersResponse());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.list(arg_parent, pageSize: arg_pageSize, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ListWaitersResponse response) {
|
| + res.list(arg_parent, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync(((api.ListWaitersResponse response) {
|
| checkListWaitersResponse(response);
|
| })));
|
| });
|
| @@ -1779,9 +1744,12 @@ main() {
|
|
|
| var mock = new HttpServerMock();
|
| api.ProjectsConfigsWaitersResourceApi res = new api.RuntimeconfigApi(mock).projects.configs.waiters;
|
| + var arg_request = buildTestIamPermissionsRequest();
|
| var arg_resource = "foo";
|
| - var arg_permissions = buildUnnamed3564();
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| + var obj = new api.TestIamPermissionsRequest.fromJson(json);
|
| + checkTestIamPermissionsRequest(obj);
|
| +
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| var index;
|
| @@ -1808,7 +1776,6 @@ main() {
|
| addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
| - unittest.expect(queryMap["permissions"], unittest.equals(arg_permissions));
|
|
|
|
|
| var h = {
|
| @@ -1817,7 +1784,7 @@ main() {
|
| var resp = convert.JSON.encode(buildTestIamPermissionsResponse());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.testIamPermissions(arg_resource, permissions: arg_permissions).then(unittest.expectAsync(((api.TestIamPermissionsResponse response) {
|
| + res.testIamPermissions(arg_request, arg_resource).then(unittest.expectAsync(((api.TestIamPermissionsResponse response) {
|
| checkTestIamPermissionsResponse(response);
|
| })));
|
| });
|
|
|