Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(372)

Unified Diff: generated/googleapis_beta/test/appengine/v1beta4_test.dart

Issue 1797933002: Api-roll 33: 2016-03-14 (Closed) Base URL: git@github.com:dart-lang/googleapis.git@master
Patch Set: Added resources/*/CHANGELOG.md, addresssed comments Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « generated/googleapis_beta/pubspec.yaml ('k') | generated/googleapis_beta/test/appengine/v1beta5_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 c643b2fa4ba60ecab6dbce45389d9c17b7d5820b..1b8eb25e94f67081591ca00ba3ce36972e78c08f 100644
--- a/generated/googleapis_beta/test/appengine/v1beta4_test.dart
+++ b/generated/googleapis_beta/test/appengine/v1beta4_test.dart
@@ -97,14 +97,14 @@ checkApiEndpointHandler(api.ApiEndpointHandler o) {
buildCounterApiEndpointHandler--;
}
-buildUnnamed3113() {
+buildUnnamed3478() {
var o = new core.List<api.UrlDispatchRule>();
o.add(buildUrlDispatchRule());
o.add(buildUrlDispatchRule());
return o;
}
-checkUnnamed3113(core.List<api.UrlDispatchRule> o) {
+checkUnnamed3478(core.List<api.UrlDispatchRule> o) {
unittest.expect(o, unittest.hasLength(2));
checkUrlDispatchRule(o[0]);
checkUrlDispatchRule(o[1]);
@@ -115,9 +115,12 @@ buildApplication() {
var o = new api.Application();
buildCounterApplication++;
if (buildCounterApplication < 3) {
+ o.authDomain = "foo";
o.codeBucket = "foo";
o.defaultBucket = "foo";
- o.dispatchRules = buildUnnamed3113();
+ o.defaultCookieExpiration = "foo";
+ o.defaultHostname = "foo";
+ o.dispatchRules = buildUnnamed3478();
o.id = "foo";
o.location = "foo";
o.name = "foo";
@@ -129,9 +132,12 @@ buildApplication() {
checkApplication(api.Application o) {
buildCounterApplication++;
if (buildCounterApplication < 3) {
+ unittest.expect(o.authDomain, unittest.equals('foo'));
unittest.expect(o.codeBucket, unittest.equals('foo'));
unittest.expect(o.defaultBucket, unittest.equals('foo'));
- checkUnnamed3113(o.dispatchRules);
+ unittest.expect(o.defaultCookieExpiration, unittest.equals('foo'));
+ unittest.expect(o.defaultHostname, unittest.equals('foo'));
+ checkUnnamed3478(o.dispatchRules);
unittest.expect(o.id, unittest.equals('foo'));
unittest.expect(o.location, unittest.equals('foo'));
unittest.expect(o.name, unittest.equals('foo'));
@@ -241,27 +247,27 @@ checkCpuUtilization(api.CpuUtilization o) {
buildCounterCpuUtilization--;
}
-buildUnnamed3114() {
+buildUnnamed3479() {
var o = new core.Map<core.String, api.FileInfo>();
o["x"] = buildFileInfo();
o["y"] = buildFileInfo();
return o;
}
-checkUnnamed3114(core.Map<core.String, api.FileInfo> o) {
+checkUnnamed3479(core.Map<core.String, api.FileInfo> o) {
unittest.expect(o, unittest.hasLength(2));
checkFileInfo(o["x"]);
checkFileInfo(o["y"]);
}
-buildUnnamed3115() {
+buildUnnamed3480() {
var o = new core.List<api.SourceReference>();
o.add(buildSourceReference());
o.add(buildSourceReference());
return o;
}
-checkUnnamed3115(core.List<api.SourceReference> o) {
+checkUnnamed3480(core.List<api.SourceReference> o) {
unittest.expect(o, unittest.hasLength(2));
checkSourceReference(o[0]);
checkSourceReference(o[1]);
@@ -273,8 +279,8 @@ buildDeployment() {
buildCounterDeployment++;
if (buildCounterDeployment < 3) {
o.container = buildContainerInfo();
- o.files = buildUnnamed3114();
- o.sourceReferences = buildUnnamed3115();
+ o.files = buildUnnamed3479();
+ o.sourceReferences = buildUnnamed3480();
}
buildCounterDeployment--;
return o;
@@ -284,8 +290,8 @@ checkDeployment(api.Deployment o) {
buildCounterDeployment++;
if (buildCounterDeployment < 3) {
checkContainerInfo(o.container);
- checkUnnamed3114(o.files);
- checkUnnamed3115(o.sourceReferences);
+ checkUnnamed3479(o.files);
+ checkUnnamed3480(o.sourceReferences);
}
buildCounterDeployment--;
}
@@ -413,14 +419,14 @@ checkLibrary(api.Library o) {
buildCounterLibrary--;
}
-buildUnnamed3116() {
+buildUnnamed3481() {
var o = new core.List<api.Module>();
o.add(buildModule());
o.add(buildModule());
return o;
}
-checkUnnamed3116(core.List<api.Module> o) {
+checkUnnamed3481(core.List<api.Module> o) {
unittest.expect(o, unittest.hasLength(2));
checkModule(o[0]);
checkModule(o[1]);
@@ -431,7 +437,7 @@ buildListModulesResponse() {
var o = new api.ListModulesResponse();
buildCounterListModulesResponse++;
if (buildCounterListModulesResponse < 3) {
- o.modules = buildUnnamed3116();
+ o.modules = buildUnnamed3481();
o.nextPageToken = "foo";
}
buildCounterListModulesResponse--;
@@ -441,20 +447,20 @@ buildListModulesResponse() {
checkListModulesResponse(api.ListModulesResponse o) {
buildCounterListModulesResponse++;
if (buildCounterListModulesResponse < 3) {
- checkUnnamed3116(o.modules);
+ checkUnnamed3481(o.modules);
unittest.expect(o.nextPageToken, unittest.equals('foo'));
}
buildCounterListModulesResponse--;
}
-buildUnnamed3117() {
+buildUnnamed3482() {
var o = new core.List<api.Operation>();
o.add(buildOperation());
o.add(buildOperation());
return o;
}
-checkUnnamed3117(core.List<api.Operation> o) {
+checkUnnamed3482(core.List<api.Operation> o) {
unittest.expect(o, unittest.hasLength(2));
checkOperation(o[0]);
checkOperation(o[1]);
@@ -466,7 +472,7 @@ buildListOperationsResponse() {
buildCounterListOperationsResponse++;
if (buildCounterListOperationsResponse < 3) {
o.nextPageToken = "foo";
- o.operations = buildUnnamed3117();
+ o.operations = buildUnnamed3482();
}
buildCounterListOperationsResponse--;
return o;
@@ -476,19 +482,19 @@ checkListOperationsResponse(api.ListOperationsResponse o) {
buildCounterListOperationsResponse++;
if (buildCounterListOperationsResponse < 3) {
unittest.expect(o.nextPageToken, unittest.equals('foo'));
- checkUnnamed3117(o.operations);
+ checkUnnamed3482(o.operations);
}
buildCounterListOperationsResponse--;
}
-buildUnnamed3118() {
+buildUnnamed3483() {
var o = new core.List<api.Version>();
o.add(buildVersion());
o.add(buildVersion());
return o;
}
-checkUnnamed3118(core.List<api.Version> o) {
+checkUnnamed3483(core.List<api.Version> o) {
unittest.expect(o, unittest.hasLength(2));
checkVersion(o[0]);
checkVersion(o[1]);
@@ -500,7 +506,7 @@ buildListVersionsResponse() {
buildCounterListVersionsResponse++;
if (buildCounterListVersionsResponse < 3) {
o.nextPageToken = "foo";
- o.versions = buildUnnamed3118();
+ o.versions = buildUnnamed3483();
}
buildCounterListVersionsResponse--;
return o;
@@ -510,7 +516,7 @@ checkListVersionsResponse(api.ListVersionsResponse o) {
buildCounterListVersionsResponse++;
if (buildCounterListVersionsResponse < 3) {
unittest.expect(o.nextPageToken, unittest.equals('foo'));
- checkUnnamed3118(o.versions);
+ checkUnnamed3483(o.versions);
}
buildCounterListVersionsResponse--;
}
@@ -557,14 +563,14 @@ checkModule(api.Module o) {
buildCounterModule--;
}
-buildUnnamed3119() {
+buildUnnamed3484() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed3119(core.List<core.String> o) {
+checkUnnamed3484(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'));
@@ -575,7 +581,7 @@ buildNetwork() {
var o = new api.Network();
buildCounterNetwork++;
if (buildCounterNetwork < 3) {
- o.forwardedPorts = buildUnnamed3119();
+ o.forwardedPorts = buildUnnamed3484();
o.instanceTag = "foo";
o.name = "foo";
}
@@ -586,7 +592,7 @@ buildNetwork() {
checkNetwork(api.Network o) {
buildCounterNetwork++;
if (buildCounterNetwork < 3) {
- checkUnnamed3119(o.forwardedPorts);
+ checkUnnamed3484(o.forwardedPorts);
unittest.expect(o.instanceTag, unittest.equals('foo'));
unittest.expect(o.name, unittest.equals('foo'));
}
@@ -618,27 +624,27 @@ checkNetworkUtilization(api.NetworkUtilization o) {
buildCounterNetworkUtilization--;
}
-buildUnnamed3120() {
+buildUnnamed3485() {
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;
}
-checkUnnamed3120(core.Map<core.String, core.Object> o) {
+checkUnnamed3485(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'));
}
-buildUnnamed3121() {
+buildUnnamed3486() {
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;
}
-checkUnnamed3121(core.Map<core.String, core.Object> o) {
+checkUnnamed3486(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'));
@@ -651,9 +657,9 @@ buildOperation() {
if (buildCounterOperation < 3) {
o.done = true;
o.error = buildStatus();
- o.metadata = buildUnnamed3120();
+ o.metadata = buildUnnamed3485();
o.name = "foo";
- o.response = buildUnnamed3121();
+ o.response = buildUnnamed3486();
}
buildCounterOperation--;
return o;
@@ -664,9 +670,9 @@ checkOperation(api.Operation o) {
if (buildCounterOperation < 3) {
unittest.expect(o.done, unittest.isTrue);
checkStatus(o.error);
- checkUnnamed3120(o.metadata);
+ checkUnnamed3485(o.metadata);
unittest.expect(o.name, unittest.equals('foo'));
- checkUnnamed3121(o.response);
+ checkUnnamed3486(o.response);
}
buildCounterOperation--;
}
@@ -811,14 +817,14 @@ checkSourceReference(api.SourceReference o) {
buildCounterSourceReference--;
}
-buildUnnamed3122() {
+buildUnnamed3487() {
var o = new core.Map<core.String, core.String>();
o["x"] = "foo";
o["y"] = "foo";
return o;
}
-checkUnnamed3122(core.Map<core.String, core.String> o) {
+checkUnnamed3487(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'));
@@ -832,7 +838,7 @@ buildStaticDirectoryHandler() {
o.applicationReadable = true;
o.directory = "foo";
o.expiration = "foo";
- o.httpHeaders = buildUnnamed3122();
+ o.httpHeaders = buildUnnamed3487();
o.mimeType = "foo";
o.requireMatchingFile = true;
}
@@ -846,21 +852,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'));
- checkUnnamed3122(o.httpHeaders);
+ checkUnnamed3487(o.httpHeaders);
unittest.expect(o.mimeType, unittest.equals('foo'));
unittest.expect(o.requireMatchingFile, unittest.isTrue);
}
buildCounterStaticDirectoryHandler--;
}
-buildUnnamed3123() {
+buildUnnamed3488() {
var o = new core.Map<core.String, core.String>();
o["x"] = "foo";
o["y"] = "foo";
return o;
}
-checkUnnamed3123(core.Map<core.String, core.String> o) {
+checkUnnamed3488(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'));
@@ -873,7 +879,7 @@ buildStaticFilesHandler() {
if (buildCounterStaticFilesHandler < 3) {
o.applicationReadable = true;
o.expiration = "foo";
- o.httpHeaders = buildUnnamed3123();
+ o.httpHeaders = buildUnnamed3488();
o.mimeType = "foo";
o.path = "foo";
o.requireMatchingFile = true;
@@ -888,7 +894,7 @@ checkStaticFilesHandler(api.StaticFilesHandler o) {
if (buildCounterStaticFilesHandler < 3) {
unittest.expect(o.applicationReadable, unittest.isTrue);
unittest.expect(o.expiration, unittest.equals('foo'));
- checkUnnamed3123(o.httpHeaders);
+ checkUnnamed3488(o.httpHeaders);
unittest.expect(o.mimeType, unittest.equals('foo'));
unittest.expect(o.path, unittest.equals('foo'));
unittest.expect(o.requireMatchingFile, unittest.isTrue);
@@ -897,30 +903,30 @@ checkStaticFilesHandler(api.StaticFilesHandler o) {
buildCounterStaticFilesHandler--;
}
-buildUnnamed3124() {
+buildUnnamed3489() {
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;
}
-checkUnnamed3124(core.Map<core.String, core.Object> o) {
+checkUnnamed3489(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'));
}
-buildUnnamed3125() {
+buildUnnamed3490() {
var o = new core.List<core.Map<core.String, core.Object>>();
- o.add(buildUnnamed3124());
- o.add(buildUnnamed3124());
+ o.add(buildUnnamed3489());
+ o.add(buildUnnamed3489());
return o;
}
-checkUnnamed3125(core.List<core.Map<core.String, core.Object>> o) {
+checkUnnamed3490(core.List<core.Map<core.String, core.Object>> o) {
unittest.expect(o, unittest.hasLength(2));
- checkUnnamed3124(o[0]);
- checkUnnamed3124(o[1]);
+ checkUnnamed3489(o[0]);
+ checkUnnamed3489(o[1]);
}
core.int buildCounterStatus = 0;
@@ -929,7 +935,7 @@ buildStatus() {
buildCounterStatus++;
if (buildCounterStatus < 3) {
o.code = 42;
- o.details = buildUnnamed3125();
+ o.details = buildUnnamed3490();
o.message = "foo";
}
buildCounterStatus--;
@@ -940,20 +946,20 @@ checkStatus(api.Status o) {
buildCounterStatus++;
if (buildCounterStatus < 3) {
unittest.expect(o.code, unittest.equals(42));
- checkUnnamed3125(o.details);
+ checkUnnamed3490(o.details);
unittest.expect(o.message, unittest.equals('foo'));
}
buildCounterStatus--;
}
-buildUnnamed3126() {
+buildUnnamed3491() {
var o = new core.Map<core.String, core.double>();
o["x"] = 42.0;
o["y"] = 42.0;
return o;
}
-checkUnnamed3126(core.Map<core.String, core.double> o) {
+checkUnnamed3491(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));
@@ -964,7 +970,7 @@ buildTrafficSplit() {
var o = new api.TrafficSplit();
buildCounterTrafficSplit++;
if (buildCounterTrafficSplit < 3) {
- o.allocations = buildUnnamed3126();
+ o.allocations = buildUnnamed3491();
o.shardBy = "foo";
}
buildCounterTrafficSplit--;
@@ -974,7 +980,7 @@ buildTrafficSplit() {
checkTrafficSplit(api.TrafficSplit o) {
buildCounterTrafficSplit++;
if (buildCounterTrafficSplit < 3) {
- checkUnnamed3126(o.allocations);
+ checkUnnamed3491(o.allocations);
unittest.expect(o.shardBy, unittest.equals('foo'));
}
buildCounterTrafficSplit--;
@@ -1038,79 +1044,79 @@ checkUrlMap(api.UrlMap o) {
buildCounterUrlMap--;
}
-buildUnnamed3127() {
+buildUnnamed3492() {
var o = new core.Map<core.String, core.String>();
o["x"] = "foo";
o["y"] = "foo";
return o;
}
-checkUnnamed3127(core.Map<core.String, core.String> o) {
+checkUnnamed3492(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'));
}
-buildUnnamed3128() {
+buildUnnamed3493() {
var o = new core.Map<core.String, core.String>();
o["x"] = "foo";
o["y"] = "foo";
return o;
}
-checkUnnamed3128(core.Map<core.String, core.String> o) {
+checkUnnamed3493(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'));
}
-buildUnnamed3129() {
+buildUnnamed3494() {
var o = new core.List<api.ErrorHandler>();
o.add(buildErrorHandler());
o.add(buildErrorHandler());
return o;
}
-checkUnnamed3129(core.List<api.ErrorHandler> o) {
+checkUnnamed3494(core.List<api.ErrorHandler> o) {
unittest.expect(o, unittest.hasLength(2));
checkErrorHandler(o[0]);
checkErrorHandler(o[1]);
}
-buildUnnamed3130() {
+buildUnnamed3495() {
var o = new core.List<api.UrlMap>();
o.add(buildUrlMap());
o.add(buildUrlMap());
return o;
}
-checkUnnamed3130(core.List<api.UrlMap> o) {
+checkUnnamed3495(core.List<api.UrlMap> o) {
unittest.expect(o, unittest.hasLength(2));
checkUrlMap(o[0]);
checkUrlMap(o[1]);
}
-buildUnnamed3131() {
+buildUnnamed3496() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed3131(core.List<core.String> o) {
+checkUnnamed3496(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'));
}
-buildUnnamed3132() {
+buildUnnamed3497() {
var o = new core.List<api.Library>();
o.add(buildLibrary());
o.add(buildLibrary());
return o;
}
-checkUnnamed3132(core.List<api.Library> o) {
+checkUnnamed3497(core.List<api.Library> o) {
unittest.expect(o, unittest.hasLength(2));
checkLibrary(o[0]);
checkLibrary(o[1]);
@@ -1124,20 +1130,20 @@ buildVersion() {
o.apiConfig = buildApiConfigHandler();
o.automaticScaling = buildAutomaticScaling();
o.basicScaling = buildBasicScaling();
- o.betaSettings = buildUnnamed3127();
+ o.betaSettings = buildUnnamed3492();
o.creationTime = "foo";
o.defaultExpiration = "foo";
o.deployer = "foo";
o.deployment = buildDeployment();
o.env = "foo";
- o.envVariables = buildUnnamed3128();
- o.errorHandlers = buildUnnamed3129();
- o.handlers = buildUnnamed3130();
+ o.envVariables = buildUnnamed3493();
+ o.errorHandlers = buildUnnamed3494();
+ o.handlers = buildUnnamed3495();
o.healthCheck = buildHealthCheck();
o.id = "foo";
- o.inboundServices = buildUnnamed3131();
+ o.inboundServices = buildUnnamed3496();
o.instanceClass = "foo";
- o.libraries = buildUnnamed3132();
+ o.libraries = buildUnnamed3497();
o.manualScaling = buildManualScaling();
o.name = "foo";
o.network = buildNetwork();
@@ -1158,20 +1164,20 @@ checkVersion(api.Version o) {
checkApiConfigHandler(o.apiConfig);
checkAutomaticScaling(o.automaticScaling);
checkBasicScaling(o.basicScaling);
- checkUnnamed3127(o.betaSettings);
+ checkUnnamed3492(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'));
- checkUnnamed3128(o.envVariables);
- checkUnnamed3129(o.errorHandlers);
- checkUnnamed3130(o.handlers);
+ checkUnnamed3493(o.envVariables);
+ checkUnnamed3494(o.errorHandlers);
+ checkUnnamed3495(o.handlers);
checkHealthCheck(o.healthCheck);
unittest.expect(o.id, unittest.equals('foo'));
- checkUnnamed3131(o.inboundServices);
+ checkUnnamed3496(o.inboundServices);
unittest.expect(o.instanceClass, unittest.equals('foo'));
- checkUnnamed3132(o.libraries);
+ checkUnnamed3497(o.libraries);
checkManualScaling(o.manualScaling);
unittest.expect(o.name, unittest.equals('foo'));
checkNetwork(o.network);
@@ -2035,6 +2041,75 @@ main() {
})));
});
+ unittest.test("method--patch", () {
+
+ var mock = new HttpServerMock();
+ api.AppsModulesVersionsResourceApi res = new api.AppengineApi(mock).apps.modules.versions;
+ var arg_request = buildVersion();
+ var arg_appsId = "foo";
+ var arg_modulesId = "foo";
+ var arg_versionsId = "foo";
+ var arg_mask = "foo";
+ mock.register(unittest.expectAsync((http.BaseRequest req, json) {
+ var obj = new api.Version.fromJson(json);
+ checkVersion(obj);
+
+ var path = (req.url).path;
+ var pathOffset = 0;
+ var index;
+ var subPart;
+ unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
+ pathOffset += 1;
+ unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("v1beta4/apps/"));
+ pathOffset += 13;
+ index = path.indexOf("/modules/", pathOffset);
+ unittest.expect(index >= 0, unittest.isTrue);
+ subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
+ pathOffset = index;
+ unittest.expect(subPart, unittest.equals("$arg_appsId"));
+ unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equals("/modules/"));
+ pathOffset += 9;
+ index = path.indexOf("/versions/", pathOffset);
+ unittest.expect(index >= 0, unittest.isTrue);
+ subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
+ pathOffset = index;
+ unittest.expect(subPart, unittest.equals("$arg_modulesId"));
+ unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.equals("/versions/"));
+ pathOffset += 10;
+ subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
+ pathOffset = path.length;
+ unittest.expect(subPart, unittest.equals("$arg_versionsId"));
+
+ var query = (req.url).query;
+ var queryOffset = 0;
+ var queryMap = {};
+ addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
+ parseBool(n) {
+ if (n == "true") return true;
+ if (n == "false") return false;
+ if (n == null) return null;
+ throw new core.ArgumentError("Invalid boolean: $n");
+ }
+ if (query.length > 0) {
+ for (var part in query.split("&")) {
+ var keyvalue = part.split("=");
+ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
+ }
+ }
+ unittest.expect(queryMap["mask"].first, unittest.equals(arg_mask));
+
+
+ var h = {
+ "content-type" : "application/json; charset=utf-8",
+ };
+ 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) {
+ checkOperation(response);
+ })));
+ });
+
});
« no previous file with comments | « generated/googleapis_beta/pubspec.yaml ('k') | generated/googleapis_beta/test/appengine/v1beta5_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698