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

Side by Side Diff: generated/googleapis/test/container/v1_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 unified diff | Download patch
OLDNEW
1 library googleapis.container.v1.test; 1 library googleapis.container.v1.test;
2 2
3 import "dart:core" as core; 3 import "dart:core" as core;
4 import "dart:collection" as collection; 4 import "dart:collection" as collection;
5 import "dart:async" as async; 5 import "dart:async" as async;
6 import "dart:convert" as convert; 6 import "dart:convert" as convert;
7 7
8 import 'package:http/http.dart' as http; 8 import 'package:http/http.dart' as http;
9 import 'package:http/testing.dart' as http_testing; 9 import 'package:http/testing.dart' as http_testing;
10 import 'package:unittest/unittest.dart' as unittest; 10 import 'package:unittest/unittest.dart' as unittest;
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 } 44 }
45 } 45 }
46 } 46 }
47 47
48 http.StreamedResponse stringResponse( 48 http.StreamedResponse stringResponse(
49 core.int status, core.Map headers, core.String body) { 49 core.int status, core.Map headers, core.String body) {
50 var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); 50 var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]);
51 return new http.StreamedResponse(stream, status, headers: headers); 51 return new http.StreamedResponse(stream, status, headers: headers);
52 } 52 }
53 53
54 buildUnnamed1834() { 54 buildUnnamed2146() {
55 var o = new core.List<core.String>(); 55 var o = new core.List<core.String>();
56 o.add("foo"); 56 o.add("foo");
57 o.add("foo"); 57 o.add("foo");
58 return o; 58 return o;
59 } 59 }
60 60
61 checkUnnamed1834(core.List<core.String> o) { 61 checkUnnamed2146(core.List<core.String> o) {
62 unittest.expect(o, unittest.hasLength(2)); 62 unittest.expect(o, unittest.hasLength(2));
63 unittest.expect(o[0], unittest.equals('foo')); 63 unittest.expect(o[0], unittest.equals('foo'));
64 unittest.expect(o[1], unittest.equals('foo')); 64 unittest.expect(o[1], unittest.equals('foo'));
65 } 65 }
66 66
67 core.int buildCounterCluster = 0; 67 core.int buildCounterCluster = 0;
68 buildCluster() { 68 buildCluster() {
69 var o = new api.Cluster(); 69 var o = new api.Cluster();
70 buildCounterCluster++; 70 buildCounterCluster++;
71 if (buildCounterCluster < 3) { 71 if (buildCounterCluster < 3) {
72 o.clusterIpv4Cidr = "foo"; 72 o.clusterIpv4Cidr = "foo";
73 o.createTime = "foo"; 73 o.createTime = "foo";
74 o.currentMasterVersion = "foo"; 74 o.currentMasterVersion = "foo";
75 o.currentNodeVersion = "foo"; 75 o.currentNodeVersion = "foo";
76 o.description = "foo"; 76 o.description = "foo";
77 o.endpoint = "foo"; 77 o.endpoint = "foo";
78 o.initialClusterVersion = "foo"; 78 o.initialClusterVersion = "foo";
79 o.initialNodeCount = 42; 79 o.initialNodeCount = 42;
80 o.instanceGroupUrls = buildUnnamed1834(); 80 o.instanceGroupUrls = buildUnnamed2146();
81 o.loggingService = "foo"; 81 o.loggingService = "foo";
82 o.masterAuth = buildMasterAuth(); 82 o.masterAuth = buildMasterAuth();
83 o.monitoringService = "foo"; 83 o.monitoringService = "foo";
84 o.name = "foo"; 84 o.name = "foo";
85 o.network = "foo"; 85 o.network = "foo";
86 o.nodeConfig = buildNodeConfig(); 86 o.nodeConfig = buildNodeConfig();
87 o.nodeIpv4CidrSize = 42; 87 o.nodeIpv4CidrSize = 42;
88 o.selfLink = "foo"; 88 o.selfLink = "foo";
89 o.servicesIpv4Cidr = "foo"; 89 o.servicesIpv4Cidr = "foo";
90 o.status = "foo"; 90 o.status = "foo";
91 o.statusMessage = "foo"; 91 o.statusMessage = "foo";
92 o.zone = "foo"; 92 o.zone = "foo";
93 } 93 }
94 buildCounterCluster--; 94 buildCounterCluster--;
95 return o; 95 return o;
96 } 96 }
97 97
98 checkCluster(api.Cluster o) { 98 checkCluster(api.Cluster o) {
99 buildCounterCluster++; 99 buildCounterCluster++;
100 if (buildCounterCluster < 3) { 100 if (buildCounterCluster < 3) {
101 unittest.expect(o.clusterIpv4Cidr, unittest.equals('foo')); 101 unittest.expect(o.clusterIpv4Cidr, unittest.equals('foo'));
102 unittest.expect(o.createTime, unittest.equals('foo')); 102 unittest.expect(o.createTime, unittest.equals('foo'));
103 unittest.expect(o.currentMasterVersion, unittest.equals('foo')); 103 unittest.expect(o.currentMasterVersion, unittest.equals('foo'));
104 unittest.expect(o.currentNodeVersion, unittest.equals('foo')); 104 unittest.expect(o.currentNodeVersion, unittest.equals('foo'));
105 unittest.expect(o.description, unittest.equals('foo')); 105 unittest.expect(o.description, unittest.equals('foo'));
106 unittest.expect(o.endpoint, unittest.equals('foo')); 106 unittest.expect(o.endpoint, unittest.equals('foo'));
107 unittest.expect(o.initialClusterVersion, unittest.equals('foo')); 107 unittest.expect(o.initialClusterVersion, unittest.equals('foo'));
108 unittest.expect(o.initialNodeCount, unittest.equals(42)); 108 unittest.expect(o.initialNodeCount, unittest.equals(42));
109 checkUnnamed1834(o.instanceGroupUrls); 109 checkUnnamed2146(o.instanceGroupUrls);
110 unittest.expect(o.loggingService, unittest.equals('foo')); 110 unittest.expect(o.loggingService, unittest.equals('foo'));
111 checkMasterAuth(o.masterAuth); 111 checkMasterAuth(o.masterAuth);
112 unittest.expect(o.monitoringService, unittest.equals('foo')); 112 unittest.expect(o.monitoringService, unittest.equals('foo'));
113 unittest.expect(o.name, unittest.equals('foo')); 113 unittest.expect(o.name, unittest.equals('foo'));
114 unittest.expect(o.network, unittest.equals('foo')); 114 unittest.expect(o.network, unittest.equals('foo'));
115 checkNodeConfig(o.nodeConfig); 115 checkNodeConfig(o.nodeConfig);
116 unittest.expect(o.nodeIpv4CidrSize, unittest.equals(42)); 116 unittest.expect(o.nodeIpv4CidrSize, unittest.equals(42));
117 unittest.expect(o.selfLink, unittest.equals('foo')); 117 unittest.expect(o.selfLink, unittest.equals('foo'));
118 unittest.expect(o.servicesIpv4Cidr, unittest.equals('foo')); 118 unittest.expect(o.servicesIpv4Cidr, unittest.equals('foo'));
119 unittest.expect(o.status, unittest.equals('foo')); 119 unittest.expect(o.status, unittest.equals('foo'));
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 } 154 }
155 155
156 checkCreateClusterRequest(api.CreateClusterRequest o) { 156 checkCreateClusterRequest(api.CreateClusterRequest o) {
157 buildCounterCreateClusterRequest++; 157 buildCounterCreateClusterRequest++;
158 if (buildCounterCreateClusterRequest < 3) { 158 if (buildCounterCreateClusterRequest < 3) {
159 checkCluster(o.cluster); 159 checkCluster(o.cluster);
160 } 160 }
161 buildCounterCreateClusterRequest--; 161 buildCounterCreateClusterRequest--;
162 } 162 }
163 163
164 buildUnnamed1835() { 164 buildUnnamed2147() {
165 var o = new core.List<api.Cluster>(); 165 var o = new core.List<api.Cluster>();
166 o.add(buildCluster()); 166 o.add(buildCluster());
167 o.add(buildCluster()); 167 o.add(buildCluster());
168 return o; 168 return o;
169 } 169 }
170 170
171 checkUnnamed1835(core.List<api.Cluster> o) { 171 checkUnnamed2147(core.List<api.Cluster> o) {
172 unittest.expect(o, unittest.hasLength(2)); 172 unittest.expect(o, unittest.hasLength(2));
173 checkCluster(o[0]); 173 checkCluster(o[0]);
174 checkCluster(o[1]); 174 checkCluster(o[1]);
175 } 175 }
176 176
177 core.int buildCounterListClustersResponse = 0; 177 core.int buildCounterListClustersResponse = 0;
178 buildListClustersResponse() { 178 buildListClustersResponse() {
179 var o = new api.ListClustersResponse(); 179 var o = new api.ListClustersResponse();
180 buildCounterListClustersResponse++; 180 buildCounterListClustersResponse++;
181 if (buildCounterListClustersResponse < 3) { 181 if (buildCounterListClustersResponse < 3) {
182 o.clusters = buildUnnamed1835(); 182 o.clusters = buildUnnamed2147();
183 } 183 }
184 buildCounterListClustersResponse--; 184 buildCounterListClustersResponse--;
185 return o; 185 return o;
186 } 186 }
187 187
188 checkListClustersResponse(api.ListClustersResponse o) { 188 checkListClustersResponse(api.ListClustersResponse o) {
189 buildCounterListClustersResponse++; 189 buildCounterListClustersResponse++;
190 if (buildCounterListClustersResponse < 3) { 190 if (buildCounterListClustersResponse < 3) {
191 checkUnnamed1835(o.clusters); 191 checkUnnamed2147(o.clusters);
192 } 192 }
193 buildCounterListClustersResponse--; 193 buildCounterListClustersResponse--;
194 } 194 }
195 195
196 buildUnnamed1836() { 196 buildUnnamed2148() {
197 var o = new core.List<api.Operation>(); 197 var o = new core.List<api.Operation>();
198 o.add(buildOperation()); 198 o.add(buildOperation());
199 o.add(buildOperation()); 199 o.add(buildOperation());
200 return o; 200 return o;
201 } 201 }
202 202
203 checkUnnamed1836(core.List<api.Operation> o) { 203 checkUnnamed2148(core.List<api.Operation> o) {
204 unittest.expect(o, unittest.hasLength(2)); 204 unittest.expect(o, unittest.hasLength(2));
205 checkOperation(o[0]); 205 checkOperation(o[0]);
206 checkOperation(o[1]); 206 checkOperation(o[1]);
207 } 207 }
208 208
209 core.int buildCounterListOperationsResponse = 0; 209 core.int buildCounterListOperationsResponse = 0;
210 buildListOperationsResponse() { 210 buildListOperationsResponse() {
211 var o = new api.ListOperationsResponse(); 211 var o = new api.ListOperationsResponse();
212 buildCounterListOperationsResponse++; 212 buildCounterListOperationsResponse++;
213 if (buildCounterListOperationsResponse < 3) { 213 if (buildCounterListOperationsResponse < 3) {
214 o.operations = buildUnnamed1836(); 214 o.operations = buildUnnamed2148();
215 } 215 }
216 buildCounterListOperationsResponse--; 216 buildCounterListOperationsResponse--;
217 return o; 217 return o;
218 } 218 }
219 219
220 checkListOperationsResponse(api.ListOperationsResponse o) { 220 checkListOperationsResponse(api.ListOperationsResponse o) {
221 buildCounterListOperationsResponse++; 221 buildCounterListOperationsResponse++;
222 if (buildCounterListOperationsResponse < 3) { 222 if (buildCounterListOperationsResponse < 3) {
223 checkUnnamed1836(o.operations); 223 checkUnnamed2148(o.operations);
224 } 224 }
225 buildCounterListOperationsResponse--; 225 buildCounterListOperationsResponse--;
226 } 226 }
227 227
228 core.int buildCounterMasterAuth = 0; 228 core.int buildCounterMasterAuth = 0;
229 buildMasterAuth() { 229 buildMasterAuth() {
230 var o = new api.MasterAuth(); 230 var o = new api.MasterAuth();
231 buildCounterMasterAuth++; 231 buildCounterMasterAuth++;
232 if (buildCounterMasterAuth < 3) { 232 if (buildCounterMasterAuth < 3) {
233 o.clientCertificate = "foo"; 233 o.clientCertificate = "foo";
(...skipping 11 matching lines...) Expand all
245 if (buildCounterMasterAuth < 3) { 245 if (buildCounterMasterAuth < 3) {
246 unittest.expect(o.clientCertificate, unittest.equals('foo')); 246 unittest.expect(o.clientCertificate, unittest.equals('foo'));
247 unittest.expect(o.clientKey, unittest.equals('foo')); 247 unittest.expect(o.clientKey, unittest.equals('foo'));
248 unittest.expect(o.clusterCaCertificate, unittest.equals('foo')); 248 unittest.expect(o.clusterCaCertificate, unittest.equals('foo'));
249 unittest.expect(o.password, unittest.equals('foo')); 249 unittest.expect(o.password, unittest.equals('foo'));
250 unittest.expect(o.username, unittest.equals('foo')); 250 unittest.expect(o.username, unittest.equals('foo'));
251 } 251 }
252 buildCounterMasterAuth--; 252 buildCounterMasterAuth--;
253 } 253 }
254 254
255 buildUnnamed1837() { 255 buildUnnamed2149() {
256 var o = new core.List<core.String>(); 256 var o = new core.List<core.String>();
257 o.add("foo"); 257 o.add("foo");
258 o.add("foo"); 258 o.add("foo");
259 return o; 259 return o;
260 } 260 }
261 261
262 checkUnnamed1837(core.List<core.String> o) { 262 checkUnnamed2149(core.List<core.String> o) {
263 unittest.expect(o, unittest.hasLength(2)); 263 unittest.expect(o, unittest.hasLength(2));
264 unittest.expect(o[0], unittest.equals('foo')); 264 unittest.expect(o[0], unittest.equals('foo'));
265 unittest.expect(o[1], unittest.equals('foo')); 265 unittest.expect(o[1], unittest.equals('foo'));
266 } 266 }
267 267
268 core.int buildCounterNodeConfig = 0; 268 core.int buildCounterNodeConfig = 0;
269 buildNodeConfig() { 269 buildNodeConfig() {
270 var o = new api.NodeConfig(); 270 var o = new api.NodeConfig();
271 buildCounterNodeConfig++; 271 buildCounterNodeConfig++;
272 if (buildCounterNodeConfig < 3) { 272 if (buildCounterNodeConfig < 3) {
273 o.diskSizeGb = 42; 273 o.diskSizeGb = 42;
274 o.machineType = "foo"; 274 o.machineType = "foo";
275 o.oauthScopes = buildUnnamed1837(); 275 o.oauthScopes = buildUnnamed2149();
276 } 276 }
277 buildCounterNodeConfig--; 277 buildCounterNodeConfig--;
278 return o; 278 return o;
279 } 279 }
280 280
281 checkNodeConfig(api.NodeConfig o) { 281 checkNodeConfig(api.NodeConfig o) {
282 buildCounterNodeConfig++; 282 buildCounterNodeConfig++;
283 if (buildCounterNodeConfig < 3) { 283 if (buildCounterNodeConfig < 3) {
284 unittest.expect(o.diskSizeGb, unittest.equals(42)); 284 unittest.expect(o.diskSizeGb, unittest.equals(42));
285 unittest.expect(o.machineType, unittest.equals('foo')); 285 unittest.expect(o.machineType, unittest.equals('foo'));
286 checkUnnamed1837(o.oauthScopes); 286 checkUnnamed2149(o.oauthScopes);
287 } 287 }
288 buildCounterNodeConfig--; 288 buildCounterNodeConfig--;
289 } 289 }
290 290
291 core.int buildCounterOperation = 0; 291 core.int buildCounterOperation = 0;
292 buildOperation() { 292 buildOperation() {
293 var o = new api.Operation(); 293 var o = new api.Operation();
294 buildCounterOperation++; 294 buildCounterOperation++;
295 if (buildCounterOperation < 3) { 295 if (buildCounterOperation < 3) {
296 o.name = "foo"; 296 o.name = "foo";
(...skipping 15 matching lines...) Expand all
312 unittest.expect(o.operationType, unittest.equals('foo')); 312 unittest.expect(o.operationType, unittest.equals('foo'));
313 unittest.expect(o.selfLink, unittest.equals('foo')); 313 unittest.expect(o.selfLink, unittest.equals('foo'));
314 unittest.expect(o.status, unittest.equals('foo')); 314 unittest.expect(o.status, unittest.equals('foo'));
315 unittest.expect(o.statusMessage, unittest.equals('foo')); 315 unittest.expect(o.statusMessage, unittest.equals('foo'));
316 unittest.expect(o.targetLink, unittest.equals('foo')); 316 unittest.expect(o.targetLink, unittest.equals('foo'));
317 unittest.expect(o.zone, unittest.equals('foo')); 317 unittest.expect(o.zone, unittest.equals('foo'));
318 } 318 }
319 buildCounterOperation--; 319 buildCounterOperation--;
320 } 320 }
321 321
322 buildUnnamed1838() { 322 buildUnnamed2150() {
323 var o = new core.List<core.String>(); 323 var o = new core.List<core.String>();
324 o.add("foo"); 324 o.add("foo");
325 o.add("foo"); 325 o.add("foo");
326 return o; 326 return o;
327 } 327 }
328 328
329 checkUnnamed1838(core.List<core.String> o) { 329 checkUnnamed2150(core.List<core.String> o) {
330 unittest.expect(o, unittest.hasLength(2)); 330 unittest.expect(o, unittest.hasLength(2));
331 unittest.expect(o[0], unittest.equals('foo')); 331 unittest.expect(o[0], unittest.equals('foo'));
332 unittest.expect(o[1], unittest.equals('foo')); 332 unittest.expect(o[1], unittest.equals('foo'));
333 } 333 }
334 334
335 core.int buildCounterServerConfig = 0; 335 core.int buildCounterServerConfig = 0;
336 buildServerConfig() { 336 buildServerConfig() {
337 var o = new api.ServerConfig(); 337 var o = new api.ServerConfig();
338 buildCounterServerConfig++; 338 buildCounterServerConfig++;
339 if (buildCounterServerConfig < 3) { 339 if (buildCounterServerConfig < 3) {
340 o.defaultClusterVersion = "foo"; 340 o.defaultClusterVersion = "foo";
341 o.validNodeVersions = buildUnnamed1838(); 341 o.validNodeVersions = buildUnnamed2150();
342 } 342 }
343 buildCounterServerConfig--; 343 buildCounterServerConfig--;
344 return o; 344 return o;
345 } 345 }
346 346
347 checkServerConfig(api.ServerConfig o) { 347 checkServerConfig(api.ServerConfig o) {
348 buildCounterServerConfig++; 348 buildCounterServerConfig++;
349 if (buildCounterServerConfig < 3) { 349 if (buildCounterServerConfig < 3) {
350 unittest.expect(o.defaultClusterVersion, unittest.equals('foo')); 350 unittest.expect(o.defaultClusterVersion, unittest.equals('foo'));
351 checkUnnamed1838(o.validNodeVersions); 351 checkUnnamed2150(o.validNodeVersions);
352 } 352 }
353 buildCounterServerConfig--; 353 buildCounterServerConfig--;
354 } 354 }
355 355
356 core.int buildCounterUpdateClusterRequest = 0; 356 core.int buildCounterUpdateClusterRequest = 0;
357 buildUpdateClusterRequest() { 357 buildUpdateClusterRequest() {
358 var o = new api.UpdateClusterRequest(); 358 var o = new api.UpdateClusterRequest();
359 buildCounterUpdateClusterRequest++; 359 buildCounterUpdateClusterRequest++;
360 if (buildCounterUpdateClusterRequest < 3) { 360 if (buildCounterUpdateClusterRequest < 3) {
361 o.update = buildClusterUpdate(); 361 o.update = buildClusterUpdate();
(...skipping 605 matching lines...) Expand 10 before | Expand all | Expand 10 after
967 res.list(arg_projectId, arg_zone).then(unittest.expectAsync(((api.ListOper ationsResponse response) { 967 res.list(arg_projectId, arg_zone).then(unittest.expectAsync(((api.ListOper ationsResponse response) {
968 checkListOperationsResponse(response); 968 checkListOperationsResponse(response);
969 }))); 969 })));
970 }); 970 });
971 971
972 }); 972 });
973 973
974 974
975 } 975 }
976 976
OLDNEW
« no previous file with comments | « generated/googleapis/test/compute/v1_test.dart ('k') | generated/googleapis/test/content/v2_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698