| Index: generated/googleapis_beta/test/appengine/v1beta4_test.dart
|
| diff --git a/generated/googleapis_beta/test/appengine/v1beta4_test.dart b/generated/googleapis_beta/test/appengine/v1beta4_test.dart
|
| index c2a5c43aaec316a60bc203c6fa7636374d3a5187..fb42d209f57b18ac8ba087e29144fe710d9f1a8f 100644
|
| --- a/generated/googleapis_beta/test/appengine/v1beta4_test.dart
|
| +++ b/generated/googleapis_beta/test/appengine/v1beta4_test.dart
|
| @@ -7,7 +7,7 @@ import "dart:convert" as convert;
|
|
|
| import 'package:http/http.dart' as http;
|
| import 'package:http/testing.dart' as http_testing;
|
| -import 'package:unittest/unittest.dart' as unittest;
|
| +import 'package:test/test.dart' as unittest;
|
|
|
| import 'package:googleapis_beta/appengine/v1beta4.dart' as api;
|
|
|
| @@ -46,7 +46,7 @@ class HttpServerMock extends http.BaseClient {
|
| }
|
|
|
| http.StreamedResponse stringResponse(
|
| - core.int status, core.Map headers, core.String body) {
|
| + core.int status, core.Map<core.String, core.String> headers, core.String body) {
|
| var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]);
|
| return new http.StreamedResponse(stream, status, headers: headers);
|
| }
|
| @@ -97,14 +97,14 @@ checkApiEndpointHandler(api.ApiEndpointHandler o) {
|
| buildCounterApiEndpointHandler--;
|
| }
|
|
|
| -buildUnnamed3893() {
|
| +buildUnnamed3368() {
|
| var o = new core.List<api.UrlDispatchRule>();
|
| o.add(buildUrlDispatchRule());
|
| o.add(buildUrlDispatchRule());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3893(core.List<api.UrlDispatchRule> o) {
|
| +checkUnnamed3368(core.List<api.UrlDispatchRule> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkUrlDispatchRule(o[0]);
|
| checkUrlDispatchRule(o[1]);
|
| @@ -120,7 +120,7 @@ buildApplication() {
|
| o.defaultBucket = "foo";
|
| o.defaultCookieExpiration = "foo";
|
| o.defaultHostname = "foo";
|
| - o.dispatchRules = buildUnnamed3893();
|
| + o.dispatchRules = buildUnnamed3368();
|
| o.iap = buildIdentityAwareProxy();
|
| o.id = "foo";
|
| o.location = "foo";
|
| @@ -138,7 +138,7 @@ checkApplication(api.Application o) {
|
| unittest.expect(o.defaultBucket, unittest.equals('foo'));
|
| unittest.expect(o.defaultCookieExpiration, unittest.equals('foo'));
|
| unittest.expect(o.defaultHostname, unittest.equals('foo'));
|
| - checkUnnamed3893(o.dispatchRules);
|
| + checkUnnamed3368(o.dispatchRules);
|
| checkIdentityAwareProxy(o.iap);
|
| unittest.expect(o.id, unittest.equals('foo'));
|
| unittest.expect(o.location, unittest.equals('foo'));
|
| @@ -268,27 +268,27 @@ checkDebugInstanceRequest(api.DebugInstanceRequest o) {
|
| buildCounterDebugInstanceRequest--;
|
| }
|
|
|
| -buildUnnamed3894() {
|
| +buildUnnamed3369() {
|
| var o = new core.Map<core.String, api.FileInfo>();
|
| o["x"] = buildFileInfo();
|
| o["y"] = buildFileInfo();
|
| return o;
|
| }
|
|
|
| -checkUnnamed3894(core.Map<core.String, api.FileInfo> o) {
|
| +checkUnnamed3369(core.Map<core.String, api.FileInfo> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkFileInfo(o["x"]);
|
| checkFileInfo(o["y"]);
|
| }
|
|
|
| -buildUnnamed3895() {
|
| +buildUnnamed3370() {
|
| var o = new core.List<api.SourceReference>();
|
| o.add(buildSourceReference());
|
| o.add(buildSourceReference());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3895(core.List<api.SourceReference> o) {
|
| +checkUnnamed3370(core.List<api.SourceReference> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkSourceReference(o[0]);
|
| checkSourceReference(o[1]);
|
| @@ -300,8 +300,8 @@ buildDeployment() {
|
| buildCounterDeployment++;
|
| if (buildCounterDeployment < 3) {
|
| o.container = buildContainerInfo();
|
| - o.files = buildUnnamed3894();
|
| - o.sourceReferences = buildUnnamed3895();
|
| + o.files = buildUnnamed3369();
|
| + o.sourceReferences = buildUnnamed3370();
|
| }
|
| buildCounterDeployment--;
|
| return o;
|
| @@ -311,8 +311,8 @@ checkDeployment(api.Deployment o) {
|
| buildCounterDeployment++;
|
| if (buildCounterDeployment < 3) {
|
| checkContainerInfo(o.container);
|
| - checkUnnamed3894(o.files);
|
| - checkUnnamed3895(o.sourceReferences);
|
| + checkUnnamed3369(o.files);
|
| + checkUnnamed3370(o.sourceReferences);
|
| }
|
| buildCounterDeployment--;
|
| }
|
| @@ -514,14 +514,14 @@ checkLibrary(api.Library o) {
|
| buildCounterLibrary--;
|
| }
|
|
|
| -buildUnnamed3896() {
|
| +buildUnnamed3371() {
|
| var o = new core.List<api.Instance>();
|
| o.add(buildInstance());
|
| o.add(buildInstance());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3896(core.List<api.Instance> o) {
|
| +checkUnnamed3371(core.List<api.Instance> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkInstance(o[0]);
|
| checkInstance(o[1]);
|
| @@ -532,7 +532,7 @@ buildListInstancesResponse() {
|
| var o = new api.ListInstancesResponse();
|
| buildCounterListInstancesResponse++;
|
| if (buildCounterListInstancesResponse < 3) {
|
| - o.instances = buildUnnamed3896();
|
| + o.instances = buildUnnamed3371();
|
| o.nextPageToken = "foo";
|
| }
|
| buildCounterListInstancesResponse--;
|
| @@ -542,20 +542,20 @@ buildListInstancesResponse() {
|
| checkListInstancesResponse(api.ListInstancesResponse o) {
|
| buildCounterListInstancesResponse++;
|
| if (buildCounterListInstancesResponse < 3) {
|
| - checkUnnamed3896(o.instances);
|
| + checkUnnamed3371(o.instances);
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| }
|
| buildCounterListInstancesResponse--;
|
| }
|
|
|
| -buildUnnamed3897() {
|
| +buildUnnamed3372() {
|
| var o = new core.List<api.Location>();
|
| o.add(buildLocation());
|
| o.add(buildLocation());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3897(core.List<api.Location> o) {
|
| +checkUnnamed3372(core.List<api.Location> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkLocation(o[0]);
|
| checkLocation(o[1]);
|
| @@ -566,7 +566,7 @@ buildListLocationsResponse() {
|
| var o = new api.ListLocationsResponse();
|
| buildCounterListLocationsResponse++;
|
| if (buildCounterListLocationsResponse < 3) {
|
| - o.locations = buildUnnamed3897();
|
| + o.locations = buildUnnamed3372();
|
| o.nextPageToken = "foo";
|
| }
|
| buildCounterListLocationsResponse--;
|
| @@ -576,20 +576,20 @@ buildListLocationsResponse() {
|
| checkListLocationsResponse(api.ListLocationsResponse o) {
|
| buildCounterListLocationsResponse++;
|
| if (buildCounterListLocationsResponse < 3) {
|
| - checkUnnamed3897(o.locations);
|
| + checkUnnamed3372(o.locations);
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| }
|
| buildCounterListLocationsResponse--;
|
| }
|
|
|
| -buildUnnamed3898() {
|
| +buildUnnamed3373() {
|
| var o = new core.List<api.Module>();
|
| o.add(buildModule());
|
| o.add(buildModule());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3898(core.List<api.Module> o) {
|
| +checkUnnamed3373(core.List<api.Module> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkModule(o[0]);
|
| checkModule(o[1]);
|
| @@ -600,7 +600,7 @@ buildListModulesResponse() {
|
| var o = new api.ListModulesResponse();
|
| buildCounterListModulesResponse++;
|
| if (buildCounterListModulesResponse < 3) {
|
| - o.modules = buildUnnamed3898();
|
| + o.modules = buildUnnamed3373();
|
| o.nextPageToken = "foo";
|
| }
|
| buildCounterListModulesResponse--;
|
| @@ -610,20 +610,20 @@ buildListModulesResponse() {
|
| checkListModulesResponse(api.ListModulesResponse o) {
|
| buildCounterListModulesResponse++;
|
| if (buildCounterListModulesResponse < 3) {
|
| - checkUnnamed3898(o.modules);
|
| + checkUnnamed3373(o.modules);
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| }
|
| buildCounterListModulesResponse--;
|
| }
|
|
|
| -buildUnnamed3899() {
|
| +buildUnnamed3374() {
|
| var o = new core.List<api.Operation>();
|
| o.add(buildOperation());
|
| o.add(buildOperation());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3899(core.List<api.Operation> o) {
|
| +checkUnnamed3374(core.List<api.Operation> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkOperation(o[0]);
|
| checkOperation(o[1]);
|
| @@ -635,7 +635,7 @@ buildListOperationsResponse() {
|
| buildCounterListOperationsResponse++;
|
| if (buildCounterListOperationsResponse < 3) {
|
| o.nextPageToken = "foo";
|
| - o.operations = buildUnnamed3899();
|
| + o.operations = buildUnnamed3374();
|
| }
|
| buildCounterListOperationsResponse--;
|
| return o;
|
| @@ -645,19 +645,19 @@ checkListOperationsResponse(api.ListOperationsResponse o) {
|
| buildCounterListOperationsResponse++;
|
| if (buildCounterListOperationsResponse < 3) {
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| - checkUnnamed3899(o.operations);
|
| + checkUnnamed3374(o.operations);
|
| }
|
| buildCounterListOperationsResponse--;
|
| }
|
|
|
| -buildUnnamed3900() {
|
| +buildUnnamed3375() {
|
| var o = new core.List<api.Version>();
|
| o.add(buildVersion());
|
| o.add(buildVersion());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3900(core.List<api.Version> o) {
|
| +checkUnnamed3375(core.List<api.Version> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkVersion(o[0]);
|
| checkVersion(o[1]);
|
| @@ -669,7 +669,7 @@ buildListVersionsResponse() {
|
| buildCounterListVersionsResponse++;
|
| if (buildCounterListVersionsResponse < 3) {
|
| o.nextPageToken = "foo";
|
| - o.versions = buildUnnamed3900();
|
| + o.versions = buildUnnamed3375();
|
| }
|
| buildCounterListVersionsResponse--;
|
| return o;
|
| @@ -679,32 +679,32 @@ checkListVersionsResponse(api.ListVersionsResponse o) {
|
| buildCounterListVersionsResponse++;
|
| if (buildCounterListVersionsResponse < 3) {
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| - checkUnnamed3900(o.versions);
|
| + checkUnnamed3375(o.versions);
|
| }
|
| buildCounterListVersionsResponse--;
|
| }
|
|
|
| -buildUnnamed3901() {
|
| +buildUnnamed3376() {
|
| var o = new core.Map<core.String, core.String>();
|
| o["x"] = "foo";
|
| o["y"] = "foo";
|
| return o;
|
| }
|
|
|
| -checkUnnamed3901(core.Map<core.String, core.String> o) {
|
| +checkUnnamed3376(core.Map<core.String, core.String> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| unittest.expect(o["x"], unittest.equals('foo'));
|
| unittest.expect(o["y"], unittest.equals('foo'));
|
| }
|
|
|
| -buildUnnamed3902() {
|
| +buildUnnamed3377() {
|
| 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;
|
| }
|
|
|
| -checkUnnamed3902(core.Map<core.String, core.Object> o) {
|
| +checkUnnamed3377(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'));
|
| @@ -715,9 +715,9 @@ buildLocation() {
|
| var o = new api.Location();
|
| buildCounterLocation++;
|
| if (buildCounterLocation < 3) {
|
| - o.labels = buildUnnamed3901();
|
| + o.labels = buildUnnamed3376();
|
| o.locationId = "foo";
|
| - o.metadata = buildUnnamed3902();
|
| + o.metadata = buildUnnamed3377();
|
| o.name = "foo";
|
| }
|
| buildCounterLocation--;
|
| @@ -727,9 +727,9 @@ buildLocation() {
|
| checkLocation(api.Location o) {
|
| buildCounterLocation++;
|
| if (buildCounterLocation < 3) {
|
| - checkUnnamed3901(o.labels);
|
| + checkUnnamed3376(o.labels);
|
| unittest.expect(o.locationId, unittest.equals('foo'));
|
| - checkUnnamed3902(o.metadata);
|
| + checkUnnamed3377(o.metadata);
|
| unittest.expect(o.name, unittest.equals('foo'));
|
| }
|
| buildCounterLocation--;
|
| @@ -798,14 +798,14 @@ checkModule(api.Module o) {
|
| buildCounterModule--;
|
| }
|
|
|
| -buildUnnamed3903() {
|
| +buildUnnamed3378() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed3903(core.List<core.String> o) {
|
| +checkUnnamed3378(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'));
|
| @@ -816,7 +816,7 @@ buildNetwork() {
|
| var o = new api.Network();
|
| buildCounterNetwork++;
|
| if (buildCounterNetwork < 3) {
|
| - o.forwardedPorts = buildUnnamed3903();
|
| + o.forwardedPorts = buildUnnamed3378();
|
| o.instanceTag = "foo";
|
| o.name = "foo";
|
| }
|
| @@ -827,7 +827,7 @@ buildNetwork() {
|
| checkNetwork(api.Network o) {
|
| buildCounterNetwork++;
|
| if (buildCounterNetwork < 3) {
|
| - checkUnnamed3903(o.forwardedPorts);
|
| + checkUnnamed3378(o.forwardedPorts);
|
| unittest.expect(o.instanceTag, unittest.equals('foo'));
|
| unittest.expect(o.name, unittest.equals('foo'));
|
| }
|
| @@ -859,27 +859,27 @@ checkNetworkUtilization(api.NetworkUtilization o) {
|
| buildCounterNetworkUtilization--;
|
| }
|
|
|
| -buildUnnamed3904() {
|
| +buildUnnamed3379() {
|
| 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;
|
| }
|
|
|
| -checkUnnamed3904(core.Map<core.String, core.Object> o) {
|
| +checkUnnamed3379(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'));
|
| }
|
|
|
| -buildUnnamed3905() {
|
| +buildUnnamed3380() {
|
| 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;
|
| }
|
|
|
| -checkUnnamed3905(core.Map<core.String, core.Object> o) {
|
| +checkUnnamed3380(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'));
|
| @@ -892,9 +892,9 @@ buildOperation() {
|
| if (buildCounterOperation < 3) {
|
| o.done = true;
|
| o.error = buildStatus();
|
| - o.metadata = buildUnnamed3904();
|
| + o.metadata = buildUnnamed3379();
|
| o.name = "foo";
|
| - o.response = buildUnnamed3905();
|
| + o.response = buildUnnamed3380();
|
| }
|
| buildCounterOperation--;
|
| return o;
|
| @@ -905,9 +905,9 @@ checkOperation(api.Operation o) {
|
| if (buildCounterOperation < 3) {
|
| unittest.expect(o.done, unittest.isTrue);
|
| checkStatus(o.error);
|
| - checkUnnamed3904(o.metadata);
|
| + checkUnnamed3379(o.metadata);
|
| unittest.expect(o.name, unittest.equals('foo'));
|
| - checkUnnamed3905(o.response);
|
| + checkUnnamed3380(o.response);
|
| }
|
| buildCounterOperation--;
|
| }
|
| @@ -968,14 +968,14 @@ checkOperationMetadataExperimental(api.OperationMetadataExperimental o) {
|
| buildCounterOperationMetadataExperimental--;
|
| }
|
|
|
| -buildUnnamed3906() {
|
| +buildUnnamed3381() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed3906(core.List<core.String> o) {
|
| +checkUnnamed3381(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'));
|
| @@ -992,7 +992,7 @@ buildOperationMetadataV1() {
|
| o.method = "foo";
|
| o.target = "foo";
|
| o.user = "foo";
|
| - o.warning = buildUnnamed3906();
|
| + o.warning = buildUnnamed3381();
|
| }
|
| buildCounterOperationMetadataV1--;
|
| return o;
|
| @@ -1007,19 +1007,63 @@ checkOperationMetadataV1(api.OperationMetadataV1 o) {
|
| unittest.expect(o.method, unittest.equals('foo'));
|
| unittest.expect(o.target, unittest.equals('foo'));
|
| unittest.expect(o.user, unittest.equals('foo'));
|
| - checkUnnamed3906(o.warning);
|
| + checkUnnamed3381(o.warning);
|
| }
|
| buildCounterOperationMetadataV1--;
|
| }
|
|
|
| -buildUnnamed3907() {
|
| +buildUnnamed3382() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed3907(core.List<core.String> o) {
|
| +checkUnnamed3382(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'));
|
| +}
|
| +
|
| +core.int buildCounterOperationMetadataV1Alpha = 0;
|
| +buildOperationMetadataV1Alpha() {
|
| + var o = new api.OperationMetadataV1Alpha();
|
| + buildCounterOperationMetadataV1Alpha++;
|
| + if (buildCounterOperationMetadataV1Alpha < 3) {
|
| + o.endTime = "foo";
|
| + o.ephemeralMessage = "foo";
|
| + o.insertTime = "foo";
|
| + o.method = "foo";
|
| + o.target = "foo";
|
| + o.user = "foo";
|
| + o.warning = buildUnnamed3382();
|
| + }
|
| + buildCounterOperationMetadataV1Alpha--;
|
| + return o;
|
| +}
|
| +
|
| +checkOperationMetadataV1Alpha(api.OperationMetadataV1Alpha o) {
|
| + buildCounterOperationMetadataV1Alpha++;
|
| + if (buildCounterOperationMetadataV1Alpha < 3) {
|
| + unittest.expect(o.endTime, unittest.equals('foo'));
|
| + unittest.expect(o.ephemeralMessage, unittest.equals('foo'));
|
| + unittest.expect(o.insertTime, unittest.equals('foo'));
|
| + unittest.expect(o.method, unittest.equals('foo'));
|
| + unittest.expect(o.target, unittest.equals('foo'));
|
| + unittest.expect(o.user, unittest.equals('foo'));
|
| + checkUnnamed3382(o.warning);
|
| + }
|
| + buildCounterOperationMetadataV1Alpha--;
|
| +}
|
| +
|
| +buildUnnamed3383() {
|
| + var o = new core.List<core.String>();
|
| + o.add("foo");
|
| + o.add("foo");
|
| + return o;
|
| +}
|
| +
|
| +checkUnnamed3383(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'));
|
| @@ -1036,7 +1080,7 @@ buildOperationMetadataV1Beta() {
|
| o.method = "foo";
|
| o.target = "foo";
|
| o.user = "foo";
|
| - o.warning = buildUnnamed3907();
|
| + o.warning = buildUnnamed3383();
|
| }
|
| buildCounterOperationMetadataV1Beta--;
|
| return o;
|
| @@ -1051,7 +1095,7 @@ checkOperationMetadataV1Beta(api.OperationMetadataV1Beta o) {
|
| unittest.expect(o.method, unittest.equals('foo'));
|
| unittest.expect(o.target, unittest.equals('foo'));
|
| unittest.expect(o.user, unittest.equals('foo'));
|
| - checkUnnamed3907(o.warning);
|
| + checkUnnamed3383(o.warning);
|
| }
|
| buildCounterOperationMetadataV1Beta--;
|
| }
|
| @@ -1104,14 +1148,14 @@ checkRequestUtilization(api.RequestUtilization o) {
|
| buildCounterRequestUtilization--;
|
| }
|
|
|
| -buildUnnamed3908() {
|
| +buildUnnamed3384() {
|
| var o = new core.List<api.Volume>();
|
| o.add(buildVolume());
|
| o.add(buildVolume());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3908(core.List<api.Volume> o) {
|
| +checkUnnamed3384(core.List<api.Volume> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkVolume(o[0]);
|
| checkVolume(o[1]);
|
| @@ -1125,7 +1169,7 @@ buildResources() {
|
| o.cpu = 42.0;
|
| o.diskGb = 42.0;
|
| o.memoryGb = 42.0;
|
| - o.volumes = buildUnnamed3908();
|
| + o.volumes = buildUnnamed3384();
|
| }
|
| buildCounterResources--;
|
| return o;
|
| @@ -1137,7 +1181,7 @@ checkResources(api.Resources o) {
|
| unittest.expect(o.cpu, unittest.equals(42.0));
|
| unittest.expect(o.diskGb, unittest.equals(42.0));
|
| unittest.expect(o.memoryGb, unittest.equals(42.0));
|
| - checkUnnamed3908(o.volumes);
|
| + checkUnnamed3384(o.volumes);
|
| }
|
| buildCounterResources--;
|
| }
|
| @@ -1182,14 +1226,14 @@ checkSourceReference(api.SourceReference o) {
|
| buildCounterSourceReference--;
|
| }
|
|
|
| -buildUnnamed3909() {
|
| +buildUnnamed3385() {
|
| var o = new core.Map<core.String, core.String>();
|
| o["x"] = "foo";
|
| o["y"] = "foo";
|
| return o;
|
| }
|
|
|
| -checkUnnamed3909(core.Map<core.String, core.String> o) {
|
| +checkUnnamed3385(core.Map<core.String, core.String> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| unittest.expect(o["x"], unittest.equals('foo'));
|
| unittest.expect(o["y"], unittest.equals('foo'));
|
| @@ -1203,7 +1247,7 @@ buildStaticDirectoryHandler() {
|
| o.applicationReadable = true;
|
| o.directory = "foo";
|
| o.expiration = "foo";
|
| - o.httpHeaders = buildUnnamed3909();
|
| + o.httpHeaders = buildUnnamed3385();
|
| o.mimeType = "foo";
|
| o.requireMatchingFile = true;
|
| }
|
| @@ -1217,21 +1261,21 @@ checkStaticDirectoryHandler(api.StaticDirectoryHandler o) {
|
| unittest.expect(o.applicationReadable, unittest.isTrue);
|
| unittest.expect(o.directory, unittest.equals('foo'));
|
| unittest.expect(o.expiration, unittest.equals('foo'));
|
| - checkUnnamed3909(o.httpHeaders);
|
| + checkUnnamed3385(o.httpHeaders);
|
| unittest.expect(o.mimeType, unittest.equals('foo'));
|
| unittest.expect(o.requireMatchingFile, unittest.isTrue);
|
| }
|
| buildCounterStaticDirectoryHandler--;
|
| }
|
|
|
| -buildUnnamed3910() {
|
| +buildUnnamed3386() {
|
| var o = new core.Map<core.String, core.String>();
|
| o["x"] = "foo";
|
| o["y"] = "foo";
|
| return o;
|
| }
|
|
|
| -checkUnnamed3910(core.Map<core.String, core.String> o) {
|
| +checkUnnamed3386(core.Map<core.String, core.String> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| unittest.expect(o["x"], unittest.equals('foo'));
|
| unittest.expect(o["y"], unittest.equals('foo'));
|
| @@ -1244,7 +1288,7 @@ buildStaticFilesHandler() {
|
| if (buildCounterStaticFilesHandler < 3) {
|
| o.applicationReadable = true;
|
| o.expiration = "foo";
|
| - o.httpHeaders = buildUnnamed3910();
|
| + o.httpHeaders = buildUnnamed3386();
|
| o.mimeType = "foo";
|
| o.path = "foo";
|
| o.requireMatchingFile = true;
|
| @@ -1259,7 +1303,7 @@ checkStaticFilesHandler(api.StaticFilesHandler o) {
|
| if (buildCounterStaticFilesHandler < 3) {
|
| unittest.expect(o.applicationReadable, unittest.isTrue);
|
| unittest.expect(o.expiration, unittest.equals('foo'));
|
| - checkUnnamed3910(o.httpHeaders);
|
| + checkUnnamed3386(o.httpHeaders);
|
| unittest.expect(o.mimeType, unittest.equals('foo'));
|
| unittest.expect(o.path, unittest.equals('foo'));
|
| unittest.expect(o.requireMatchingFile, unittest.isTrue);
|
| @@ -1268,30 +1312,30 @@ checkStaticFilesHandler(api.StaticFilesHandler o) {
|
| buildCounterStaticFilesHandler--;
|
| }
|
|
|
| -buildUnnamed3911() {
|
| +buildUnnamed3387() {
|
| 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;
|
| }
|
|
|
| -checkUnnamed3911(core.Map<core.String, core.Object> o) {
|
| +checkUnnamed3387(core.Map<core.String, core.Object> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| var casted7 = (o["x"]) as core.Map; unittest.expect(casted7, unittest.hasLength(3)); unittest.expect(casted7["list"], unittest.equals([1, 2, 3])); unittest.expect(casted7["bool"], unittest.equals(true)); unittest.expect(casted7["string"], unittest.equals('foo'));
|
| var casted8 = (o["y"]) as core.Map; unittest.expect(casted8, unittest.hasLength(3)); unittest.expect(casted8["list"], unittest.equals([1, 2, 3])); unittest.expect(casted8["bool"], unittest.equals(true)); unittest.expect(casted8["string"], unittest.equals('foo'));
|
| }
|
|
|
| -buildUnnamed3912() {
|
| +buildUnnamed3388() {
|
| var o = new core.List<core.Map<core.String, core.Object>>();
|
| - o.add(buildUnnamed3911());
|
| - o.add(buildUnnamed3911());
|
| + o.add(buildUnnamed3387());
|
| + o.add(buildUnnamed3387());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3912(core.List<core.Map<core.String, core.Object>> o) {
|
| +checkUnnamed3388(core.List<core.Map<core.String, core.Object>> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| - checkUnnamed3911(o[0]);
|
| - checkUnnamed3911(o[1]);
|
| + checkUnnamed3387(o[0]);
|
| + checkUnnamed3387(o[1]);
|
| }
|
|
|
| core.int buildCounterStatus = 0;
|
| @@ -1300,7 +1344,7 @@ buildStatus() {
|
| buildCounterStatus++;
|
| if (buildCounterStatus < 3) {
|
| o.code = 42;
|
| - o.details = buildUnnamed3912();
|
| + o.details = buildUnnamed3388();
|
| o.message = "foo";
|
| }
|
| buildCounterStatus--;
|
| @@ -1311,20 +1355,20 @@ checkStatus(api.Status o) {
|
| buildCounterStatus++;
|
| if (buildCounterStatus < 3) {
|
| unittest.expect(o.code, unittest.equals(42));
|
| - checkUnnamed3912(o.details);
|
| + checkUnnamed3388(o.details);
|
| unittest.expect(o.message, unittest.equals('foo'));
|
| }
|
| buildCounterStatus--;
|
| }
|
|
|
| -buildUnnamed3913() {
|
| +buildUnnamed3389() {
|
| var o = new core.Map<core.String, core.double>();
|
| o["x"] = 42.0;
|
| o["y"] = 42.0;
|
| return o;
|
| }
|
|
|
| -checkUnnamed3913(core.Map<core.String, core.double> o) {
|
| +checkUnnamed3389(core.Map<core.String, core.double> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| unittest.expect(o["x"], unittest.equals(42.0));
|
| unittest.expect(o["y"], unittest.equals(42.0));
|
| @@ -1335,7 +1379,7 @@ buildTrafficSplit() {
|
| var o = new api.TrafficSplit();
|
| buildCounterTrafficSplit++;
|
| if (buildCounterTrafficSplit < 3) {
|
| - o.allocations = buildUnnamed3913();
|
| + o.allocations = buildUnnamed3389();
|
| o.shardBy = "foo";
|
| }
|
| buildCounterTrafficSplit--;
|
| @@ -1345,7 +1389,7 @@ buildTrafficSplit() {
|
| checkTrafficSplit(api.TrafficSplit o) {
|
| buildCounterTrafficSplit++;
|
| if (buildCounterTrafficSplit < 3) {
|
| - checkUnnamed3913(o.allocations);
|
| + checkUnnamed3389(o.allocations);
|
| unittest.expect(o.shardBy, unittest.equals('foo'));
|
| }
|
| buildCounterTrafficSplit--;
|
| @@ -1409,79 +1453,79 @@ checkUrlMap(api.UrlMap o) {
|
| buildCounterUrlMap--;
|
| }
|
|
|
| -buildUnnamed3914() {
|
| +buildUnnamed3390() {
|
| var o = new core.Map<core.String, core.String>();
|
| o["x"] = "foo";
|
| o["y"] = "foo";
|
| return o;
|
| }
|
|
|
| -checkUnnamed3914(core.Map<core.String, core.String> o) {
|
| +checkUnnamed3390(core.Map<core.String, core.String> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| unittest.expect(o["x"], unittest.equals('foo'));
|
| unittest.expect(o["y"], unittest.equals('foo'));
|
| }
|
|
|
| -buildUnnamed3915() {
|
| +buildUnnamed3391() {
|
| var o = new core.Map<core.String, core.String>();
|
| o["x"] = "foo";
|
| o["y"] = "foo";
|
| return o;
|
| }
|
|
|
| -checkUnnamed3915(core.Map<core.String, core.String> o) {
|
| +checkUnnamed3391(core.Map<core.String, core.String> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| unittest.expect(o["x"], unittest.equals('foo'));
|
| unittest.expect(o["y"], unittest.equals('foo'));
|
| }
|
|
|
| -buildUnnamed3916() {
|
| +buildUnnamed3392() {
|
| var o = new core.List<api.ErrorHandler>();
|
| o.add(buildErrorHandler());
|
| o.add(buildErrorHandler());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3916(core.List<api.ErrorHandler> o) {
|
| +checkUnnamed3392(core.List<api.ErrorHandler> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkErrorHandler(o[0]);
|
| checkErrorHandler(o[1]);
|
| }
|
|
|
| -buildUnnamed3917() {
|
| +buildUnnamed3393() {
|
| var o = new core.List<api.UrlMap>();
|
| o.add(buildUrlMap());
|
| o.add(buildUrlMap());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3917(core.List<api.UrlMap> o) {
|
| +checkUnnamed3393(core.List<api.UrlMap> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkUrlMap(o[0]);
|
| checkUrlMap(o[1]);
|
| }
|
|
|
| -buildUnnamed3918() {
|
| +buildUnnamed3394() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed3918(core.List<core.String> o) {
|
| +checkUnnamed3394(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'));
|
| }
|
|
|
| -buildUnnamed3919() {
|
| +buildUnnamed3395() {
|
| var o = new core.List<api.Library>();
|
| o.add(buildLibrary());
|
| o.add(buildLibrary());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3919(core.List<api.Library> o) {
|
| +checkUnnamed3395(core.List<api.Library> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkLibrary(o[0]);
|
| checkLibrary(o[1]);
|
| @@ -1495,26 +1539,27 @@ buildVersion() {
|
| o.apiConfig = buildApiConfigHandler();
|
| o.automaticScaling = buildAutomaticScaling();
|
| o.basicScaling = buildBasicScaling();
|
| - o.betaSettings = buildUnnamed3914();
|
| + o.betaSettings = buildUnnamed3390();
|
| o.creationTime = "foo";
|
| o.defaultExpiration = "foo";
|
| o.deployer = "foo";
|
| o.deployment = buildDeployment();
|
| o.env = "foo";
|
| - o.envVariables = buildUnnamed3915();
|
| - o.errorHandlers = buildUnnamed3916();
|
| - o.handlers = buildUnnamed3917();
|
| + o.envVariables = buildUnnamed3391();
|
| + o.errorHandlers = buildUnnamed3392();
|
| + o.handlers = buildUnnamed3393();
|
| o.healthCheck = buildHealthCheck();
|
| o.id = "foo";
|
| - o.inboundServices = buildUnnamed3918();
|
| + o.inboundServices = buildUnnamed3394();
|
| o.instanceClass = "foo";
|
| - o.libraries = buildUnnamed3919();
|
| + o.libraries = buildUnnamed3395();
|
| o.manualScaling = buildManualScaling();
|
| o.name = "foo";
|
| o.network = buildNetwork();
|
| o.nobuildFilesRegex = "foo";
|
| o.resources = buildResources();
|
| o.runtime = "foo";
|
| + o.runtimeApiVersion = "foo";
|
| o.servingStatus = "foo";
|
| o.threadsafe = true;
|
| o.vm = true;
|
| @@ -1529,26 +1574,27 @@ checkVersion(api.Version o) {
|
| checkApiConfigHandler(o.apiConfig);
|
| checkAutomaticScaling(o.automaticScaling);
|
| checkBasicScaling(o.basicScaling);
|
| - checkUnnamed3914(o.betaSettings);
|
| + checkUnnamed3390(o.betaSettings);
|
| unittest.expect(o.creationTime, unittest.equals('foo'));
|
| unittest.expect(o.defaultExpiration, unittest.equals('foo'));
|
| unittest.expect(o.deployer, unittest.equals('foo'));
|
| checkDeployment(o.deployment);
|
| unittest.expect(o.env, unittest.equals('foo'));
|
| - checkUnnamed3915(o.envVariables);
|
| - checkUnnamed3916(o.errorHandlers);
|
| - checkUnnamed3917(o.handlers);
|
| + checkUnnamed3391(o.envVariables);
|
| + checkUnnamed3392(o.errorHandlers);
|
| + checkUnnamed3393(o.handlers);
|
| checkHealthCheck(o.healthCheck);
|
| unittest.expect(o.id, unittest.equals('foo'));
|
| - checkUnnamed3918(o.inboundServices);
|
| + checkUnnamed3394(o.inboundServices);
|
| unittest.expect(o.instanceClass, unittest.equals('foo'));
|
| - checkUnnamed3919(o.libraries);
|
| + checkUnnamed3395(o.libraries);
|
| checkManualScaling(o.manualScaling);
|
| unittest.expect(o.name, unittest.equals('foo'));
|
| checkNetwork(o.network);
|
| unittest.expect(o.nobuildFilesRegex, unittest.equals('foo'));
|
| checkResources(o.resources);
|
| unittest.expect(o.runtime, unittest.equals('foo'));
|
| + unittest.expect(o.runtimeApiVersion, unittest.equals('foo'));
|
| unittest.expect(o.servingStatus, unittest.equals('foo'));
|
| unittest.expect(o.threadsafe, unittest.isTrue);
|
| unittest.expect(o.vm, unittest.isTrue);
|
| @@ -1860,6 +1906,15 @@ main() {
|
| });
|
|
|
|
|
| + unittest.group("obj-schema-OperationMetadataV1Alpha", () {
|
| + unittest.test("to-json--from-json", () {
|
| + var o = buildOperationMetadataV1Alpha();
|
| + var od = new api.OperationMetadataV1Alpha.fromJson(o.toJson());
|
| + checkOperationMetadataV1Alpha(od);
|
| + });
|
| + });
|
| +
|
| +
|
| unittest.group("obj-schema-OperationMetadataV1Beta", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildOperationMetadataV1Beta();
|
| @@ -1992,7 +2047,7 @@ main() {
|
| var mock = new HttpServerMock();
|
| api.AppsResourceApi res = new api.AppengineApi(mock).apps;
|
| var arg_request = buildApplication();
|
| - mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| + mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
|
| var obj = new api.Application.fromJson(json);
|
| checkApplication(obj);
|
|
|
| @@ -2029,7 +2084,7 @@ main() {
|
| var resp = convert.JSON.encode(buildOperation());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.create(arg_request).then(unittest.expectAsync(((api.Operation response) {
|
| + res.create(arg_request).then(unittest.expectAsync1(((api.Operation response) {
|
| checkOperation(response);
|
| })));
|
| });
|
| @@ -2040,7 +2095,7 @@ main() {
|
| api.AppsResourceApi res = new api.AppengineApi(mock).apps;
|
| var arg_appsId = "foo";
|
| var arg_ensureResourcesExist = true;
|
| - mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| + mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| var index;
|
| @@ -2078,7 +2133,7 @@ main() {
|
| var resp = convert.JSON.encode(buildApplication());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.get(arg_appsId, ensureResourcesExist: arg_ensureResourcesExist).then(unittest.expectAsync(((api.Application response) {
|
| + res.get(arg_appsId, ensureResourcesExist: arg_ensureResourcesExist).then(unittest.expectAsync1(((api.Application response) {
|
| checkApplication(response);
|
| })));
|
| });
|
| @@ -2090,7 +2145,7 @@ main() {
|
| var arg_request = buildApplication();
|
| var arg_appsId = "foo";
|
| var arg_mask = "foo";
|
| - mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| + mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
|
| var obj = new api.Application.fromJson(json);
|
| checkApplication(obj);
|
|
|
| @@ -2131,7 +2186,7 @@ main() {
|
| var resp = convert.JSON.encode(buildOperation());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.patch(arg_request, arg_appsId, mask: arg_mask).then(unittest.expectAsync(((api.Operation response) {
|
| + res.patch(arg_request, arg_appsId, mask: arg_mask).then(unittest.expectAsync1(((api.Operation response) {
|
| checkOperation(response);
|
| })));
|
| });
|
| @@ -2146,7 +2201,7 @@ main() {
|
| api.AppsLocationsResourceApi res = new api.AppengineApi(mock).apps.locations;
|
| var arg_appsId = "foo";
|
| var arg_locationsId = "foo";
|
| - mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| + mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| var index;
|
| @@ -2190,7 +2245,7 @@ main() {
|
| var resp = convert.JSON.encode(buildLocation());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.get(arg_appsId, arg_locationsId).then(unittest.expectAsync(((api.Location response) {
|
| + res.get(arg_appsId, arg_locationsId).then(unittest.expectAsync1(((api.Location response) {
|
| checkLocation(response);
|
| })));
|
| });
|
| @@ -2203,7 +2258,7 @@ main() {
|
| var arg_filter = "foo";
|
| var arg_pageToken = "foo";
|
| var arg_pageSize = 42;
|
| - mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| + mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| var index;
|
| @@ -2247,7 +2302,7 @@ main() {
|
| var resp = convert.JSON.encode(buildListLocationsResponse());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.list(arg_appsId, filter: arg_filter, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync(((api.ListLocationsResponse response) {
|
| + res.list(arg_appsId, filter: arg_filter, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListLocationsResponse response) {
|
| checkListLocationsResponse(response);
|
| })));
|
| });
|
| @@ -2262,7 +2317,7 @@ main() {
|
| api.AppsModulesResourceApi res = new api.AppengineApi(mock).apps.modules;
|
| var arg_appsId = "foo";
|
| var arg_modulesId = "foo";
|
| - mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| + mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| var index;
|
| @@ -2306,7 +2361,7 @@ main() {
|
| var resp = convert.JSON.encode(buildOperation());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.delete(arg_appsId, arg_modulesId).then(unittest.expectAsync(((api.Operation response) {
|
| + res.delete(arg_appsId, arg_modulesId).then(unittest.expectAsync1(((api.Operation response) {
|
| checkOperation(response);
|
| })));
|
| });
|
| @@ -2317,7 +2372,7 @@ main() {
|
| api.AppsModulesResourceApi res = new api.AppengineApi(mock).apps.modules;
|
| var arg_appsId = "foo";
|
| var arg_modulesId = "foo";
|
| - mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| + mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| var index;
|
| @@ -2361,7 +2416,7 @@ main() {
|
| var resp = convert.JSON.encode(buildModule());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.get(arg_appsId, arg_modulesId).then(unittest.expectAsync(((api.Module response) {
|
| + res.get(arg_appsId, arg_modulesId).then(unittest.expectAsync1(((api.Module response) {
|
| checkModule(response);
|
| })));
|
| });
|
| @@ -2371,9 +2426,9 @@ main() {
|
| var mock = new HttpServerMock();
|
| api.AppsModulesResourceApi res = new api.AppengineApi(mock).apps.modules;
|
| var arg_appsId = "foo";
|
| - var arg_pageToken = "foo";
|
| var arg_pageSize = 42;
|
| - mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| + var arg_pageToken = "foo";
|
| + mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| var index;
|
| @@ -2406,8 +2461,8 @@ main() {
|
| addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
| - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken));
|
| unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize));
|
| + unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken));
|
|
|
|
|
| var h = {
|
| @@ -2416,7 +2471,7 @@ main() {
|
| var resp = convert.JSON.encode(buildListModulesResponse());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.list(arg_appsId, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync(((api.ListModulesResponse response) {
|
| + res.list(arg_appsId, pageSize: arg_pageSize, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.ListModulesResponse response) {
|
| checkListModulesResponse(response);
|
| })));
|
| });
|
| @@ -2430,7 +2485,7 @@ main() {
|
| var arg_modulesId = "foo";
|
| var arg_migrateTraffic = true;
|
| var arg_mask = "foo";
|
| - mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| + mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
|
| var obj = new api.Module.fromJson(json);
|
| checkModule(obj);
|
|
|
| @@ -2479,7 +2534,7 @@ main() {
|
| var resp = convert.JSON.encode(buildOperation());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.patch(arg_request, arg_appsId, arg_modulesId, migrateTraffic: arg_migrateTraffic, mask: arg_mask).then(unittest.expectAsync(((api.Operation response) {
|
| + res.patch(arg_request, arg_appsId, arg_modulesId, migrateTraffic: arg_migrateTraffic, mask: arg_mask).then(unittest.expectAsync1(((api.Operation response) {
|
| checkOperation(response);
|
| })));
|
| });
|
| @@ -2495,7 +2550,7 @@ main() {
|
| var arg_request = buildVersion();
|
| var arg_appsId = "foo";
|
| var arg_modulesId = "foo";
|
| - mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| + mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
|
| var obj = new api.Version.fromJson(json);
|
| checkVersion(obj);
|
|
|
| @@ -2546,7 +2601,7 @@ main() {
|
| var resp = convert.JSON.encode(buildOperation());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.create(arg_request, arg_appsId, arg_modulesId).then(unittest.expectAsync(((api.Operation response) {
|
| + res.create(arg_request, arg_appsId, arg_modulesId).then(unittest.expectAsync1(((api.Operation response) {
|
| checkOperation(response);
|
| })));
|
| });
|
| @@ -2558,7 +2613,7 @@ main() {
|
| var arg_appsId = "foo";
|
| var arg_modulesId = "foo";
|
| var arg_versionsId = "foo";
|
| - mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| + mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| var index;
|
| @@ -2609,7 +2664,7 @@ main() {
|
| var resp = convert.JSON.encode(buildOperation());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.delete(arg_appsId, arg_modulesId, arg_versionsId).then(unittest.expectAsync(((api.Operation response) {
|
| + res.delete(arg_appsId, arg_modulesId, arg_versionsId).then(unittest.expectAsync1(((api.Operation response) {
|
| checkOperation(response);
|
| })));
|
| });
|
| @@ -2622,7 +2677,7 @@ main() {
|
| var arg_modulesId = "foo";
|
| var arg_versionsId = "foo";
|
| var arg_view = "foo";
|
| - mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| + mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| var index;
|
| @@ -2674,7 +2729,7 @@ main() {
|
| var resp = convert.JSON.encode(buildVersion());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.get(arg_appsId, arg_modulesId, arg_versionsId, view: arg_view).then(unittest.expectAsync(((api.Version response) {
|
| + res.get(arg_appsId, arg_modulesId, arg_versionsId, view: arg_view).then(unittest.expectAsync1(((api.Version response) {
|
| checkVersion(response);
|
| })));
|
| });
|
| @@ -2685,10 +2740,10 @@ main() {
|
| api.AppsModulesVersionsResourceApi res = new api.AppengineApi(mock).apps.modules.versions;
|
| var arg_appsId = "foo";
|
| var arg_modulesId = "foo";
|
| - var arg_pageToken = "foo";
|
| var arg_pageSize = 42;
|
| var arg_view = "foo";
|
| - mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| + var arg_pageToken = "foo";
|
| + mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| var index;
|
| @@ -2728,9 +2783,9 @@ main() {
|
| addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
| - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken));
|
| unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize));
|
| unittest.expect(queryMap["view"].first, unittest.equals(arg_view));
|
| + unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken));
|
|
|
|
|
| var h = {
|
| @@ -2739,7 +2794,7 @@ main() {
|
| var resp = convert.JSON.encode(buildListVersionsResponse());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.list(arg_appsId, arg_modulesId, pageToken: arg_pageToken, pageSize: arg_pageSize, view: arg_view).then(unittest.expectAsync(((api.ListVersionsResponse response) {
|
| + res.list(arg_appsId, arg_modulesId, pageSize: arg_pageSize, view: arg_view, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.ListVersionsResponse response) {
|
| checkListVersionsResponse(response);
|
| })));
|
| });
|
| @@ -2753,7 +2808,7 @@ main() {
|
| var arg_modulesId = "foo";
|
| var arg_versionsId = "foo";
|
| var arg_mask = "foo";
|
| - mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| + mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
|
| var obj = new api.Version.fromJson(json);
|
| checkVersion(obj);
|
|
|
| @@ -2808,7 +2863,7 @@ main() {
|
| var resp = convert.JSON.encode(buildOperation());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.patch(arg_request, arg_appsId, arg_modulesId, arg_versionsId, mask: arg_mask).then(unittest.expectAsync(((api.Operation response) {
|
| + res.patch(arg_request, arg_appsId, arg_modulesId, arg_versionsId, mask: arg_mask).then(unittest.expectAsync1(((api.Operation response) {
|
| checkOperation(response);
|
| })));
|
| });
|
| @@ -2826,7 +2881,7 @@ main() {
|
| var arg_modulesId = "foo";
|
| var arg_versionsId = "foo";
|
| var arg_instancesId = "foo";
|
| - mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| + mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
|
| var obj = new api.DebugInstanceRequest.fromJson(json);
|
| checkDebugInstanceRequest(obj);
|
|
|
| @@ -2891,7 +2946,7 @@ main() {
|
| var resp = convert.JSON.encode(buildOperation());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.debug(arg_request, arg_appsId, arg_modulesId, arg_versionsId, arg_instancesId).then(unittest.expectAsync(((api.Operation response) {
|
| + res.debug(arg_request, arg_appsId, arg_modulesId, arg_versionsId, arg_instancesId).then(unittest.expectAsync1(((api.Operation response) {
|
| checkOperation(response);
|
| })));
|
| });
|
| @@ -2904,7 +2959,7 @@ main() {
|
| var arg_modulesId = "foo";
|
| var arg_versionsId = "foo";
|
| var arg_instancesId = "foo";
|
| - mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| + mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| var index;
|
| @@ -2962,7 +3017,7 @@ main() {
|
| var resp = convert.JSON.encode(buildOperation());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.delete(arg_appsId, arg_modulesId, arg_versionsId, arg_instancesId).then(unittest.expectAsync(((api.Operation response) {
|
| + res.delete(arg_appsId, arg_modulesId, arg_versionsId, arg_instancesId).then(unittest.expectAsync1(((api.Operation response) {
|
| checkOperation(response);
|
| })));
|
| });
|
| @@ -2975,7 +3030,7 @@ main() {
|
| var arg_modulesId = "foo";
|
| var arg_versionsId = "foo";
|
| var arg_instancesId = "foo";
|
| - mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| + mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| var index;
|
| @@ -3033,7 +3088,7 @@ main() {
|
| var resp = convert.JSON.encode(buildInstance());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.get(arg_appsId, arg_modulesId, arg_versionsId, arg_instancesId).then(unittest.expectAsync(((api.Instance response) {
|
| + res.get(arg_appsId, arg_modulesId, arg_versionsId, arg_instancesId).then(unittest.expectAsync1(((api.Instance response) {
|
| checkInstance(response);
|
| })));
|
| });
|
| @@ -3047,7 +3102,7 @@ main() {
|
| var arg_versionsId = "foo";
|
| var arg_pageToken = "foo";
|
| var arg_pageSize = 42;
|
| - mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| + mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| var index;
|
| @@ -3104,7 +3159,7 @@ main() {
|
| var resp = convert.JSON.encode(buildListInstancesResponse());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.list(arg_appsId, arg_modulesId, arg_versionsId, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync(((api.ListInstancesResponse response) {
|
| + res.list(arg_appsId, arg_modulesId, arg_versionsId, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListInstancesResponse response) {
|
| checkListInstancesResponse(response);
|
| })));
|
| });
|
| @@ -3119,7 +3174,7 @@ main() {
|
| api.AppsOperationsResourceApi res = new api.AppengineApi(mock).apps.operations;
|
| var arg_appsId = "foo";
|
| var arg_operationsId = "foo";
|
| - mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| + mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| var index;
|
| @@ -3163,7 +3218,7 @@ main() {
|
| var resp = convert.JSON.encode(buildOperation());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.get(arg_appsId, arg_operationsId).then(unittest.expectAsync(((api.Operation response) {
|
| + res.get(arg_appsId, arg_operationsId).then(unittest.expectAsync1(((api.Operation response) {
|
| checkOperation(response);
|
| })));
|
| });
|
| @@ -3173,10 +3228,10 @@ main() {
|
| var mock = new HttpServerMock();
|
| api.AppsOperationsResourceApi res = new api.AppengineApi(mock).apps.operations;
|
| var arg_appsId = "foo";
|
| - var arg_pageToken = "foo";
|
| var arg_pageSize = 42;
|
| var arg_filter = "foo";
|
| - mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| + var arg_pageToken = "foo";
|
| + mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| var index;
|
| @@ -3209,9 +3264,9 @@ main() {
|
| addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
| - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken));
|
| unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize));
|
| unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter));
|
| + unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken));
|
|
|
|
|
| var h = {
|
| @@ -3220,7 +3275,7 @@ main() {
|
| var resp = convert.JSON.encode(buildListOperationsResponse());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.list(arg_appsId, pageToken: arg_pageToken, pageSize: arg_pageSize, filter: arg_filter).then(unittest.expectAsync(((api.ListOperationsResponse response) {
|
| + res.list(arg_appsId, pageSize: arg_pageSize, filter: arg_filter, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.ListOperationsResponse response) {
|
| checkListOperationsResponse(response);
|
| })));
|
| });
|
|
|