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

Unified Diff: generated/googleapis/test/appengine/v1_test.dart

Issue 2226653002: Api-roll 40: 2016-08-08 (Closed) Base URL: git@github.com:dart-lang/googleapis.git@master
Patch Set: Addressed review comments Created 4 years, 4 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
Index: generated/googleapis/test/appengine/v1_test.dart
diff --git a/generated/googleapis_beta/test/appengine/v1beta5_test.dart b/generated/googleapis/test/appengine/v1_test.dart
similarity index 91%
copy from generated/googleapis_beta/test/appengine/v1beta5_test.dart
copy to generated/googleapis/test/appengine/v1_test.dart
index 21b2d37025fd159294f90c1f0e64ae1967c684b3..4ef4512295c6bc5b0c23b413616cb66f147896da 100644
--- a/generated/googleapis_beta/test/appengine/v1beta5_test.dart
+++ b/generated/googleapis/test/appengine/v1_test.dart
@@ -1,4 +1,4 @@
-library googleapis_beta.appengine.v1beta5.test;
+library googleapis.appengine.v1.test;
import "dart:core" as core;
import "dart:collection" as collection;
@@ -9,7 +9,7 @@ import 'package:http/http.dart' as http;
import 'package:http/testing.dart' as http_testing;
import 'package:unittest/unittest.dart' as unittest;
-import 'package:googleapis_beta/appengine/v1beta5.dart' as api;
+import 'package:googleapis/appengine/v1.dart' as api;
class HttpServerMock extends http.BaseClient {
core.Function _callback;
@@ -97,14 +97,14 @@ checkApiEndpointHandler(api.ApiEndpointHandler o) {
buildCounterApiEndpointHandler--;
}
-buildUnnamed3691() {
+buildUnnamed454() {
var o = new core.List<api.UrlDispatchRule>();
o.add(buildUrlDispatchRule());
o.add(buildUrlDispatchRule());
return o;
}
-checkUnnamed3691(core.List<api.UrlDispatchRule> o) {
+checkUnnamed454(core.List<api.UrlDispatchRule> o) {
unittest.expect(o, unittest.hasLength(2));
checkUrlDispatchRule(o[0]);
checkUrlDispatchRule(o[1]);
@@ -120,9 +120,9 @@ buildApplication() {
o.defaultBucket = "foo";
o.defaultCookieExpiration = "foo";
o.defaultHostname = "foo";
- o.dispatchRules = buildUnnamed3691();
+ o.dispatchRules = buildUnnamed454();
o.id = "foo";
- o.location = "foo";
+ o.locationId = "foo";
o.name = "foo";
}
buildCounterApplication--;
@@ -137,9 +137,9 @@ 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'));
- checkUnnamed3691(o.dispatchRules);
+ checkUnnamed454(o.dispatchRules);
unittest.expect(o.id, unittest.equals('foo'));
- unittest.expect(o.location, unittest.equals('foo'));
+ unittest.expect(o.locationId, unittest.equals('foo'));
unittest.expect(o.name, unittest.equals('foo'));
}
buildCounterApplication--;
@@ -264,40 +264,27 @@ checkDebugInstanceRequest(api.DebugInstanceRequest o) {
buildCounterDebugInstanceRequest--;
}
-buildUnnamed3692() {
+buildUnnamed455() {
var o = new core.Map<core.String, api.FileInfo>();
o["x"] = buildFileInfo();
o["y"] = buildFileInfo();
return o;
}
-checkUnnamed3692(core.Map<core.String, api.FileInfo> o) {
+checkUnnamed455(core.Map<core.String, api.FileInfo> o) {
unittest.expect(o, unittest.hasLength(2));
checkFileInfo(o["x"]);
checkFileInfo(o["y"]);
}
-buildUnnamed3693() {
- var o = new core.List<api.SourceReference>();
- o.add(buildSourceReference());
- o.add(buildSourceReference());
- return o;
-}
-
-checkUnnamed3693(core.List<api.SourceReference> o) {
- unittest.expect(o, unittest.hasLength(2));
- checkSourceReference(o[0]);
- checkSourceReference(o[1]);
-}
-
core.int buildCounterDeployment = 0;
buildDeployment() {
var o = new api.Deployment();
buildCounterDeployment++;
if (buildCounterDeployment < 3) {
o.container = buildContainerInfo();
- o.files = buildUnnamed3692();
- o.sourceReferences = buildUnnamed3693();
+ o.files = buildUnnamed455();
+ o.zip = buildZipInfo();
}
buildCounterDeployment--;
return o;
@@ -307,8 +294,8 @@ checkDeployment(api.Deployment o) {
buildCounterDeployment++;
if (buildCounterDeployment < 3) {
checkContainerInfo(o.container);
- checkUnnamed3692(o.files);
- checkUnnamed3693(o.sourceReferences);
+ checkUnnamed455(o.files);
+ checkZipInfo(o.zip);
}
buildCounterDeployment--;
}
@@ -318,10 +305,10 @@ buildDiskUtilization() {
var o = new api.DiskUtilization();
buildCounterDiskUtilization++;
if (buildCounterDiskUtilization < 3) {
- o.targetReadBytesPerSec = 42;
- o.targetReadOpsPerSec = 42;
- o.targetWriteBytesPerSec = 42;
- o.targetWriteOpsPerSec = 42;
+ o.targetReadBytesPerSecond = 42;
+ o.targetReadOpsPerSecond = 42;
+ o.targetWriteBytesPerSecond = 42;
+ o.targetWriteOpsPerSecond = 42;
}
buildCounterDiskUtilization--;
return o;
@@ -330,10 +317,10 @@ buildDiskUtilization() {
checkDiskUtilization(api.DiskUtilization o) {
buildCounterDiskUtilization++;
if (buildCounterDiskUtilization < 3) {
- unittest.expect(o.targetReadBytesPerSec, unittest.equals(42));
- unittest.expect(o.targetReadOpsPerSec, unittest.equals(42));
- unittest.expect(o.targetWriteBytesPerSec, unittest.equals(42));
- unittest.expect(o.targetWriteOpsPerSec, unittest.equals(42));
+ unittest.expect(o.targetReadBytesPerSecond, unittest.equals(42));
+ unittest.expect(o.targetReadOpsPerSecond, unittest.equals(42));
+ unittest.expect(o.targetWriteBytesPerSecond, unittest.equals(42));
+ unittest.expect(o.targetWriteOpsPerSecond, unittest.equals(42));
}
buildCounterDiskUtilization--;
}
@@ -429,11 +416,11 @@ buildInstance() {
o.name = "foo";
o.qps = 42.0;
o.requests = 42;
- o.startTimestamp = "foo";
+ o.startTime = "foo";
+ o.vmDebugEnabled = true;
o.vmId = "foo";
o.vmName = "foo";
o.vmStatus = "foo";
- o.vmUnlocked = true;
o.vmZoneName = "foo";
}
buildCounterInstance--;
@@ -452,11 +439,11 @@ checkInstance(api.Instance o) {
unittest.expect(o.name, unittest.equals('foo'));
unittest.expect(o.qps, unittest.equals(42.0));
unittest.expect(o.requests, unittest.equals(42));
- unittest.expect(o.startTimestamp, unittest.equals('foo'));
+ unittest.expect(o.startTime, unittest.equals('foo'));
+ unittest.expect(o.vmDebugEnabled, unittest.isTrue);
unittest.expect(o.vmId, unittest.equals('foo'));
unittest.expect(o.vmName, unittest.equals('foo'));
unittest.expect(o.vmStatus, unittest.equals('foo'));
- unittest.expect(o.vmUnlocked, unittest.isTrue);
unittest.expect(o.vmZoneName, unittest.equals('foo'));
}
buildCounterInstance--;
@@ -483,14 +470,14 @@ checkLibrary(api.Library o) {
buildCounterLibrary--;
}
-buildUnnamed3694() {
+buildUnnamed456() {
var o = new core.List<api.Instance>();
o.add(buildInstance());
o.add(buildInstance());
return o;
}
-checkUnnamed3694(core.List<api.Instance> o) {
+checkUnnamed456(core.List<api.Instance> o) {
unittest.expect(o, unittest.hasLength(2));
checkInstance(o[0]);
checkInstance(o[1]);
@@ -501,7 +488,7 @@ buildListInstancesResponse() {
var o = new api.ListInstancesResponse();
buildCounterListInstancesResponse++;
if (buildCounterListInstancesResponse < 3) {
- o.instances = buildUnnamed3694();
+ o.instances = buildUnnamed456();
o.nextPageToken = "foo";
}
buildCounterListInstancesResponse--;
@@ -511,20 +498,20 @@ buildListInstancesResponse() {
checkListInstancesResponse(api.ListInstancesResponse o) {
buildCounterListInstancesResponse++;
if (buildCounterListInstancesResponse < 3) {
- checkUnnamed3694(o.instances);
+ checkUnnamed456(o.instances);
unittest.expect(o.nextPageToken, unittest.equals('foo'));
}
buildCounterListInstancesResponse--;
}
-buildUnnamed3695() {
+buildUnnamed457() {
var o = new core.List<api.Location>();
o.add(buildLocation());
o.add(buildLocation());
return o;
}
-checkUnnamed3695(core.List<api.Location> o) {
+checkUnnamed457(core.List<api.Location> o) {
unittest.expect(o, unittest.hasLength(2));
checkLocation(o[0]);
checkLocation(o[1]);
@@ -535,7 +522,7 @@ buildListLocationsResponse() {
var o = new api.ListLocationsResponse();
buildCounterListLocationsResponse++;
if (buildCounterListLocationsResponse < 3) {
- o.locations = buildUnnamed3695();
+ o.locations = buildUnnamed457();
o.nextPageToken = "foo";
}
buildCounterListLocationsResponse--;
@@ -545,20 +532,20 @@ buildListLocationsResponse() {
checkListLocationsResponse(api.ListLocationsResponse o) {
buildCounterListLocationsResponse++;
if (buildCounterListLocationsResponse < 3) {
- checkUnnamed3695(o.locations);
+ checkUnnamed457(o.locations);
unittest.expect(o.nextPageToken, unittest.equals('foo'));
}
buildCounterListLocationsResponse--;
}
-buildUnnamed3696() {
+buildUnnamed458() {
var o = new core.List<api.Operation>();
o.add(buildOperation());
o.add(buildOperation());
return o;
}
-checkUnnamed3696(core.List<api.Operation> o) {
+checkUnnamed458(core.List<api.Operation> o) {
unittest.expect(o, unittest.hasLength(2));
checkOperation(o[0]);
checkOperation(o[1]);
@@ -570,7 +557,7 @@ buildListOperationsResponse() {
buildCounterListOperationsResponse++;
if (buildCounterListOperationsResponse < 3) {
o.nextPageToken = "foo";
- o.operations = buildUnnamed3696();
+ o.operations = buildUnnamed458();
}
buildCounterListOperationsResponse--;
return o;
@@ -580,19 +567,19 @@ checkListOperationsResponse(api.ListOperationsResponse o) {
buildCounterListOperationsResponse++;
if (buildCounterListOperationsResponse < 3) {
unittest.expect(o.nextPageToken, unittest.equals('foo'));
- checkUnnamed3696(o.operations);
+ checkUnnamed458(o.operations);
}
buildCounterListOperationsResponse--;
}
-buildUnnamed3697() {
+buildUnnamed459() {
var o = new core.List<api.Service>();
o.add(buildService());
o.add(buildService());
return o;
}
-checkUnnamed3697(core.List<api.Service> o) {
+checkUnnamed459(core.List<api.Service> o) {
unittest.expect(o, unittest.hasLength(2));
checkService(o[0]);
checkService(o[1]);
@@ -604,7 +591,7 @@ buildListServicesResponse() {
buildCounterListServicesResponse++;
if (buildCounterListServicesResponse < 3) {
o.nextPageToken = "foo";
- o.services = buildUnnamed3697();
+ o.services = buildUnnamed459();
}
buildCounterListServicesResponse--;
return o;
@@ -614,19 +601,19 @@ checkListServicesResponse(api.ListServicesResponse o) {
buildCounterListServicesResponse++;
if (buildCounterListServicesResponse < 3) {
unittest.expect(o.nextPageToken, unittest.equals('foo'));
- checkUnnamed3697(o.services);
+ checkUnnamed459(o.services);
}
buildCounterListServicesResponse--;
}
-buildUnnamed3698() {
+buildUnnamed460() {
var o = new core.List<api.Version>();
o.add(buildVersion());
o.add(buildVersion());
return o;
}
-checkUnnamed3698(core.List<api.Version> o) {
+checkUnnamed460(core.List<api.Version> o) {
unittest.expect(o, unittest.hasLength(2));
checkVersion(o[0]);
checkVersion(o[1]);
@@ -638,7 +625,7 @@ buildListVersionsResponse() {
buildCounterListVersionsResponse++;
if (buildCounterListVersionsResponse < 3) {
o.nextPageToken = "foo";
- o.versions = buildUnnamed3698();
+ o.versions = buildUnnamed460();
}
buildCounterListVersionsResponse--;
return o;
@@ -648,32 +635,32 @@ checkListVersionsResponse(api.ListVersionsResponse o) {
buildCounterListVersionsResponse++;
if (buildCounterListVersionsResponse < 3) {
unittest.expect(o.nextPageToken, unittest.equals('foo'));
- checkUnnamed3698(o.versions);
+ checkUnnamed460(o.versions);
}
buildCounterListVersionsResponse--;
}
-buildUnnamed3699() {
+buildUnnamed461() {
var o = new core.Map<core.String, core.String>();
o["x"] = "foo";
o["y"] = "foo";
return o;
}
-checkUnnamed3699(core.Map<core.String, core.String> o) {
+checkUnnamed461(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'));
}
-buildUnnamed3700() {
+buildUnnamed462() {
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;
}
-checkUnnamed3700(core.Map<core.String, core.Object> o) {
+checkUnnamed462(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'));
@@ -684,8 +671,9 @@ buildLocation() {
var o = new api.Location();
buildCounterLocation++;
if (buildCounterLocation < 3) {
- o.labels = buildUnnamed3699();
- o.metadata = buildUnnamed3700();
+ o.labels = buildUnnamed461();
+ o.locationId = "foo";
+ o.metadata = buildUnnamed462();
o.name = "foo";
}
buildCounterLocation--;
@@ -695,8 +683,9 @@ buildLocation() {
checkLocation(api.Location o) {
buildCounterLocation++;
if (buildCounterLocation < 3) {
- checkUnnamed3699(o.labels);
- checkUnnamed3700(o.metadata);
+ checkUnnamed461(o.labels);
+ unittest.expect(o.locationId, unittest.equals('foo'));
+ checkUnnamed462(o.metadata);
unittest.expect(o.name, unittest.equals('foo'));
}
buildCounterLocation--;
@@ -707,6 +696,8 @@ buildLocationMetadata() {
var o = new api.LocationMetadata();
buildCounterLocationMetadata++;
if (buildCounterLocationMetadata < 3) {
+ o.flexibleEnvironmentAvailable = true;
+ o.standardEnvironmentAvailable = true;
}
buildCounterLocationMetadata--;
return o;
@@ -715,6 +706,8 @@ buildLocationMetadata() {
checkLocationMetadata(api.LocationMetadata o) {
buildCounterLocationMetadata++;
if (buildCounterLocationMetadata < 3) {
+ unittest.expect(o.flexibleEnvironmentAvailable, unittest.isTrue);
+ unittest.expect(o.standardEnvironmentAvailable, unittest.isTrue);
}
buildCounterLocationMetadata--;
}
@@ -738,14 +731,14 @@ checkManualScaling(api.ManualScaling o) {
buildCounterManualScaling--;
}
-buildUnnamed3701() {
+buildUnnamed463() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed3701(core.List<core.String> o) {
+checkUnnamed463(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'));
@@ -756,7 +749,7 @@ buildNetwork() {
var o = new api.Network();
buildCounterNetwork++;
if (buildCounterNetwork < 3) {
- o.forwardedPorts = buildUnnamed3701();
+ o.forwardedPorts = buildUnnamed463();
o.instanceTag = "foo";
o.name = "foo";
}
@@ -767,7 +760,7 @@ buildNetwork() {
checkNetwork(api.Network o) {
buildCounterNetwork++;
if (buildCounterNetwork < 3) {
- checkUnnamed3701(o.forwardedPorts);
+ checkUnnamed463(o.forwardedPorts);
unittest.expect(o.instanceTag, unittest.equals('foo'));
unittest.expect(o.name, unittest.equals('foo'));
}
@@ -779,10 +772,10 @@ buildNetworkUtilization() {
var o = new api.NetworkUtilization();
buildCounterNetworkUtilization++;
if (buildCounterNetworkUtilization < 3) {
- o.targetReceivedBytesPerSec = 42;
- o.targetReceivedPacketsPerSec = 42;
- o.targetSentBytesPerSec = 42;
- o.targetSentPacketsPerSec = 42;
+ o.targetReceivedBytesPerSecond = 42;
+ o.targetReceivedPacketsPerSecond = 42;
+ o.targetSentBytesPerSecond = 42;
+ o.targetSentPacketsPerSecond = 42;
}
buildCounterNetworkUtilization--;
return o;
@@ -791,35 +784,35 @@ buildNetworkUtilization() {
checkNetworkUtilization(api.NetworkUtilization o) {
buildCounterNetworkUtilization++;
if (buildCounterNetworkUtilization < 3) {
- unittest.expect(o.targetReceivedBytesPerSec, unittest.equals(42));
- unittest.expect(o.targetReceivedPacketsPerSec, unittest.equals(42));
- unittest.expect(o.targetSentBytesPerSec, unittest.equals(42));
- unittest.expect(o.targetSentPacketsPerSec, unittest.equals(42));
+ unittest.expect(o.targetReceivedBytesPerSecond, unittest.equals(42));
+ unittest.expect(o.targetReceivedPacketsPerSecond, unittest.equals(42));
+ unittest.expect(o.targetSentBytesPerSecond, unittest.equals(42));
+ unittest.expect(o.targetSentPacketsPerSecond, unittest.equals(42));
}
buildCounterNetworkUtilization--;
}
-buildUnnamed3702() {
+buildUnnamed464() {
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;
}
-checkUnnamed3702(core.Map<core.String, core.Object> o) {
+checkUnnamed464(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'));
}
-buildUnnamed3703() {
+buildUnnamed465() {
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;
}
-checkUnnamed3703(core.Map<core.String, core.Object> o) {
+checkUnnamed465(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'));
@@ -832,9 +825,9 @@ buildOperation() {
if (buildCounterOperation < 3) {
o.done = true;
o.error = buildStatus();
- o.metadata = buildUnnamed3702();
+ o.metadata = buildUnnamed464();
o.name = "foo";
- o.response = buildUnnamed3703();
+ o.response = buildUnnamed465();
}
buildCounterOperation--;
return o;
@@ -845,9 +838,9 @@ checkOperation(api.Operation o) {
if (buildCounterOperation < 3) {
unittest.expect(o.done, unittest.isTrue);
checkStatus(o.error);
- checkUnnamed3702(o.metadata);
+ checkUnnamed464(o.metadata);
unittest.expect(o.name, unittest.equals('foo'));
- checkUnnamed3703(o.response);
+ checkUnnamed465(o.response);
}
buildCounterOperation--;
}
@@ -935,13 +928,30 @@ checkOperationMetadataV1Beta5(api.OperationMetadataV1Beta5 o) {
buildCounterOperationMetadataV1Beta5--;
}
+core.int buildCounterRepairApplicationRequest = 0;
+buildRepairApplicationRequest() {
+ var o = new api.RepairApplicationRequest();
+ buildCounterRepairApplicationRequest++;
+ if (buildCounterRepairApplicationRequest < 3) {
+ }
+ buildCounterRepairApplicationRequest--;
+ return o;
+}
+
+checkRepairApplicationRequest(api.RepairApplicationRequest o) {
+ buildCounterRepairApplicationRequest++;
+ if (buildCounterRepairApplicationRequest < 3) {
+ }
+ buildCounterRepairApplicationRequest--;
+}
+
core.int buildCounterRequestUtilization = 0;
buildRequestUtilization() {
var o = new api.RequestUtilization();
buildCounterRequestUtilization++;
if (buildCounterRequestUtilization < 3) {
o.targetConcurrentRequests = 42;
- o.targetRequestCountPerSec = 42;
+ o.targetRequestCountPerSecond = 42;
}
buildCounterRequestUtilization--;
return o;
@@ -951,7 +961,7 @@ checkRequestUtilization(api.RequestUtilization o) {
buildCounterRequestUtilization++;
if (buildCounterRequestUtilization < 3) {
unittest.expect(o.targetConcurrentRequests, unittest.equals(42));
- unittest.expect(o.targetRequestCountPerSec, unittest.equals(42));
+ unittest.expect(o.targetRequestCountPerSecond, unittest.equals(42));
}
buildCounterRequestUtilization--;
}
@@ -1021,35 +1031,14 @@ checkService(api.Service o) {
buildCounterService--;
}
-core.int buildCounterSourceReference = 0;
-buildSourceReference() {
- var o = new api.SourceReference();
- buildCounterSourceReference++;
- if (buildCounterSourceReference < 3) {
- o.repository = "foo";
- o.revisionId = "foo";
- }
- buildCounterSourceReference--;
- return o;
-}
-
-checkSourceReference(api.SourceReference o) {
- buildCounterSourceReference++;
- if (buildCounterSourceReference < 3) {
- unittest.expect(o.repository, unittest.equals('foo'));
- unittest.expect(o.revisionId, unittest.equals('foo'));
- }
- buildCounterSourceReference--;
-}
-
-buildUnnamed3704() {
+buildUnnamed466() {
var o = new core.Map<core.String, core.String>();
o["x"] = "foo";
o["y"] = "foo";
return o;
}
-checkUnnamed3704(core.Map<core.String, core.String> o) {
+checkUnnamed466(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'));
@@ -1062,7 +1051,7 @@ buildStaticFilesHandler() {
if (buildCounterStaticFilesHandler < 3) {
o.applicationReadable = true;
o.expiration = "foo";
- o.httpHeaders = buildUnnamed3704();
+ o.httpHeaders = buildUnnamed466();
o.mimeType = "foo";
o.path = "foo";
o.requireMatchingFile = true;
@@ -1077,7 +1066,7 @@ checkStaticFilesHandler(api.StaticFilesHandler o) {
if (buildCounterStaticFilesHandler < 3) {
unittest.expect(o.applicationReadable, unittest.isTrue);
unittest.expect(o.expiration, unittest.equals('foo'));
- checkUnnamed3704(o.httpHeaders);
+ checkUnnamed466(o.httpHeaders);
unittest.expect(o.mimeType, unittest.equals('foo'));
unittest.expect(o.path, unittest.equals('foo'));
unittest.expect(o.requireMatchingFile, unittest.isTrue);
@@ -1086,30 +1075,30 @@ checkStaticFilesHandler(api.StaticFilesHandler o) {
buildCounterStaticFilesHandler--;
}
-buildUnnamed3705() {
+buildUnnamed467() {
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;
}
-checkUnnamed3705(core.Map<core.String, core.Object> o) {
+checkUnnamed467(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'));
}
-buildUnnamed3706() {
+buildUnnamed468() {
var o = new core.List<core.Map<core.String, core.Object>>();
- o.add(buildUnnamed3705());
- o.add(buildUnnamed3705());
+ o.add(buildUnnamed467());
+ o.add(buildUnnamed467());
return o;
}
-checkUnnamed3706(core.List<core.Map<core.String, core.Object>> o) {
+checkUnnamed468(core.List<core.Map<core.String, core.Object>> o) {
unittest.expect(o, unittest.hasLength(2));
- checkUnnamed3705(o[0]);
- checkUnnamed3705(o[1]);
+ checkUnnamed467(o[0]);
+ checkUnnamed467(o[1]);
}
core.int buildCounterStatus = 0;
@@ -1118,7 +1107,7 @@ buildStatus() {
buildCounterStatus++;
if (buildCounterStatus < 3) {
o.code = 42;
- o.details = buildUnnamed3706();
+ o.details = buildUnnamed468();
o.message = "foo";
}
buildCounterStatus--;
@@ -1129,20 +1118,20 @@ checkStatus(api.Status o) {
buildCounterStatus++;
if (buildCounterStatus < 3) {
unittest.expect(o.code, unittest.equals(42));
- checkUnnamed3706(o.details);
+ checkUnnamed468(o.details);
unittest.expect(o.message, unittest.equals('foo'));
}
buildCounterStatus--;
}
-buildUnnamed3707() {
+buildUnnamed469() {
var o = new core.Map<core.String, core.double>();
o["x"] = 42.0;
o["y"] = 42.0;
return o;
}
-checkUnnamed3707(core.Map<core.String, core.double> o) {
+checkUnnamed469(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));
@@ -1153,7 +1142,7 @@ buildTrafficSplit() {
var o = new api.TrafficSplit();
buildCounterTrafficSplit++;
if (buildCounterTrafficSplit < 3) {
- o.allocations = buildUnnamed3707();
+ o.allocations = buildUnnamed469();
o.shardBy = "foo";
}
buildCounterTrafficSplit--;
@@ -1163,7 +1152,7 @@ buildTrafficSplit() {
checkTrafficSplit(api.TrafficSplit o) {
buildCounterTrafficSplit++;
if (buildCounterTrafficSplit < 3) {
- checkUnnamed3707(o.allocations);
+ checkUnnamed469(o.allocations);
unittest.expect(o.shardBy, unittest.equals('foo'));
}
buildCounterTrafficSplit--;
@@ -1225,79 +1214,79 @@ checkUrlMap(api.UrlMap o) {
buildCounterUrlMap--;
}
-buildUnnamed3708() {
+buildUnnamed470() {
var o = new core.Map<core.String, core.String>();
o["x"] = "foo";
o["y"] = "foo";
return o;
}
-checkUnnamed3708(core.Map<core.String, core.String> o) {
+checkUnnamed470(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'));
}
-buildUnnamed3709() {
+buildUnnamed471() {
var o = new core.Map<core.String, core.String>();
o["x"] = "foo";
o["y"] = "foo";
return o;
}
-checkUnnamed3709(core.Map<core.String, core.String> o) {
+checkUnnamed471(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'));
}
-buildUnnamed3710() {
+buildUnnamed472() {
var o = new core.List<api.ErrorHandler>();
o.add(buildErrorHandler());
o.add(buildErrorHandler());
return o;
}
-checkUnnamed3710(core.List<api.ErrorHandler> o) {
+checkUnnamed472(core.List<api.ErrorHandler> o) {
unittest.expect(o, unittest.hasLength(2));
checkErrorHandler(o[0]);
checkErrorHandler(o[1]);
}
-buildUnnamed3711() {
+buildUnnamed473() {
var o = new core.List<api.UrlMap>();
o.add(buildUrlMap());
o.add(buildUrlMap());
return o;
}
-checkUnnamed3711(core.List<api.UrlMap> o) {
+checkUnnamed473(core.List<api.UrlMap> o) {
unittest.expect(o, unittest.hasLength(2));
checkUrlMap(o[0]);
checkUrlMap(o[1]);
}
-buildUnnamed3712() {
+buildUnnamed474() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed3712(core.List<core.String> o) {
+checkUnnamed474(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'));
}
-buildUnnamed3713() {
+buildUnnamed475() {
var o = new core.List<api.Library>();
o.add(buildLibrary());
o.add(buildLibrary());
return o;
}
-checkUnnamed3713(core.List<api.Library> o) {
+checkUnnamed475(core.List<api.Library> o) {
unittest.expect(o, unittest.hasLength(2));
checkLibrary(o[0]);
checkLibrary(o[1]);
@@ -1311,21 +1300,21 @@ buildVersion() {
o.apiConfig = buildApiConfigHandler();
o.automaticScaling = buildAutomaticScaling();
o.basicScaling = buildBasicScaling();
- o.betaSettings = buildUnnamed3708();
- o.creationTime = "foo";
+ o.betaSettings = buildUnnamed470();
+ o.createTime = "foo";
+ o.createdBy = "foo";
o.defaultExpiration = "foo";
- o.deployer = "foo";
o.deployment = buildDeployment();
o.diskUsageBytes = "foo";
o.env = "foo";
- o.envVariables = buildUnnamed3709();
- o.errorHandlers = buildUnnamed3710();
- o.handlers = buildUnnamed3711();
+ o.envVariables = buildUnnamed471();
+ o.errorHandlers = buildUnnamed472();
+ o.handlers = buildUnnamed473();
o.healthCheck = buildHealthCheck();
o.id = "foo";
- o.inboundServices = buildUnnamed3712();
+ o.inboundServices = buildUnnamed474();
o.instanceClass = "foo";
- o.libraries = buildUnnamed3713();
+ o.libraries = buildUnnamed475();
o.manualScaling = buildManualScaling();
o.name = "foo";
o.network = buildNetwork();
@@ -1334,6 +1323,7 @@ buildVersion() {
o.runtime = "foo";
o.servingStatus = "foo";
o.threadsafe = true;
+ o.versionUrl = "foo";
o.vm = true;
}
buildCounterVersion--;
@@ -1346,21 +1336,21 @@ checkVersion(api.Version o) {
checkApiConfigHandler(o.apiConfig);
checkAutomaticScaling(o.automaticScaling);
checkBasicScaling(o.basicScaling);
- checkUnnamed3708(o.betaSettings);
- unittest.expect(o.creationTime, unittest.equals('foo'));
+ checkUnnamed470(o.betaSettings);
+ unittest.expect(o.createTime, unittest.equals('foo'));
+ unittest.expect(o.createdBy, unittest.equals('foo'));
unittest.expect(o.defaultExpiration, unittest.equals('foo'));
- unittest.expect(o.deployer, unittest.equals('foo'));
checkDeployment(o.deployment);
unittest.expect(o.diskUsageBytes, unittest.equals('foo'));
unittest.expect(o.env, unittest.equals('foo'));
- checkUnnamed3709(o.envVariables);
- checkUnnamed3710(o.errorHandlers);
- checkUnnamed3711(o.handlers);
+ checkUnnamed471(o.envVariables);
+ checkUnnamed472(o.errorHandlers);
+ checkUnnamed473(o.handlers);
checkHealthCheck(o.healthCheck);
unittest.expect(o.id, unittest.equals('foo'));
- checkUnnamed3712(o.inboundServices);
+ checkUnnamed474(o.inboundServices);
unittest.expect(o.instanceClass, unittest.equals('foo'));
- checkUnnamed3713(o.libraries);
+ checkUnnamed475(o.libraries);
checkManualScaling(o.manualScaling);
unittest.expect(o.name, unittest.equals('foo'));
checkNetwork(o.network);
@@ -1369,11 +1359,33 @@ checkVersion(api.Version o) {
unittest.expect(o.runtime, unittest.equals('foo'));
unittest.expect(o.servingStatus, unittest.equals('foo'));
unittest.expect(o.threadsafe, unittest.isTrue);
+ unittest.expect(o.versionUrl, unittest.equals('foo'));
unittest.expect(o.vm, unittest.isTrue);
}
buildCounterVersion--;
}
+core.int buildCounterZipInfo = 0;
+buildZipInfo() {
+ var o = new api.ZipInfo();
+ buildCounterZipInfo++;
+ if (buildCounterZipInfo < 3) {
+ o.filesCount = 42;
+ o.sourceUrl = "foo";
+ }
+ buildCounterZipInfo--;
+ return o;
+}
+
+checkZipInfo(api.ZipInfo o) {
+ buildCounterZipInfo++;
+ if (buildCounterZipInfo < 3) {
+ unittest.expect(o.filesCount, unittest.equals(42));
+ unittest.expect(o.sourceUrl, unittest.equals('foo'));
+ }
+ buildCounterZipInfo--;
+}
+
main() {
unittest.group("obj-schema-ApiConfigHandler", () {
@@ -1637,6 +1649,15 @@ main() {
});
+ unittest.group("obj-schema-RepairApplicationRequest", () {
+ unittest.test("to-json--from-json", () {
+ var o = buildRepairApplicationRequest();
+ var od = new api.RepairApplicationRequest.fromJson(o.toJson());
+ checkRepairApplicationRequest(od);
+ });
+ });
+
+
unittest.group("obj-schema-RequestUtilization", () {
unittest.test("to-json--from-json", () {
var o = buildRequestUtilization();
@@ -1673,15 +1694,6 @@ main() {
});
- unittest.group("obj-schema-SourceReference", () {
- unittest.test("to-json--from-json", () {
- var o = buildSourceReference();
- var od = new api.SourceReference.fromJson(o.toJson());
- checkSourceReference(od);
- });
- });
-
-
unittest.group("obj-schema-StaticFilesHandler", () {
unittest.test("to-json--from-json", () {
var o = buildStaticFilesHandler();
@@ -1736,24 +1748,33 @@ main() {
});
+ unittest.group("obj-schema-ZipInfo", () {
+ unittest.test("to-json--from-json", () {
+ var o = buildZipInfo();
+ var od = new api.ZipInfo.fromJson(o.toJson());
+ checkZipInfo(od);
+ });
+ });
+
+
unittest.group("resource-AppsResourceApi", () {
- unittest.test("method--create", () {
+ unittest.test("method--get", () {
var mock = new HttpServerMock();
api.AppsResourceApi res = new api.AppengineApi(mock).apps;
- var arg_request = buildApplication();
+ var arg_appsId = "foo";
mock.register(unittest.expectAsync((http.BaseRequest req, json) {
- var obj = new api.Application.fromJson(json);
- checkApplication(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 + 12), unittest.equals("v1beta5/apps"));
- pathOffset += 12;
+ unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equals("v1/apps/"));
+ pathOffset += 8;
+ subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
+ pathOffset = path.length;
+ unittest.expect(subPart, unittest.equals("$arg_appsId"));
var query = (req.url).query;
var queryOffset = 0;
@@ -1776,32 +1797,39 @@ main() {
var h = {
"content-type" : "application/json; charset=utf-8",
};
- var resp = convert.JSON.encode(buildOperation());
+ var resp = convert.JSON.encode(buildApplication());
return new async.Future.value(stringResponse(200, h, resp));
}), true);
- res.create(arg_request).then(unittest.expectAsync(((api.Operation response) {
- checkOperation(response);
+ res.get(arg_appsId).then(unittest.expectAsync(((api.Application response) {
+ checkApplication(response);
})));
});
- unittest.test("method--get", () {
+ unittest.test("method--repair", () {
var mock = new HttpServerMock();
api.AppsResourceApi res = new api.AppengineApi(mock).apps;
+ var arg_request = buildRepairApplicationRequest();
var arg_appsId = "foo";
- var arg_ensureResourcesExist = true;
mock.register(unittest.expectAsync((http.BaseRequest req, json) {
+ var obj = new api.RepairApplicationRequest.fromJson(json);
+ checkRepairApplicationRequest(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("v1beta5/apps/"));
- pathOffset += 13;
- subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
- pathOffset = path.length;
+ unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equals("v1/apps/"));
+ pathOffset += 8;
+ index = path.indexOf(":repair", 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 + 7), unittest.equals(":repair"));
+ pathOffset += 7;
var query = (req.url).query;
var queryOffset = 0;
@@ -1819,17 +1847,16 @@ main() {
addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
}
}
- unittest.expect(queryMap["ensureResourcesExist"].first, unittest.equals("$arg_ensureResourcesExist"));
var h = {
"content-type" : "application/json; charset=utf-8",
};
- var resp = convert.JSON.encode(buildApplication());
+ var resp = convert.JSON.encode(buildOperation());
return new async.Future.value(stringResponse(200, h, resp));
}), true);
- res.get(arg_appsId, ensureResourcesExist: arg_ensureResourcesExist).then(unittest.expectAsync(((api.Application response) {
- checkApplication(response);
+ res.repair(arg_request, arg_appsId).then(unittest.expectAsync(((api.Operation response) {
+ checkOperation(response);
})));
});
@@ -1850,8 +1877,8 @@ main() {
var subPart;
unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
pathOffset += 1;
- unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("v1beta5/apps/"));
- pathOffset += 13;
+ unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equals("v1/apps/"));
+ pathOffset += 8;
index = path.indexOf("/locations/", pathOffset);
unittest.expect(index >= 0, unittest.isTrue);
subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
@@ -1907,8 +1934,8 @@ main() {
var subPart;
unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
pathOffset += 1;
- unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("v1beta5/apps/"));
- pathOffset += 13;
+ unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equals("v1/apps/"));
+ pathOffset += 8;
index = path.indexOf("/locations", pathOffset);
unittest.expect(index >= 0, unittest.isTrue);
subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
@@ -1966,8 +1993,8 @@ main() {
var subPart;
unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
pathOffset += 1;
- unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("v1beta5/apps/"));
- pathOffset += 13;
+ unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equals("v1/apps/"));
+ pathOffset += 8;
index = path.indexOf("/operations/", pathOffset);
unittest.expect(index >= 0, unittest.isTrue);
subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
@@ -2023,8 +2050,8 @@ main() {
var subPart;
unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
pathOffset += 1;
- unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("v1beta5/apps/"));
- pathOffset += 13;
+ unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equals("v1/apps/"));
+ pathOffset += 8;
index = path.indexOf("/operations", pathOffset);
unittest.expect(index >= 0, unittest.isTrue);
subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
@@ -2082,8 +2109,8 @@ main() {
var subPart;
unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
pathOffset += 1;
- unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("v1beta5/apps/"));
- pathOffset += 13;
+ unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equals("v1/apps/"));
+ pathOffset += 8;
index = path.indexOf("/services/", pathOffset);
unittest.expect(index >= 0, unittest.isTrue);
subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
@@ -2137,8 +2164,8 @@ main() {
var subPart;
unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
pathOffset += 1;
- unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("v1beta5/apps/"));
- pathOffset += 13;
+ unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equals("v1/apps/"));
+ pathOffset += 8;
index = path.indexOf("/services/", pathOffset);
unittest.expect(index >= 0, unittest.isTrue);
subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
@@ -2193,8 +2220,8 @@ main() {
var subPart;
unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
pathOffset += 1;
- unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("v1beta5/apps/"));
- pathOffset += 13;
+ unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equals("v1/apps/"));
+ pathOffset += 8;
index = path.indexOf("/services", pathOffset);
unittest.expect(index >= 0, unittest.isTrue);
subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
@@ -2241,7 +2268,7 @@ main() {
var arg_request = buildService();
var arg_appsId = "foo";
var arg_servicesId = "foo";
- var arg_mask = "foo";
+ var arg_updateMask = "foo";
var arg_migrateTraffic = true;
mock.register(unittest.expectAsync((http.BaseRequest req, json) {
var obj = new api.Service.fromJson(json);
@@ -2253,8 +2280,8 @@ main() {
var subPart;
unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
pathOffset += 1;
- unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("v1beta5/apps/"));
- pathOffset += 13;
+ unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equals("v1/apps/"));
+ pathOffset += 8;
index = path.indexOf("/services/", pathOffset);
unittest.expect(index >= 0, unittest.isTrue);
subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
@@ -2282,7 +2309,7 @@ main() {
addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
}
}
- unittest.expect(queryMap["mask"].first, unittest.equals(arg_mask));
+ unittest.expect(queryMap["updateMask"].first, unittest.equals(arg_updateMask));
unittest.expect(queryMap["migrateTraffic"].first, unittest.equals("$arg_migrateTraffic"));
@@ -2292,7 +2319,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_servicesId, mask: arg_mask, migrateTraffic: arg_migrateTraffic).then(unittest.expectAsync(((api.Operation response) {
+ res.patch(arg_request, arg_appsId, arg_servicesId, updateMask: arg_updateMask, migrateTraffic: arg_migrateTraffic).then(unittest.expectAsync(((api.Operation response) {
checkOperation(response);
})));
});
@@ -2318,8 +2345,8 @@ main() {
var subPart;
unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
pathOffset += 1;
- unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("v1beta5/apps/"));
- pathOffset += 13;
+ unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equals("v1/apps/"));
+ pathOffset += 8;
index = path.indexOf("/services/", pathOffset);
unittest.expect(index >= 0, unittest.isTrue);
subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
@@ -2378,8 +2405,8 @@ main() {
var subPart;
unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
pathOffset += 1;
- unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("v1beta5/apps/"));
- pathOffset += 13;
+ unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equals("v1/apps/"));
+ pathOffset += 8;
index = path.indexOf("/services/", pathOffset);
unittest.expect(index >= 0, unittest.isTrue);
subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
@@ -2442,8 +2469,8 @@ main() {
var subPart;
unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
pathOffset += 1;
- unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("v1beta5/apps/"));
- pathOffset += 13;
+ unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equals("v1/apps/"));
+ pathOffset += 8;
index = path.indexOf("/services/", pathOffset);
unittest.expect(index >= 0, unittest.isTrue);
subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
@@ -2508,8 +2535,8 @@ main() {
var subPart;
unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
pathOffset += 1;
- unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("v1beta5/apps/"));
- pathOffset += 13;
+ unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equals("v1/apps/"));
+ pathOffset += 8;
index = path.indexOf("/services/", pathOffset);
unittest.expect(index >= 0, unittest.isTrue);
subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
@@ -2565,7 +2592,7 @@ main() {
var arg_appsId = "foo";
var arg_servicesId = "foo";
var arg_versionsId = "foo";
- var arg_mask = "foo";
+ var arg_updateMask = "foo";
mock.register(unittest.expectAsync((http.BaseRequest req, json) {
var obj = new api.Version.fromJson(json);
checkVersion(obj);
@@ -2576,8 +2603,8 @@ main() {
var subPart;
unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
pathOffset += 1;
- unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("v1beta5/apps/"));
- pathOffset += 13;
+ unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equals("v1/apps/"));
+ pathOffset += 8;
index = path.indexOf("/services/", pathOffset);
unittest.expect(index >= 0, unittest.isTrue);
subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
@@ -2612,7 +2639,7 @@ main() {
addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
}
}
- unittest.expect(queryMap["mask"].first, unittest.equals(arg_mask));
+ unittest.expect(queryMap["updateMask"].first, unittest.equals(arg_updateMask));
var h = {
@@ -2621,7 +2648,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_servicesId, arg_versionsId, mask: arg_mask).then(unittest.expectAsync(((api.Operation response) {
+ res.patch(arg_request, arg_appsId, arg_servicesId, arg_versionsId, updateMask: arg_updateMask).then(unittest.expectAsync(((api.Operation response) {
checkOperation(response);
})));
});
@@ -2649,8 +2676,8 @@ main() {
var subPart;
unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
pathOffset += 1;
- unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("v1beta5/apps/"));
- pathOffset += 13;
+ unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equals("v1/apps/"));
+ pathOffset += 8;
index = path.indexOf("/services/", pathOffset);
unittest.expect(index >= 0, unittest.isTrue);
subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
@@ -2724,8 +2751,8 @@ main() {
var subPart;
unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
pathOffset += 1;
- unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("v1beta5/apps/"));
- pathOffset += 13;
+ unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equals("v1/apps/"));
+ pathOffset += 8;
index = path.indexOf("/services/", pathOffset);
unittest.expect(index >= 0, unittest.isTrue);
subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
@@ -2795,8 +2822,8 @@ main() {
var subPart;
unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
pathOffset += 1;
- unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("v1beta5/apps/"));
- pathOffset += 13;
+ unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equals("v1/apps/"));
+ pathOffset += 8;
index = path.indexOf("/services/", pathOffset);
unittest.expect(index >= 0, unittest.isTrue);
subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
@@ -2867,8 +2894,8 @@ main() {
var subPart;
unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
pathOffset += 1;
- unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("v1beta5/apps/"));
- pathOffset += 13;
+ unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equals("v1/apps/"));
+ pathOffset += 8;
index = path.indexOf("/services/", pathOffset);
unittest.expect(index >= 0, unittest.isTrue);
subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
« no previous file with comments | « generated/googleapis/test/androidpublisher/v2_test.dart ('k') | generated/googleapis/test/appsactivity/v1_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698