OLD | NEW |
1 library googleapis.dataproc.v1.test; | 1 library googleapis.dataproc.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:test/test.dart' as unittest; |
11 | 11 |
12 import 'package:googleapis/dataproc/v1.dart' as api; | 12 import 'package:googleapis/dataproc/v1.dart' as api; |
13 | 13 |
14 class HttpServerMock extends http.BaseClient { | 14 class HttpServerMock extends http.BaseClient { |
15 core.Function _callback; | 15 core.Function _callback; |
16 core.bool _expectJson; | 16 core.bool _expectJson; |
17 | 17 |
18 void register(core.Function callback, core.bool expectJson) { | 18 void register(core.Function callback, core.bool expectJson) { |
19 _callback = callback; | 19 _callback = callback; |
20 _expectJson = expectJson; | 20 _expectJson = expectJson; |
(...skipping 18 matching lines...) Expand all Loading... |
39 } else { | 39 } else { |
40 return stream.toBytes().then((data) { | 40 return stream.toBytes().then((data) { |
41 return _callback(request, data); | 41 return _callback(request, data); |
42 }); | 42 }); |
43 } | 43 } |
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<core.String, core.String> headers, core.String bod
y) { |
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 core.int buildCounterAcceleratorConfig = 0; | 54 core.int buildCounterAcceleratorConfig = 0; |
55 buildAcceleratorConfig() { | 55 buildAcceleratorConfig() { |
56 var o = new api.AcceleratorConfig(); | 56 var o = new api.AcceleratorConfig(); |
57 buildCounterAcceleratorConfig++; | 57 buildCounterAcceleratorConfig++; |
58 if (buildCounterAcceleratorConfig < 3) { | 58 if (buildCounterAcceleratorConfig < 3) { |
59 o.acceleratorCount = 42; | 59 o.acceleratorCount = 42; |
(...skipping 22 matching lines...) Expand all Loading... |
82 return o; | 82 return o; |
83 } | 83 } |
84 | 84 |
85 checkCancelJobRequest(api.CancelJobRequest o) { | 85 checkCancelJobRequest(api.CancelJobRequest o) { |
86 buildCounterCancelJobRequest++; | 86 buildCounterCancelJobRequest++; |
87 if (buildCounterCancelJobRequest < 3) { | 87 if (buildCounterCancelJobRequest < 3) { |
88 } | 88 } |
89 buildCounterCancelJobRequest--; | 89 buildCounterCancelJobRequest--; |
90 } | 90 } |
91 | 91 |
92 buildUnnamed452() { | 92 buildUnnamed456() { |
93 var o = new core.Map<core.String, core.String>(); | 93 var o = new core.Map<core.String, core.String>(); |
94 o["x"] = "foo"; | 94 o["x"] = "foo"; |
95 o["y"] = "foo"; | 95 o["y"] = "foo"; |
96 return o; | 96 return o; |
97 } | 97 } |
98 | 98 |
99 checkUnnamed452(core.Map<core.String, core.String> o) { | 99 checkUnnamed456(core.Map<core.String, core.String> o) { |
100 unittest.expect(o, unittest.hasLength(2)); | 100 unittest.expect(o, unittest.hasLength(2)); |
101 unittest.expect(o["x"], unittest.equals('foo')); | 101 unittest.expect(o["x"], unittest.equals('foo')); |
102 unittest.expect(o["y"], unittest.equals('foo')); | 102 unittest.expect(o["y"], unittest.equals('foo')); |
103 } | 103 } |
104 | 104 |
105 buildUnnamed453() { | 105 buildUnnamed457() { |
106 var o = new core.List<api.ClusterStatus>(); | 106 var o = new core.List<api.ClusterStatus>(); |
107 o.add(buildClusterStatus()); | 107 o.add(buildClusterStatus()); |
108 o.add(buildClusterStatus()); | 108 o.add(buildClusterStatus()); |
109 return o; | 109 return o; |
110 } | 110 } |
111 | 111 |
112 checkUnnamed453(core.List<api.ClusterStatus> o) { | 112 checkUnnamed457(core.List<api.ClusterStatus> o) { |
113 unittest.expect(o, unittest.hasLength(2)); | 113 unittest.expect(o, unittest.hasLength(2)); |
114 checkClusterStatus(o[0]); | 114 checkClusterStatus(o[0]); |
115 checkClusterStatus(o[1]); | 115 checkClusterStatus(o[1]); |
116 } | 116 } |
117 | 117 |
118 core.int buildCounterCluster = 0; | 118 core.int buildCounterCluster = 0; |
119 buildCluster() { | 119 buildCluster() { |
120 var o = new api.Cluster(); | 120 var o = new api.Cluster(); |
121 buildCounterCluster++; | 121 buildCounterCluster++; |
122 if (buildCounterCluster < 3) { | 122 if (buildCounterCluster < 3) { |
123 o.clusterName = "foo"; | 123 o.clusterName = "foo"; |
124 o.clusterUuid = "foo"; | 124 o.clusterUuid = "foo"; |
125 o.config = buildClusterConfig(); | 125 o.config = buildClusterConfig(); |
126 o.labels = buildUnnamed452(); | 126 o.labels = buildUnnamed456(); |
127 o.metrics = buildClusterMetrics(); | 127 o.metrics = buildClusterMetrics(); |
128 o.projectId = "foo"; | 128 o.projectId = "foo"; |
129 o.status = buildClusterStatus(); | 129 o.status = buildClusterStatus(); |
130 o.statusHistory = buildUnnamed453(); | 130 o.statusHistory = buildUnnamed457(); |
131 } | 131 } |
132 buildCounterCluster--; | 132 buildCounterCluster--; |
133 return o; | 133 return o; |
134 } | 134 } |
135 | 135 |
136 checkCluster(api.Cluster o) { | 136 checkCluster(api.Cluster o) { |
137 buildCounterCluster++; | 137 buildCounterCluster++; |
138 if (buildCounterCluster < 3) { | 138 if (buildCounterCluster < 3) { |
139 unittest.expect(o.clusterName, unittest.equals('foo')); | 139 unittest.expect(o.clusterName, unittest.equals('foo')); |
140 unittest.expect(o.clusterUuid, unittest.equals('foo')); | 140 unittest.expect(o.clusterUuid, unittest.equals('foo')); |
141 checkClusterConfig(o.config); | 141 checkClusterConfig(o.config); |
142 checkUnnamed452(o.labels); | 142 checkUnnamed456(o.labels); |
143 checkClusterMetrics(o.metrics); | 143 checkClusterMetrics(o.metrics); |
144 unittest.expect(o.projectId, unittest.equals('foo')); | 144 unittest.expect(o.projectId, unittest.equals('foo')); |
145 checkClusterStatus(o.status); | 145 checkClusterStatus(o.status); |
146 checkUnnamed453(o.statusHistory); | 146 checkUnnamed457(o.statusHistory); |
147 } | 147 } |
148 buildCounterCluster--; | 148 buildCounterCluster--; |
149 } | 149 } |
150 | 150 |
151 buildUnnamed454() { | 151 buildUnnamed458() { |
152 var o = new core.List<api.NodeInitializationAction>(); | 152 var o = new core.List<api.NodeInitializationAction>(); |
153 o.add(buildNodeInitializationAction()); | 153 o.add(buildNodeInitializationAction()); |
154 o.add(buildNodeInitializationAction()); | 154 o.add(buildNodeInitializationAction()); |
155 return o; | 155 return o; |
156 } | 156 } |
157 | 157 |
158 checkUnnamed454(core.List<api.NodeInitializationAction> o) { | 158 checkUnnamed458(core.List<api.NodeInitializationAction> o) { |
159 unittest.expect(o, unittest.hasLength(2)); | 159 unittest.expect(o, unittest.hasLength(2)); |
160 checkNodeInitializationAction(o[0]); | 160 checkNodeInitializationAction(o[0]); |
161 checkNodeInitializationAction(o[1]); | 161 checkNodeInitializationAction(o[1]); |
162 } | 162 } |
163 | 163 |
164 core.int buildCounterClusterConfig = 0; | 164 core.int buildCounterClusterConfig = 0; |
165 buildClusterConfig() { | 165 buildClusterConfig() { |
166 var o = new api.ClusterConfig(); | 166 var o = new api.ClusterConfig(); |
167 buildCounterClusterConfig++; | 167 buildCounterClusterConfig++; |
168 if (buildCounterClusterConfig < 3) { | 168 if (buildCounterClusterConfig < 3) { |
169 o.configBucket = "foo"; | 169 o.configBucket = "foo"; |
170 o.gceClusterConfig = buildGceClusterConfig(); | 170 o.gceClusterConfig = buildGceClusterConfig(); |
171 o.initializationActions = buildUnnamed454(); | 171 o.initializationActions = buildUnnamed458(); |
172 o.masterConfig = buildInstanceGroupConfig(); | 172 o.masterConfig = buildInstanceGroupConfig(); |
173 o.secondaryWorkerConfig = buildInstanceGroupConfig(); | 173 o.secondaryWorkerConfig = buildInstanceGroupConfig(); |
174 o.softwareConfig = buildSoftwareConfig(); | 174 o.softwareConfig = buildSoftwareConfig(); |
175 o.workerConfig = buildInstanceGroupConfig(); | 175 o.workerConfig = buildInstanceGroupConfig(); |
176 } | 176 } |
177 buildCounterClusterConfig--; | 177 buildCounterClusterConfig--; |
178 return o; | 178 return o; |
179 } | 179 } |
180 | 180 |
181 checkClusterConfig(api.ClusterConfig o) { | 181 checkClusterConfig(api.ClusterConfig o) { |
182 buildCounterClusterConfig++; | 182 buildCounterClusterConfig++; |
183 if (buildCounterClusterConfig < 3) { | 183 if (buildCounterClusterConfig < 3) { |
184 unittest.expect(o.configBucket, unittest.equals('foo')); | 184 unittest.expect(o.configBucket, unittest.equals('foo')); |
185 checkGceClusterConfig(o.gceClusterConfig); | 185 checkGceClusterConfig(o.gceClusterConfig); |
186 checkUnnamed454(o.initializationActions); | 186 checkUnnamed458(o.initializationActions); |
187 checkInstanceGroupConfig(o.masterConfig); | 187 checkInstanceGroupConfig(o.masterConfig); |
188 checkInstanceGroupConfig(o.secondaryWorkerConfig); | 188 checkInstanceGroupConfig(o.secondaryWorkerConfig); |
189 checkSoftwareConfig(o.softwareConfig); | 189 checkSoftwareConfig(o.softwareConfig); |
190 checkInstanceGroupConfig(o.workerConfig); | 190 checkInstanceGroupConfig(o.workerConfig); |
191 } | 191 } |
192 buildCounterClusterConfig--; | 192 buildCounterClusterConfig--; |
193 } | 193 } |
194 | 194 |
195 buildUnnamed455() { | 195 buildUnnamed459() { |
196 var o = new core.Map<core.String, core.String>(); | 196 var o = new core.Map<core.String, core.String>(); |
197 o["x"] = "foo"; | 197 o["x"] = "foo"; |
198 o["y"] = "foo"; | 198 o["y"] = "foo"; |
199 return o; | 199 return o; |
200 } | 200 } |
201 | 201 |
202 checkUnnamed455(core.Map<core.String, core.String> o) { | 202 checkUnnamed459(core.Map<core.String, core.String> o) { |
203 unittest.expect(o, unittest.hasLength(2)); | 203 unittest.expect(o, unittest.hasLength(2)); |
204 unittest.expect(o["x"], unittest.equals('foo')); | 204 unittest.expect(o["x"], unittest.equals('foo')); |
205 unittest.expect(o["y"], unittest.equals('foo')); | 205 unittest.expect(o["y"], unittest.equals('foo')); |
206 } | 206 } |
207 | 207 |
208 buildUnnamed456() { | 208 buildUnnamed460() { |
209 var o = new core.Map<core.String, core.String>(); | 209 var o = new core.Map<core.String, core.String>(); |
210 o["x"] = "foo"; | 210 o["x"] = "foo"; |
211 o["y"] = "foo"; | 211 o["y"] = "foo"; |
212 return o; | 212 return o; |
213 } | 213 } |
214 | 214 |
215 checkUnnamed456(core.Map<core.String, core.String> o) { | 215 checkUnnamed460(core.Map<core.String, core.String> o) { |
216 unittest.expect(o, unittest.hasLength(2)); | 216 unittest.expect(o, unittest.hasLength(2)); |
217 unittest.expect(o["x"], unittest.equals('foo')); | 217 unittest.expect(o["x"], unittest.equals('foo')); |
218 unittest.expect(o["y"], unittest.equals('foo')); | 218 unittest.expect(o["y"], unittest.equals('foo')); |
219 } | 219 } |
220 | 220 |
221 core.int buildCounterClusterMetrics = 0; | 221 core.int buildCounterClusterMetrics = 0; |
222 buildClusterMetrics() { | 222 buildClusterMetrics() { |
223 var o = new api.ClusterMetrics(); | 223 var o = new api.ClusterMetrics(); |
224 buildCounterClusterMetrics++; | 224 buildCounterClusterMetrics++; |
225 if (buildCounterClusterMetrics < 3) { | 225 if (buildCounterClusterMetrics < 3) { |
226 o.hdfsMetrics = buildUnnamed455(); | 226 o.hdfsMetrics = buildUnnamed459(); |
227 o.yarnMetrics = buildUnnamed456(); | 227 o.yarnMetrics = buildUnnamed460(); |
228 } | 228 } |
229 buildCounterClusterMetrics--; | 229 buildCounterClusterMetrics--; |
230 return o; | 230 return o; |
231 } | 231 } |
232 | 232 |
233 checkClusterMetrics(api.ClusterMetrics o) { | 233 checkClusterMetrics(api.ClusterMetrics o) { |
234 buildCounterClusterMetrics++; | 234 buildCounterClusterMetrics++; |
235 if (buildCounterClusterMetrics < 3) { | 235 if (buildCounterClusterMetrics < 3) { |
236 checkUnnamed455(o.hdfsMetrics); | 236 checkUnnamed459(o.hdfsMetrics); |
237 checkUnnamed456(o.yarnMetrics); | 237 checkUnnamed460(o.yarnMetrics); |
238 } | 238 } |
239 buildCounterClusterMetrics--; | 239 buildCounterClusterMetrics--; |
240 } | 240 } |
241 | 241 |
242 buildUnnamed457() { | 242 buildUnnamed461() { |
243 var o = new core.Map<core.String, core.String>(); | 243 var o = new core.Map<core.String, core.String>(); |
244 o["x"] = "foo"; | 244 o["x"] = "foo"; |
245 o["y"] = "foo"; | 245 o["y"] = "foo"; |
246 return o; | 246 return o; |
247 } | 247 } |
248 | 248 |
249 checkUnnamed457(core.Map<core.String, core.String> o) { | 249 checkUnnamed461(core.Map<core.String, core.String> o) { |
250 unittest.expect(o, unittest.hasLength(2)); | 250 unittest.expect(o, unittest.hasLength(2)); |
251 unittest.expect(o["x"], unittest.equals('foo')); | 251 unittest.expect(o["x"], unittest.equals('foo')); |
252 unittest.expect(o["y"], unittest.equals('foo')); | 252 unittest.expect(o["y"], unittest.equals('foo')); |
253 } | 253 } |
254 | 254 |
255 buildUnnamed458() { | 255 buildUnnamed462() { |
256 var o = new core.List<api.ClusterOperationStatus>(); | 256 var o = new core.List<api.ClusterOperationStatus>(); |
257 o.add(buildClusterOperationStatus()); | 257 o.add(buildClusterOperationStatus()); |
258 o.add(buildClusterOperationStatus()); | 258 o.add(buildClusterOperationStatus()); |
259 return o; | 259 return o; |
260 } | 260 } |
261 | 261 |
262 checkUnnamed458(core.List<api.ClusterOperationStatus> o) { | 262 checkUnnamed462(core.List<api.ClusterOperationStatus> o) { |
263 unittest.expect(o, unittest.hasLength(2)); | 263 unittest.expect(o, unittest.hasLength(2)); |
264 checkClusterOperationStatus(o[0]); | 264 checkClusterOperationStatus(o[0]); |
265 checkClusterOperationStatus(o[1]); | 265 checkClusterOperationStatus(o[1]); |
266 } | 266 } |
267 | 267 |
268 buildUnnamed459() { | 268 buildUnnamed463() { |
269 var o = new core.List<core.String>(); | 269 var o = new core.List<core.String>(); |
270 o.add("foo"); | 270 o.add("foo"); |
271 o.add("foo"); | 271 o.add("foo"); |
272 return o; | 272 return o; |
273 } | 273 } |
274 | 274 |
275 checkUnnamed459(core.List<core.String> o) { | 275 checkUnnamed463(core.List<core.String> o) { |
276 unittest.expect(o, unittest.hasLength(2)); | 276 unittest.expect(o, unittest.hasLength(2)); |
277 unittest.expect(o[0], unittest.equals('foo')); | 277 unittest.expect(o[0], unittest.equals('foo')); |
278 unittest.expect(o[1], unittest.equals('foo')); | 278 unittest.expect(o[1], unittest.equals('foo')); |
279 } | 279 } |
280 | 280 |
281 core.int buildCounterClusterOperationMetadata = 0; | 281 core.int buildCounterClusterOperationMetadata = 0; |
282 buildClusterOperationMetadata() { | 282 buildClusterOperationMetadata() { |
283 var o = new api.ClusterOperationMetadata(); | 283 var o = new api.ClusterOperationMetadata(); |
284 buildCounterClusterOperationMetadata++; | 284 buildCounterClusterOperationMetadata++; |
285 if (buildCounterClusterOperationMetadata < 3) { | 285 if (buildCounterClusterOperationMetadata < 3) { |
286 o.clusterName = "foo"; | 286 o.clusterName = "foo"; |
287 o.clusterUuid = "foo"; | 287 o.clusterUuid = "foo"; |
288 o.description = "foo"; | 288 o.description = "foo"; |
289 o.labels = buildUnnamed457(); | 289 o.labels = buildUnnamed461(); |
290 o.operationType = "foo"; | 290 o.operationType = "foo"; |
291 o.status = buildClusterOperationStatus(); | 291 o.status = buildClusterOperationStatus(); |
292 o.statusHistory = buildUnnamed458(); | 292 o.statusHistory = buildUnnamed462(); |
293 o.warnings = buildUnnamed459(); | 293 o.warnings = buildUnnamed463(); |
294 } | 294 } |
295 buildCounterClusterOperationMetadata--; | 295 buildCounterClusterOperationMetadata--; |
296 return o; | 296 return o; |
297 } | 297 } |
298 | 298 |
299 checkClusterOperationMetadata(api.ClusterOperationMetadata o) { | 299 checkClusterOperationMetadata(api.ClusterOperationMetadata o) { |
300 buildCounterClusterOperationMetadata++; | 300 buildCounterClusterOperationMetadata++; |
301 if (buildCounterClusterOperationMetadata < 3) { | 301 if (buildCounterClusterOperationMetadata < 3) { |
302 unittest.expect(o.clusterName, unittest.equals('foo')); | 302 unittest.expect(o.clusterName, unittest.equals('foo')); |
303 unittest.expect(o.clusterUuid, unittest.equals('foo')); | 303 unittest.expect(o.clusterUuid, unittest.equals('foo')); |
304 unittest.expect(o.description, unittest.equals('foo')); | 304 unittest.expect(o.description, unittest.equals('foo')); |
305 checkUnnamed457(o.labels); | 305 checkUnnamed461(o.labels); |
306 unittest.expect(o.operationType, unittest.equals('foo')); | 306 unittest.expect(o.operationType, unittest.equals('foo')); |
307 checkClusterOperationStatus(o.status); | 307 checkClusterOperationStatus(o.status); |
308 checkUnnamed458(o.statusHistory); | 308 checkUnnamed462(o.statusHistory); |
309 checkUnnamed459(o.warnings); | 309 checkUnnamed463(o.warnings); |
310 } | 310 } |
311 buildCounterClusterOperationMetadata--; | 311 buildCounterClusterOperationMetadata--; |
312 } | 312 } |
313 | 313 |
314 core.int buildCounterClusterOperationStatus = 0; | 314 core.int buildCounterClusterOperationStatus = 0; |
315 buildClusterOperationStatus() { | 315 buildClusterOperationStatus() { |
316 var o = new api.ClusterOperationStatus(); | 316 var o = new api.ClusterOperationStatus(); |
317 buildCounterClusterOperationStatus++; | 317 buildCounterClusterOperationStatus++; |
318 if (buildCounterClusterOperationStatus < 3) { | 318 if (buildCounterClusterOperationStatus < 3) { |
319 o.details = "foo"; | 319 o.details = "foo"; |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
354 buildCounterClusterStatus++; | 354 buildCounterClusterStatus++; |
355 if (buildCounterClusterStatus < 3) { | 355 if (buildCounterClusterStatus < 3) { |
356 unittest.expect(o.detail, unittest.equals('foo')); | 356 unittest.expect(o.detail, unittest.equals('foo')); |
357 unittest.expect(o.state, unittest.equals('foo')); | 357 unittest.expect(o.state, unittest.equals('foo')); |
358 unittest.expect(o.stateStartTime, unittest.equals('foo')); | 358 unittest.expect(o.stateStartTime, unittest.equals('foo')); |
359 unittest.expect(o.substate, unittest.equals('foo')); | 359 unittest.expect(o.substate, unittest.equals('foo')); |
360 } | 360 } |
361 buildCounterClusterStatus--; | 361 buildCounterClusterStatus--; |
362 } | 362 } |
363 | 363 |
364 core.int buildCounterDiagnoseClusterOutputLocation = 0; | |
365 buildDiagnoseClusterOutputLocation() { | |
366 var o = new api.DiagnoseClusterOutputLocation(); | |
367 buildCounterDiagnoseClusterOutputLocation++; | |
368 if (buildCounterDiagnoseClusterOutputLocation < 3) { | |
369 o.outputUri = "foo"; | |
370 } | |
371 buildCounterDiagnoseClusterOutputLocation--; | |
372 return o; | |
373 } | |
374 | |
375 checkDiagnoseClusterOutputLocation(api.DiagnoseClusterOutputLocation o) { | |
376 buildCounterDiagnoseClusterOutputLocation++; | |
377 if (buildCounterDiagnoseClusterOutputLocation < 3) { | |
378 unittest.expect(o.outputUri, unittest.equals('foo')); | |
379 } | |
380 buildCounterDiagnoseClusterOutputLocation--; | |
381 } | |
382 | |
383 core.int buildCounterDiagnoseClusterRequest = 0; | 364 core.int buildCounterDiagnoseClusterRequest = 0; |
384 buildDiagnoseClusterRequest() { | 365 buildDiagnoseClusterRequest() { |
385 var o = new api.DiagnoseClusterRequest(); | 366 var o = new api.DiagnoseClusterRequest(); |
386 buildCounterDiagnoseClusterRequest++; | 367 buildCounterDiagnoseClusterRequest++; |
387 if (buildCounterDiagnoseClusterRequest < 3) { | 368 if (buildCounterDiagnoseClusterRequest < 3) { |
388 } | 369 } |
389 buildCounterDiagnoseClusterRequest--; | 370 buildCounterDiagnoseClusterRequest--; |
390 return o; | 371 return o; |
391 } | 372 } |
392 | 373 |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
447 return o; | 428 return o; |
448 } | 429 } |
449 | 430 |
450 checkEmpty(api.Empty o) { | 431 checkEmpty(api.Empty o) { |
451 buildCounterEmpty++; | 432 buildCounterEmpty++; |
452 if (buildCounterEmpty < 3) { | 433 if (buildCounterEmpty < 3) { |
453 } | 434 } |
454 buildCounterEmpty--; | 435 buildCounterEmpty--; |
455 } | 436 } |
456 | 437 |
457 buildUnnamed460() { | 438 buildUnnamed464() { |
458 var o = new core.Map<core.String, core.String>(); | 439 var o = new core.Map<core.String, core.String>(); |
459 o["x"] = "foo"; | 440 o["x"] = "foo"; |
460 o["y"] = "foo"; | 441 o["y"] = "foo"; |
461 return o; | 442 return o; |
462 } | 443 } |
463 | 444 |
464 checkUnnamed460(core.Map<core.String, core.String> o) { | 445 checkUnnamed464(core.Map<core.String, core.String> o) { |
465 unittest.expect(o, unittest.hasLength(2)); | 446 unittest.expect(o, unittest.hasLength(2)); |
466 unittest.expect(o["x"], unittest.equals('foo')); | 447 unittest.expect(o["x"], unittest.equals('foo')); |
467 unittest.expect(o["y"], unittest.equals('foo')); | 448 unittest.expect(o["y"], unittest.equals('foo')); |
468 } | 449 } |
469 | 450 |
470 buildUnnamed461() { | 451 buildUnnamed465() { |
471 var o = new core.List<core.String>(); | 452 var o = new core.List<core.String>(); |
472 o.add("foo"); | 453 o.add("foo"); |
473 o.add("foo"); | 454 o.add("foo"); |
474 return o; | 455 return o; |
475 } | 456 } |
476 | 457 |
477 checkUnnamed461(core.List<core.String> o) { | 458 checkUnnamed465(core.List<core.String> o) { |
478 unittest.expect(o, unittest.hasLength(2)); | 459 unittest.expect(o, unittest.hasLength(2)); |
479 unittest.expect(o[0], unittest.equals('foo')); | 460 unittest.expect(o[0], unittest.equals('foo')); |
480 unittest.expect(o[1], unittest.equals('foo')); | 461 unittest.expect(o[1], unittest.equals('foo')); |
481 } | 462 } |
482 | 463 |
483 buildUnnamed462() { | 464 buildUnnamed466() { |
484 var o = new core.List<core.String>(); | 465 var o = new core.List<core.String>(); |
485 o.add("foo"); | 466 o.add("foo"); |
486 o.add("foo"); | 467 o.add("foo"); |
487 return o; | 468 return o; |
488 } | 469 } |
489 | 470 |
490 checkUnnamed462(core.List<core.String> o) { | 471 checkUnnamed466(core.List<core.String> o) { |
491 unittest.expect(o, unittest.hasLength(2)); | 472 unittest.expect(o, unittest.hasLength(2)); |
492 unittest.expect(o[0], unittest.equals('foo')); | 473 unittest.expect(o[0], unittest.equals('foo')); |
493 unittest.expect(o[1], unittest.equals('foo')); | 474 unittest.expect(o[1], unittest.equals('foo')); |
494 } | 475 } |
495 | 476 |
496 core.int buildCounterGceClusterConfig = 0; | 477 core.int buildCounterGceClusterConfig = 0; |
497 buildGceClusterConfig() { | 478 buildGceClusterConfig() { |
498 var o = new api.GceClusterConfig(); | 479 var o = new api.GceClusterConfig(); |
499 buildCounterGceClusterConfig++; | 480 buildCounterGceClusterConfig++; |
500 if (buildCounterGceClusterConfig < 3) { | 481 if (buildCounterGceClusterConfig < 3) { |
501 o.internalIpOnly = true; | 482 o.internalIpOnly = true; |
502 o.metadata = buildUnnamed460(); | 483 o.metadata = buildUnnamed464(); |
503 o.networkUri = "foo"; | 484 o.networkUri = "foo"; |
504 o.serviceAccount = "foo"; | 485 o.serviceAccount = "foo"; |
505 o.serviceAccountScopes = buildUnnamed461(); | 486 o.serviceAccountScopes = buildUnnamed465(); |
506 o.subnetworkUri = "foo"; | 487 o.subnetworkUri = "foo"; |
507 o.tags = buildUnnamed462(); | 488 o.tags = buildUnnamed466(); |
508 o.zoneUri = "foo"; | 489 o.zoneUri = "foo"; |
509 } | 490 } |
510 buildCounterGceClusterConfig--; | 491 buildCounterGceClusterConfig--; |
511 return o; | 492 return o; |
512 } | 493 } |
513 | 494 |
514 checkGceClusterConfig(api.GceClusterConfig o) { | 495 checkGceClusterConfig(api.GceClusterConfig o) { |
515 buildCounterGceClusterConfig++; | 496 buildCounterGceClusterConfig++; |
516 if (buildCounterGceClusterConfig < 3) { | 497 if (buildCounterGceClusterConfig < 3) { |
517 unittest.expect(o.internalIpOnly, unittest.isTrue); | 498 unittest.expect(o.internalIpOnly, unittest.isTrue); |
518 checkUnnamed460(o.metadata); | 499 checkUnnamed464(o.metadata); |
519 unittest.expect(o.networkUri, unittest.equals('foo')); | 500 unittest.expect(o.networkUri, unittest.equals('foo')); |
520 unittest.expect(o.serviceAccount, unittest.equals('foo')); | 501 unittest.expect(o.serviceAccount, unittest.equals('foo')); |
521 checkUnnamed461(o.serviceAccountScopes); | 502 checkUnnamed465(o.serviceAccountScopes); |
522 unittest.expect(o.subnetworkUri, unittest.equals('foo')); | 503 unittest.expect(o.subnetworkUri, unittest.equals('foo')); |
523 checkUnnamed462(o.tags); | 504 checkUnnamed466(o.tags); |
524 unittest.expect(o.zoneUri, unittest.equals('foo')); | 505 unittest.expect(o.zoneUri, unittest.equals('foo')); |
525 } | 506 } |
526 buildCounterGceClusterConfig--; | 507 buildCounterGceClusterConfig--; |
527 } | 508 } |
528 | 509 |
529 buildUnnamed463() { | 510 buildUnnamed467() { |
530 var o = new core.List<core.String>(); | 511 var o = new core.List<core.String>(); |
531 o.add("foo"); | 512 o.add("foo"); |
532 o.add("foo"); | 513 o.add("foo"); |
533 return o; | 514 return o; |
534 } | 515 } |
535 | 516 |
536 checkUnnamed463(core.List<core.String> o) { | 517 checkUnnamed467(core.List<core.String> o) { |
537 unittest.expect(o, unittest.hasLength(2)); | 518 unittest.expect(o, unittest.hasLength(2)); |
538 unittest.expect(o[0], unittest.equals('foo')); | 519 unittest.expect(o[0], unittest.equals('foo')); |
539 unittest.expect(o[1], unittest.equals('foo')); | 520 unittest.expect(o[1], unittest.equals('foo')); |
540 } | 521 } |
541 | 522 |
542 buildUnnamed464() { | 523 buildUnnamed468() { |
543 var o = new core.List<core.String>(); | 524 var o = new core.List<core.String>(); |
544 o.add("foo"); | 525 o.add("foo"); |
545 o.add("foo"); | 526 o.add("foo"); |
546 return o; | 527 return o; |
547 } | 528 } |
548 | 529 |
549 checkUnnamed464(core.List<core.String> o) { | 530 checkUnnamed468(core.List<core.String> o) { |
550 unittest.expect(o, unittest.hasLength(2)); | 531 unittest.expect(o, unittest.hasLength(2)); |
551 unittest.expect(o[0], unittest.equals('foo')); | 532 unittest.expect(o[0], unittest.equals('foo')); |
552 unittest.expect(o[1], unittest.equals('foo')); | 533 unittest.expect(o[1], unittest.equals('foo')); |
553 } | 534 } |
554 | 535 |
555 buildUnnamed465() { | 536 buildUnnamed469() { |
556 var o = new core.List<core.String>(); | 537 var o = new core.List<core.String>(); |
557 o.add("foo"); | 538 o.add("foo"); |
558 o.add("foo"); | 539 o.add("foo"); |
559 return o; | 540 return o; |
560 } | 541 } |
561 | 542 |
562 checkUnnamed465(core.List<core.String> o) { | 543 checkUnnamed469(core.List<core.String> o) { |
563 unittest.expect(o, unittest.hasLength(2)); | 544 unittest.expect(o, unittest.hasLength(2)); |
564 unittest.expect(o[0], unittest.equals('foo')); | 545 unittest.expect(o[0], unittest.equals('foo')); |
565 unittest.expect(o[1], unittest.equals('foo')); | 546 unittest.expect(o[1], unittest.equals('foo')); |
566 } | 547 } |
567 | 548 |
568 buildUnnamed466() { | 549 buildUnnamed470() { |
569 var o = new core.List<core.String>(); | 550 var o = new core.List<core.String>(); |
570 o.add("foo"); | 551 o.add("foo"); |
571 o.add("foo"); | 552 o.add("foo"); |
572 return o; | 553 return o; |
573 } | 554 } |
574 | 555 |
575 checkUnnamed466(core.List<core.String> o) { | 556 checkUnnamed470(core.List<core.String> o) { |
576 unittest.expect(o, unittest.hasLength(2)); | 557 unittest.expect(o, unittest.hasLength(2)); |
577 unittest.expect(o[0], unittest.equals('foo')); | 558 unittest.expect(o[0], unittest.equals('foo')); |
578 unittest.expect(o[1], unittest.equals('foo')); | 559 unittest.expect(o[1], unittest.equals('foo')); |
579 } | 560 } |
580 | 561 |
581 buildUnnamed467() { | 562 buildUnnamed471() { |
582 var o = new core.Map<core.String, core.String>(); | 563 var o = new core.Map<core.String, core.String>(); |
583 o["x"] = "foo"; | 564 o["x"] = "foo"; |
584 o["y"] = "foo"; | 565 o["y"] = "foo"; |
585 return o; | 566 return o; |
586 } | 567 } |
587 | 568 |
588 checkUnnamed467(core.Map<core.String, core.String> o) { | 569 checkUnnamed471(core.Map<core.String, core.String> o) { |
589 unittest.expect(o, unittest.hasLength(2)); | 570 unittest.expect(o, unittest.hasLength(2)); |
590 unittest.expect(o["x"], unittest.equals('foo')); | 571 unittest.expect(o["x"], unittest.equals('foo')); |
591 unittest.expect(o["y"], unittest.equals('foo')); | 572 unittest.expect(o["y"], unittest.equals('foo')); |
592 } | 573 } |
593 | 574 |
594 core.int buildCounterHadoopJob = 0; | 575 core.int buildCounterHadoopJob = 0; |
595 buildHadoopJob() { | 576 buildHadoopJob() { |
596 var o = new api.HadoopJob(); | 577 var o = new api.HadoopJob(); |
597 buildCounterHadoopJob++; | 578 buildCounterHadoopJob++; |
598 if (buildCounterHadoopJob < 3) { | 579 if (buildCounterHadoopJob < 3) { |
599 o.archiveUris = buildUnnamed463(); | 580 o.archiveUris = buildUnnamed467(); |
600 o.args = buildUnnamed464(); | 581 o.args = buildUnnamed468(); |
601 o.fileUris = buildUnnamed465(); | 582 o.fileUris = buildUnnamed469(); |
602 o.jarFileUris = buildUnnamed466(); | 583 o.jarFileUris = buildUnnamed470(); |
603 o.loggingConfig = buildLoggingConfig(); | 584 o.loggingConfig = buildLoggingConfig(); |
604 o.mainClass = "foo"; | 585 o.mainClass = "foo"; |
605 o.mainJarFileUri = "foo"; | 586 o.mainJarFileUri = "foo"; |
606 o.properties = buildUnnamed467(); | 587 o.properties = buildUnnamed471(); |
607 } | 588 } |
608 buildCounterHadoopJob--; | 589 buildCounterHadoopJob--; |
609 return o; | 590 return o; |
610 } | 591 } |
611 | 592 |
612 checkHadoopJob(api.HadoopJob o) { | 593 checkHadoopJob(api.HadoopJob o) { |
613 buildCounterHadoopJob++; | 594 buildCounterHadoopJob++; |
614 if (buildCounterHadoopJob < 3) { | 595 if (buildCounterHadoopJob < 3) { |
615 checkUnnamed463(o.archiveUris); | 596 checkUnnamed467(o.archiveUris); |
616 checkUnnamed464(o.args); | 597 checkUnnamed468(o.args); |
617 checkUnnamed465(o.fileUris); | 598 checkUnnamed469(o.fileUris); |
618 checkUnnamed466(o.jarFileUris); | 599 checkUnnamed470(o.jarFileUris); |
619 checkLoggingConfig(o.loggingConfig); | 600 checkLoggingConfig(o.loggingConfig); |
620 unittest.expect(o.mainClass, unittest.equals('foo')); | 601 unittest.expect(o.mainClass, unittest.equals('foo')); |
621 unittest.expect(o.mainJarFileUri, unittest.equals('foo')); | 602 unittest.expect(o.mainJarFileUri, unittest.equals('foo')); |
622 checkUnnamed467(o.properties); | 603 checkUnnamed471(o.properties); |
623 } | 604 } |
624 buildCounterHadoopJob--; | 605 buildCounterHadoopJob--; |
625 } | 606 } |
626 | 607 |
627 buildUnnamed468() { | 608 buildUnnamed472() { |
628 var o = new core.List<core.String>(); | 609 var o = new core.List<core.String>(); |
629 o.add("foo"); | 610 o.add("foo"); |
630 o.add("foo"); | 611 o.add("foo"); |
631 return o; | 612 return o; |
632 } | 613 } |
633 | 614 |
634 checkUnnamed468(core.List<core.String> o) { | 615 checkUnnamed472(core.List<core.String> o) { |
635 unittest.expect(o, unittest.hasLength(2)); | 616 unittest.expect(o, unittest.hasLength(2)); |
636 unittest.expect(o[0], unittest.equals('foo')); | 617 unittest.expect(o[0], unittest.equals('foo')); |
637 unittest.expect(o[1], unittest.equals('foo')); | 618 unittest.expect(o[1], unittest.equals('foo')); |
638 } | 619 } |
639 | 620 |
640 buildUnnamed469() { | 621 buildUnnamed473() { |
641 var o = new core.Map<core.String, core.String>(); | 622 var o = new core.Map<core.String, core.String>(); |
642 o["x"] = "foo"; | 623 o["x"] = "foo"; |
643 o["y"] = "foo"; | 624 o["y"] = "foo"; |
644 return o; | 625 return o; |
645 } | 626 } |
646 | 627 |
647 checkUnnamed469(core.Map<core.String, core.String> o) { | 628 checkUnnamed473(core.Map<core.String, core.String> o) { |
648 unittest.expect(o, unittest.hasLength(2)); | 629 unittest.expect(o, unittest.hasLength(2)); |
649 unittest.expect(o["x"], unittest.equals('foo')); | 630 unittest.expect(o["x"], unittest.equals('foo')); |
650 unittest.expect(o["y"], unittest.equals('foo')); | 631 unittest.expect(o["y"], unittest.equals('foo')); |
651 } | 632 } |
652 | 633 |
653 buildUnnamed470() { | 634 buildUnnamed474() { |
654 var o = new core.Map<core.String, core.String>(); | 635 var o = new core.Map<core.String, core.String>(); |
655 o["x"] = "foo"; | 636 o["x"] = "foo"; |
656 o["y"] = "foo"; | 637 o["y"] = "foo"; |
657 return o; | 638 return o; |
658 } | 639 } |
659 | 640 |
660 checkUnnamed470(core.Map<core.String, core.String> o) { | 641 checkUnnamed474(core.Map<core.String, core.String> o) { |
661 unittest.expect(o, unittest.hasLength(2)); | 642 unittest.expect(o, unittest.hasLength(2)); |
662 unittest.expect(o["x"], unittest.equals('foo')); | 643 unittest.expect(o["x"], unittest.equals('foo')); |
663 unittest.expect(o["y"], unittest.equals('foo')); | 644 unittest.expect(o["y"], unittest.equals('foo')); |
664 } | 645 } |
665 | 646 |
666 core.int buildCounterHiveJob = 0; | 647 core.int buildCounterHiveJob = 0; |
667 buildHiveJob() { | 648 buildHiveJob() { |
668 var o = new api.HiveJob(); | 649 var o = new api.HiveJob(); |
669 buildCounterHiveJob++; | 650 buildCounterHiveJob++; |
670 if (buildCounterHiveJob < 3) { | 651 if (buildCounterHiveJob < 3) { |
671 o.continueOnFailure = true; | 652 o.continueOnFailure = true; |
672 o.jarFileUris = buildUnnamed468(); | 653 o.jarFileUris = buildUnnamed472(); |
673 o.properties = buildUnnamed469(); | 654 o.properties = buildUnnamed473(); |
674 o.queryFileUri = "foo"; | 655 o.queryFileUri = "foo"; |
675 o.queryList = buildQueryList(); | 656 o.queryList = buildQueryList(); |
676 o.scriptVariables = buildUnnamed470(); | 657 o.scriptVariables = buildUnnamed474(); |
677 } | 658 } |
678 buildCounterHiveJob--; | 659 buildCounterHiveJob--; |
679 return o; | 660 return o; |
680 } | 661 } |
681 | 662 |
682 checkHiveJob(api.HiveJob o) { | 663 checkHiveJob(api.HiveJob o) { |
683 buildCounterHiveJob++; | 664 buildCounterHiveJob++; |
684 if (buildCounterHiveJob < 3) { | 665 if (buildCounterHiveJob < 3) { |
685 unittest.expect(o.continueOnFailure, unittest.isTrue); | 666 unittest.expect(o.continueOnFailure, unittest.isTrue); |
686 checkUnnamed468(o.jarFileUris); | 667 checkUnnamed472(o.jarFileUris); |
687 checkUnnamed469(o.properties); | 668 checkUnnamed473(o.properties); |
688 unittest.expect(o.queryFileUri, unittest.equals('foo')); | 669 unittest.expect(o.queryFileUri, unittest.equals('foo')); |
689 checkQueryList(o.queryList); | 670 checkQueryList(o.queryList); |
690 checkUnnamed470(o.scriptVariables); | 671 checkUnnamed474(o.scriptVariables); |
691 } | 672 } |
692 buildCounterHiveJob--; | 673 buildCounterHiveJob--; |
693 } | 674 } |
694 | 675 |
695 buildUnnamed471() { | 676 buildUnnamed475() { |
696 var o = new core.List<api.AcceleratorConfig>(); | 677 var o = new core.List<api.AcceleratorConfig>(); |
697 o.add(buildAcceleratorConfig()); | 678 o.add(buildAcceleratorConfig()); |
698 o.add(buildAcceleratorConfig()); | 679 o.add(buildAcceleratorConfig()); |
699 return o; | 680 return o; |
700 } | 681 } |
701 | 682 |
702 checkUnnamed471(core.List<api.AcceleratorConfig> o) { | 683 checkUnnamed475(core.List<api.AcceleratorConfig> o) { |
703 unittest.expect(o, unittest.hasLength(2)); | 684 unittest.expect(o, unittest.hasLength(2)); |
704 checkAcceleratorConfig(o[0]); | 685 checkAcceleratorConfig(o[0]); |
705 checkAcceleratorConfig(o[1]); | 686 checkAcceleratorConfig(o[1]); |
706 } | 687 } |
707 | 688 |
708 buildUnnamed472() { | 689 buildUnnamed476() { |
709 var o = new core.List<core.String>(); | 690 var o = new core.List<core.String>(); |
710 o.add("foo"); | 691 o.add("foo"); |
711 o.add("foo"); | 692 o.add("foo"); |
712 return o; | 693 return o; |
713 } | 694 } |
714 | 695 |
715 checkUnnamed472(core.List<core.String> o) { | 696 checkUnnamed476(core.List<core.String> o) { |
716 unittest.expect(o, unittest.hasLength(2)); | 697 unittest.expect(o, unittest.hasLength(2)); |
717 unittest.expect(o[0], unittest.equals('foo')); | 698 unittest.expect(o[0], unittest.equals('foo')); |
718 unittest.expect(o[1], unittest.equals('foo')); | 699 unittest.expect(o[1], unittest.equals('foo')); |
719 } | 700 } |
720 | 701 |
721 core.int buildCounterInstanceGroupConfig = 0; | 702 core.int buildCounterInstanceGroupConfig = 0; |
722 buildInstanceGroupConfig() { | 703 buildInstanceGroupConfig() { |
723 var o = new api.InstanceGroupConfig(); | 704 var o = new api.InstanceGroupConfig(); |
724 buildCounterInstanceGroupConfig++; | 705 buildCounterInstanceGroupConfig++; |
725 if (buildCounterInstanceGroupConfig < 3) { | 706 if (buildCounterInstanceGroupConfig < 3) { |
726 o.accelerators = buildUnnamed471(); | 707 o.accelerators = buildUnnamed475(); |
727 o.diskConfig = buildDiskConfig(); | 708 o.diskConfig = buildDiskConfig(); |
728 o.imageUri = "foo"; | 709 o.imageUri = "foo"; |
729 o.instanceNames = buildUnnamed472(); | 710 o.instanceNames = buildUnnamed476(); |
730 o.isPreemptible = true; | 711 o.isPreemptible = true; |
731 o.machineTypeUri = "foo"; | 712 o.machineTypeUri = "foo"; |
732 o.managedGroupConfig = buildManagedGroupConfig(); | 713 o.managedGroupConfig = buildManagedGroupConfig(); |
733 o.numInstances = 42; | 714 o.numInstances = 42; |
734 } | 715 } |
735 buildCounterInstanceGroupConfig--; | 716 buildCounterInstanceGroupConfig--; |
736 return o; | 717 return o; |
737 } | 718 } |
738 | 719 |
739 checkInstanceGroupConfig(api.InstanceGroupConfig o) { | 720 checkInstanceGroupConfig(api.InstanceGroupConfig o) { |
740 buildCounterInstanceGroupConfig++; | 721 buildCounterInstanceGroupConfig++; |
741 if (buildCounterInstanceGroupConfig < 3) { | 722 if (buildCounterInstanceGroupConfig < 3) { |
742 checkUnnamed471(o.accelerators); | 723 checkUnnamed475(o.accelerators); |
743 checkDiskConfig(o.diskConfig); | 724 checkDiskConfig(o.diskConfig); |
744 unittest.expect(o.imageUri, unittest.equals('foo')); | 725 unittest.expect(o.imageUri, unittest.equals('foo')); |
745 checkUnnamed472(o.instanceNames); | 726 checkUnnamed476(o.instanceNames); |
746 unittest.expect(o.isPreemptible, unittest.isTrue); | 727 unittest.expect(o.isPreemptible, unittest.isTrue); |
747 unittest.expect(o.machineTypeUri, unittest.equals('foo')); | 728 unittest.expect(o.machineTypeUri, unittest.equals('foo')); |
748 checkManagedGroupConfig(o.managedGroupConfig); | 729 checkManagedGroupConfig(o.managedGroupConfig); |
749 unittest.expect(o.numInstances, unittest.equals(42)); | 730 unittest.expect(o.numInstances, unittest.equals(42)); |
750 } | 731 } |
751 buildCounterInstanceGroupConfig--; | 732 buildCounterInstanceGroupConfig--; |
752 } | 733 } |
753 | 734 |
754 buildUnnamed473() { | 735 buildUnnamed477() { |
755 var o = new core.Map<core.String, core.String>(); | 736 var o = new core.Map<core.String, core.String>(); |
756 o["x"] = "foo"; | 737 o["x"] = "foo"; |
757 o["y"] = "foo"; | 738 o["y"] = "foo"; |
758 return o; | 739 return o; |
759 } | 740 } |
760 | 741 |
761 checkUnnamed473(core.Map<core.String, core.String> o) { | 742 checkUnnamed477(core.Map<core.String, core.String> o) { |
762 unittest.expect(o, unittest.hasLength(2)); | 743 unittest.expect(o, unittest.hasLength(2)); |
763 unittest.expect(o["x"], unittest.equals('foo')); | 744 unittest.expect(o["x"], unittest.equals('foo')); |
764 unittest.expect(o["y"], unittest.equals('foo')); | 745 unittest.expect(o["y"], unittest.equals('foo')); |
765 } | 746 } |
766 | 747 |
767 buildUnnamed474() { | 748 buildUnnamed478() { |
768 var o = new core.List<api.JobStatus>(); | 749 var o = new core.List<api.JobStatus>(); |
769 o.add(buildJobStatus()); | 750 o.add(buildJobStatus()); |
770 o.add(buildJobStatus()); | 751 o.add(buildJobStatus()); |
771 return o; | 752 return o; |
772 } | 753 } |
773 | 754 |
774 checkUnnamed474(core.List<api.JobStatus> o) { | 755 checkUnnamed478(core.List<api.JobStatus> o) { |
775 unittest.expect(o, unittest.hasLength(2)); | 756 unittest.expect(o, unittest.hasLength(2)); |
776 checkJobStatus(o[0]); | 757 checkJobStatus(o[0]); |
777 checkJobStatus(o[1]); | 758 checkJobStatus(o[1]); |
778 } | 759 } |
779 | 760 |
780 buildUnnamed475() { | 761 buildUnnamed479() { |
781 var o = new core.List<api.YarnApplication>(); | 762 var o = new core.List<api.YarnApplication>(); |
782 o.add(buildYarnApplication()); | 763 o.add(buildYarnApplication()); |
783 o.add(buildYarnApplication()); | 764 o.add(buildYarnApplication()); |
784 return o; | 765 return o; |
785 } | 766 } |
786 | 767 |
787 checkUnnamed475(core.List<api.YarnApplication> o) { | 768 checkUnnamed479(core.List<api.YarnApplication> o) { |
788 unittest.expect(o, unittest.hasLength(2)); | 769 unittest.expect(o, unittest.hasLength(2)); |
789 checkYarnApplication(o[0]); | 770 checkYarnApplication(o[0]); |
790 checkYarnApplication(o[1]); | 771 checkYarnApplication(o[1]); |
791 } | 772 } |
792 | 773 |
793 core.int buildCounterJob = 0; | 774 core.int buildCounterJob = 0; |
794 buildJob() { | 775 buildJob() { |
795 var o = new api.Job(); | 776 var o = new api.Job(); |
796 buildCounterJob++; | 777 buildCounterJob++; |
797 if (buildCounterJob < 3) { | 778 if (buildCounterJob < 3) { |
798 o.driverControlFilesUri = "foo"; | 779 o.driverControlFilesUri = "foo"; |
799 o.driverOutputResourceUri = "foo"; | 780 o.driverOutputResourceUri = "foo"; |
800 o.hadoopJob = buildHadoopJob(); | 781 o.hadoopJob = buildHadoopJob(); |
801 o.hiveJob = buildHiveJob(); | 782 o.hiveJob = buildHiveJob(); |
802 o.labels = buildUnnamed473(); | 783 o.labels = buildUnnamed477(); |
803 o.pigJob = buildPigJob(); | 784 o.pigJob = buildPigJob(); |
804 o.placement = buildJobPlacement(); | 785 o.placement = buildJobPlacement(); |
805 o.pysparkJob = buildPySparkJob(); | 786 o.pysparkJob = buildPySparkJob(); |
806 o.reference = buildJobReference(); | 787 o.reference = buildJobReference(); |
807 o.scheduling = buildJobScheduling(); | 788 o.scheduling = buildJobScheduling(); |
808 o.sparkJob = buildSparkJob(); | 789 o.sparkJob = buildSparkJob(); |
809 o.sparkSqlJob = buildSparkSqlJob(); | 790 o.sparkSqlJob = buildSparkSqlJob(); |
810 o.status = buildJobStatus(); | 791 o.status = buildJobStatus(); |
811 o.statusHistory = buildUnnamed474(); | 792 o.statusHistory = buildUnnamed478(); |
812 o.yarnApplications = buildUnnamed475(); | 793 o.yarnApplications = buildUnnamed479(); |
813 } | 794 } |
814 buildCounterJob--; | 795 buildCounterJob--; |
815 return o; | 796 return o; |
816 } | 797 } |
817 | 798 |
818 checkJob(api.Job o) { | 799 checkJob(api.Job o) { |
819 buildCounterJob++; | 800 buildCounterJob++; |
820 if (buildCounterJob < 3) { | 801 if (buildCounterJob < 3) { |
821 unittest.expect(o.driverControlFilesUri, unittest.equals('foo')); | 802 unittest.expect(o.driverControlFilesUri, unittest.equals('foo')); |
822 unittest.expect(o.driverOutputResourceUri, unittest.equals('foo')); | 803 unittest.expect(o.driverOutputResourceUri, unittest.equals('foo')); |
823 checkHadoopJob(o.hadoopJob); | 804 checkHadoopJob(o.hadoopJob); |
824 checkHiveJob(o.hiveJob); | 805 checkHiveJob(o.hiveJob); |
825 checkUnnamed473(o.labels); | 806 checkUnnamed477(o.labels); |
826 checkPigJob(o.pigJob); | 807 checkPigJob(o.pigJob); |
827 checkJobPlacement(o.placement); | 808 checkJobPlacement(o.placement); |
828 checkPySparkJob(o.pysparkJob); | 809 checkPySparkJob(o.pysparkJob); |
829 checkJobReference(o.reference); | 810 checkJobReference(o.reference); |
830 checkJobScheduling(o.scheduling); | 811 checkJobScheduling(o.scheduling); |
831 checkSparkJob(o.sparkJob); | 812 checkSparkJob(o.sparkJob); |
832 checkSparkSqlJob(o.sparkSqlJob); | 813 checkSparkSqlJob(o.sparkSqlJob); |
833 checkJobStatus(o.status); | 814 checkJobStatus(o.status); |
834 checkUnnamed474(o.statusHistory); | 815 checkUnnamed478(o.statusHistory); |
835 checkUnnamed475(o.yarnApplications); | 816 checkUnnamed479(o.yarnApplications); |
836 } | 817 } |
837 buildCounterJob--; | 818 buildCounterJob--; |
838 } | 819 } |
839 | 820 |
840 core.int buildCounterJobPlacement = 0; | 821 core.int buildCounterJobPlacement = 0; |
841 buildJobPlacement() { | 822 buildJobPlacement() { |
842 var o = new api.JobPlacement(); | 823 var o = new api.JobPlacement(); |
843 buildCounterJobPlacement++; | 824 buildCounterJobPlacement++; |
844 if (buildCounterJobPlacement < 3) { | 825 if (buildCounterJobPlacement < 3) { |
845 o.clusterName = "foo"; | 826 o.clusterName = "foo"; |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
916 buildCounterJobStatus++; | 897 buildCounterJobStatus++; |
917 if (buildCounterJobStatus < 3) { | 898 if (buildCounterJobStatus < 3) { |
918 unittest.expect(o.details, unittest.equals('foo')); | 899 unittest.expect(o.details, unittest.equals('foo')); |
919 unittest.expect(o.state, unittest.equals('foo')); | 900 unittest.expect(o.state, unittest.equals('foo')); |
920 unittest.expect(o.stateStartTime, unittest.equals('foo')); | 901 unittest.expect(o.stateStartTime, unittest.equals('foo')); |
921 unittest.expect(o.substate, unittest.equals('foo')); | 902 unittest.expect(o.substate, unittest.equals('foo')); |
922 } | 903 } |
923 buildCounterJobStatus--; | 904 buildCounterJobStatus--; |
924 } | 905 } |
925 | 906 |
926 buildUnnamed476() { | 907 buildUnnamed480() { |
927 var o = new core.List<api.Cluster>(); | 908 var o = new core.List<api.Cluster>(); |
928 o.add(buildCluster()); | 909 o.add(buildCluster()); |
929 o.add(buildCluster()); | 910 o.add(buildCluster()); |
930 return o; | 911 return o; |
931 } | 912 } |
932 | 913 |
933 checkUnnamed476(core.List<api.Cluster> o) { | 914 checkUnnamed480(core.List<api.Cluster> o) { |
934 unittest.expect(o, unittest.hasLength(2)); | 915 unittest.expect(o, unittest.hasLength(2)); |
935 checkCluster(o[0]); | 916 checkCluster(o[0]); |
936 checkCluster(o[1]); | 917 checkCluster(o[1]); |
937 } | 918 } |
938 | 919 |
939 core.int buildCounterListClustersResponse = 0; | 920 core.int buildCounterListClustersResponse = 0; |
940 buildListClustersResponse() { | 921 buildListClustersResponse() { |
941 var o = new api.ListClustersResponse(); | 922 var o = new api.ListClustersResponse(); |
942 buildCounterListClustersResponse++; | 923 buildCounterListClustersResponse++; |
943 if (buildCounterListClustersResponse < 3) { | 924 if (buildCounterListClustersResponse < 3) { |
944 o.clusters = buildUnnamed476(); | 925 o.clusters = buildUnnamed480(); |
945 o.nextPageToken = "foo"; | 926 o.nextPageToken = "foo"; |
946 } | 927 } |
947 buildCounterListClustersResponse--; | 928 buildCounterListClustersResponse--; |
948 return o; | 929 return o; |
949 } | 930 } |
950 | 931 |
951 checkListClustersResponse(api.ListClustersResponse o) { | 932 checkListClustersResponse(api.ListClustersResponse o) { |
952 buildCounterListClustersResponse++; | 933 buildCounterListClustersResponse++; |
953 if (buildCounterListClustersResponse < 3) { | 934 if (buildCounterListClustersResponse < 3) { |
954 checkUnnamed476(o.clusters); | 935 checkUnnamed480(o.clusters); |
955 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 936 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
956 } | 937 } |
957 buildCounterListClustersResponse--; | 938 buildCounterListClustersResponse--; |
958 } | 939 } |
959 | 940 |
960 buildUnnamed477() { | 941 buildUnnamed481() { |
961 var o = new core.List<api.Job>(); | 942 var o = new core.List<api.Job>(); |
962 o.add(buildJob()); | 943 o.add(buildJob()); |
963 o.add(buildJob()); | 944 o.add(buildJob()); |
964 return o; | 945 return o; |
965 } | 946 } |
966 | 947 |
967 checkUnnamed477(core.List<api.Job> o) { | 948 checkUnnamed481(core.List<api.Job> o) { |
968 unittest.expect(o, unittest.hasLength(2)); | 949 unittest.expect(o, unittest.hasLength(2)); |
969 checkJob(o[0]); | 950 checkJob(o[0]); |
970 checkJob(o[1]); | 951 checkJob(o[1]); |
971 } | 952 } |
972 | 953 |
973 core.int buildCounterListJobsResponse = 0; | 954 core.int buildCounterListJobsResponse = 0; |
974 buildListJobsResponse() { | 955 buildListJobsResponse() { |
975 var o = new api.ListJobsResponse(); | 956 var o = new api.ListJobsResponse(); |
976 buildCounterListJobsResponse++; | 957 buildCounterListJobsResponse++; |
977 if (buildCounterListJobsResponse < 3) { | 958 if (buildCounterListJobsResponse < 3) { |
978 o.jobs = buildUnnamed477(); | 959 o.jobs = buildUnnamed481(); |
979 o.nextPageToken = "foo"; | 960 o.nextPageToken = "foo"; |
980 } | 961 } |
981 buildCounterListJobsResponse--; | 962 buildCounterListJobsResponse--; |
982 return o; | 963 return o; |
983 } | 964 } |
984 | 965 |
985 checkListJobsResponse(api.ListJobsResponse o) { | 966 checkListJobsResponse(api.ListJobsResponse o) { |
986 buildCounterListJobsResponse++; | 967 buildCounterListJobsResponse++; |
987 if (buildCounterListJobsResponse < 3) { | 968 if (buildCounterListJobsResponse < 3) { |
988 checkUnnamed477(o.jobs); | 969 checkUnnamed481(o.jobs); |
989 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 970 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
990 } | 971 } |
991 buildCounterListJobsResponse--; | 972 buildCounterListJobsResponse--; |
992 } | 973 } |
993 | 974 |
994 buildUnnamed478() { | 975 buildUnnamed482() { |
995 var o = new core.List<api.Operation>(); | 976 var o = new core.List<api.Operation>(); |
996 o.add(buildOperation()); | 977 o.add(buildOperation()); |
997 o.add(buildOperation()); | 978 o.add(buildOperation()); |
998 return o; | 979 return o; |
999 } | 980 } |
1000 | 981 |
1001 checkUnnamed478(core.List<api.Operation> o) { | 982 checkUnnamed482(core.List<api.Operation> o) { |
1002 unittest.expect(o, unittest.hasLength(2)); | 983 unittest.expect(o, unittest.hasLength(2)); |
1003 checkOperation(o[0]); | 984 checkOperation(o[0]); |
1004 checkOperation(o[1]); | 985 checkOperation(o[1]); |
1005 } | 986 } |
1006 | 987 |
1007 core.int buildCounterListOperationsResponse = 0; | 988 core.int buildCounterListOperationsResponse = 0; |
1008 buildListOperationsResponse() { | 989 buildListOperationsResponse() { |
1009 var o = new api.ListOperationsResponse(); | 990 var o = new api.ListOperationsResponse(); |
1010 buildCounterListOperationsResponse++; | 991 buildCounterListOperationsResponse++; |
1011 if (buildCounterListOperationsResponse < 3) { | 992 if (buildCounterListOperationsResponse < 3) { |
1012 o.nextPageToken = "foo"; | 993 o.nextPageToken = "foo"; |
1013 o.operations = buildUnnamed478(); | 994 o.operations = buildUnnamed482(); |
1014 } | 995 } |
1015 buildCounterListOperationsResponse--; | 996 buildCounterListOperationsResponse--; |
1016 return o; | 997 return o; |
1017 } | 998 } |
1018 | 999 |
1019 checkListOperationsResponse(api.ListOperationsResponse o) { | 1000 checkListOperationsResponse(api.ListOperationsResponse o) { |
1020 buildCounterListOperationsResponse++; | 1001 buildCounterListOperationsResponse++; |
1021 if (buildCounterListOperationsResponse < 3) { | 1002 if (buildCounterListOperationsResponse < 3) { |
1022 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1003 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
1023 checkUnnamed478(o.operations); | 1004 checkUnnamed482(o.operations); |
1024 } | 1005 } |
1025 buildCounterListOperationsResponse--; | 1006 buildCounterListOperationsResponse--; |
1026 } | 1007 } |
1027 | 1008 |
1028 buildUnnamed479() { | 1009 buildUnnamed483() { |
1029 var o = new core.Map<core.String, core.String>(); | 1010 var o = new core.Map<core.String, core.String>(); |
1030 o["x"] = "foo"; | 1011 o["x"] = "foo"; |
1031 o["y"] = "foo"; | 1012 o["y"] = "foo"; |
1032 return o; | 1013 return o; |
1033 } | 1014 } |
1034 | 1015 |
1035 checkUnnamed479(core.Map<core.String, core.String> o) { | 1016 checkUnnamed483(core.Map<core.String, core.String> o) { |
1036 unittest.expect(o, unittest.hasLength(2)); | 1017 unittest.expect(o, unittest.hasLength(2)); |
1037 unittest.expect(o["x"], unittest.equals('foo')); | 1018 unittest.expect(o["x"], unittest.equals('foo')); |
1038 unittest.expect(o["y"], unittest.equals('foo')); | 1019 unittest.expect(o["y"], unittest.equals('foo')); |
1039 } | 1020 } |
1040 | 1021 |
1041 core.int buildCounterLoggingConfig = 0; | 1022 core.int buildCounterLoggingConfig = 0; |
1042 buildLoggingConfig() { | 1023 buildLoggingConfig() { |
1043 var o = new api.LoggingConfig(); | 1024 var o = new api.LoggingConfig(); |
1044 buildCounterLoggingConfig++; | 1025 buildCounterLoggingConfig++; |
1045 if (buildCounterLoggingConfig < 3) { | 1026 if (buildCounterLoggingConfig < 3) { |
1046 o.driverLogLevels = buildUnnamed479(); | 1027 o.driverLogLevels = buildUnnamed483(); |
1047 } | 1028 } |
1048 buildCounterLoggingConfig--; | 1029 buildCounterLoggingConfig--; |
1049 return o; | 1030 return o; |
1050 } | 1031 } |
1051 | 1032 |
1052 checkLoggingConfig(api.LoggingConfig o) { | 1033 checkLoggingConfig(api.LoggingConfig o) { |
1053 buildCounterLoggingConfig++; | 1034 buildCounterLoggingConfig++; |
1054 if (buildCounterLoggingConfig < 3) { | 1035 if (buildCounterLoggingConfig < 3) { |
1055 checkUnnamed479(o.driverLogLevels); | 1036 checkUnnamed483(o.driverLogLevels); |
1056 } | 1037 } |
1057 buildCounterLoggingConfig--; | 1038 buildCounterLoggingConfig--; |
1058 } | 1039 } |
1059 | 1040 |
1060 core.int buildCounterManagedGroupConfig = 0; | 1041 core.int buildCounterManagedGroupConfig = 0; |
1061 buildManagedGroupConfig() { | 1042 buildManagedGroupConfig() { |
1062 var o = new api.ManagedGroupConfig(); | 1043 var o = new api.ManagedGroupConfig(); |
1063 buildCounterManagedGroupConfig++; | 1044 buildCounterManagedGroupConfig++; |
1064 if (buildCounterManagedGroupConfig < 3) { | 1045 if (buildCounterManagedGroupConfig < 3) { |
1065 o.instanceGroupManagerName = "foo"; | 1046 o.instanceGroupManagerName = "foo"; |
(...skipping 26 matching lines...) Expand all Loading... |
1092 | 1073 |
1093 checkNodeInitializationAction(api.NodeInitializationAction o) { | 1074 checkNodeInitializationAction(api.NodeInitializationAction o) { |
1094 buildCounterNodeInitializationAction++; | 1075 buildCounterNodeInitializationAction++; |
1095 if (buildCounterNodeInitializationAction < 3) { | 1076 if (buildCounterNodeInitializationAction < 3) { |
1096 unittest.expect(o.executableFile, unittest.equals('foo')); | 1077 unittest.expect(o.executableFile, unittest.equals('foo')); |
1097 unittest.expect(o.executionTimeout, unittest.equals('foo')); | 1078 unittest.expect(o.executionTimeout, unittest.equals('foo')); |
1098 } | 1079 } |
1099 buildCounterNodeInitializationAction--; | 1080 buildCounterNodeInitializationAction--; |
1100 } | 1081 } |
1101 | 1082 |
1102 buildUnnamed480() { | 1083 buildUnnamed484() { |
1103 var o = new core.Map<core.String, core.Object>(); | 1084 var o = new core.Map<core.String, core.Object>(); |
1104 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1085 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
1105 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1086 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
1106 return o; | 1087 return o; |
1107 } | 1088 } |
1108 | 1089 |
1109 checkUnnamed480(core.Map<core.String, core.Object> o) { | 1090 checkUnnamed484(core.Map<core.String, core.Object> o) { |
1110 unittest.expect(o, unittest.hasLength(2)); | 1091 unittest.expect(o, unittest.hasLength(2)); |
1111 var casted1 = (o["x"]) as core.Map; unittest.expect(casted1, unittest.hasLengt
h(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"],
unittest.equals('foo')); | 1092 var casted1 = (o["x"]) as core.Map; unittest.expect(casted1, unittest.hasLengt
h(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"],
unittest.equals('foo')); |
1112 var casted2 = (o["y"]) as core.Map; unittest.expect(casted2, unittest.hasLengt
h(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"],
unittest.equals('foo')); | 1093 var casted2 = (o["y"]) as core.Map; unittest.expect(casted2, unittest.hasLengt
h(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"],
unittest.equals('foo')); |
1113 } | 1094 } |
1114 | 1095 |
1115 buildUnnamed481() { | 1096 buildUnnamed485() { |
1116 var o = new core.Map<core.String, core.Object>(); | 1097 var o = new core.Map<core.String, core.Object>(); |
1117 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1098 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
1118 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1099 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
1119 return o; | 1100 return o; |
1120 } | 1101 } |
1121 | 1102 |
1122 checkUnnamed481(core.Map<core.String, core.Object> o) { | 1103 checkUnnamed485(core.Map<core.String, core.Object> o) { |
1123 unittest.expect(o, unittest.hasLength(2)); | 1104 unittest.expect(o, unittest.hasLength(2)); |
1124 var casted3 = (o["x"]) as core.Map; unittest.expect(casted3, unittest.hasLengt
h(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"],
unittest.equals('foo')); | 1105 var casted3 = (o["x"]) as core.Map; unittest.expect(casted3, unittest.hasLengt
h(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"],
unittest.equals('foo')); |
1125 var casted4 = (o["y"]) as core.Map; unittest.expect(casted4, unittest.hasLengt
h(3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"],
unittest.equals('foo')); | 1106 var casted4 = (o["y"]) as core.Map; unittest.expect(casted4, unittest.hasLengt
h(3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"],
unittest.equals('foo')); |
1126 } | 1107 } |
1127 | 1108 |
1128 core.int buildCounterOperation = 0; | 1109 core.int buildCounterOperation = 0; |
1129 buildOperation() { | 1110 buildOperation() { |
1130 var o = new api.Operation(); | 1111 var o = new api.Operation(); |
1131 buildCounterOperation++; | 1112 buildCounterOperation++; |
1132 if (buildCounterOperation < 3) { | 1113 if (buildCounterOperation < 3) { |
1133 o.done = true; | 1114 o.done = true; |
1134 o.error = buildStatus(); | 1115 o.error = buildStatus(); |
1135 o.metadata = buildUnnamed480(); | 1116 o.metadata = buildUnnamed484(); |
1136 o.name = "foo"; | 1117 o.name = "foo"; |
1137 o.response = buildUnnamed481(); | 1118 o.response = buildUnnamed485(); |
1138 } | 1119 } |
1139 buildCounterOperation--; | 1120 buildCounterOperation--; |
1140 return o; | 1121 return o; |
1141 } | 1122 } |
1142 | 1123 |
1143 checkOperation(api.Operation o) { | 1124 checkOperation(api.Operation o) { |
1144 buildCounterOperation++; | 1125 buildCounterOperation++; |
1145 if (buildCounterOperation < 3) { | 1126 if (buildCounterOperation < 3) { |
1146 unittest.expect(o.done, unittest.isTrue); | 1127 unittest.expect(o.done, unittest.isTrue); |
1147 checkStatus(o.error); | 1128 checkStatus(o.error); |
1148 checkUnnamed480(o.metadata); | 1129 checkUnnamed484(o.metadata); |
1149 unittest.expect(o.name, unittest.equals('foo')); | 1130 unittest.expect(o.name, unittest.equals('foo')); |
1150 checkUnnamed481(o.response); | 1131 checkUnnamed485(o.response); |
1151 } | 1132 } |
1152 buildCounterOperation--; | 1133 buildCounterOperation--; |
1153 } | 1134 } |
1154 | 1135 |
1155 buildUnnamed482() { | 1136 buildUnnamed486() { |
1156 var o = new core.List<api.OperationStatus>(); | |
1157 o.add(buildOperationStatus()); | |
1158 o.add(buildOperationStatus()); | |
1159 return o; | |
1160 } | |
1161 | |
1162 checkUnnamed482(core.List<api.OperationStatus> o) { | |
1163 unittest.expect(o, unittest.hasLength(2)); | |
1164 checkOperationStatus(o[0]); | |
1165 checkOperationStatus(o[1]); | |
1166 } | |
1167 | |
1168 buildUnnamed483() { | |
1169 var o = new core.List<core.String>(); | 1137 var o = new core.List<core.String>(); |
1170 o.add("foo"); | 1138 o.add("foo"); |
1171 o.add("foo"); | 1139 o.add("foo"); |
1172 return o; | 1140 return o; |
1173 } | 1141 } |
1174 | 1142 |
1175 checkUnnamed483(core.List<core.String> o) { | 1143 checkUnnamed486(core.List<core.String> o) { |
1176 unittest.expect(o, unittest.hasLength(2)); | 1144 unittest.expect(o, unittest.hasLength(2)); |
1177 unittest.expect(o[0], unittest.equals('foo')); | 1145 unittest.expect(o[0], unittest.equals('foo')); |
1178 unittest.expect(o[1], unittest.equals('foo')); | 1146 unittest.expect(o[1], unittest.equals('foo')); |
1179 } | 1147 } |
1180 | 1148 |
1181 core.int buildCounterOperationMetadata = 0; | 1149 buildUnnamed487() { |
1182 buildOperationMetadata() { | |
1183 var o = new api.OperationMetadata(); | |
1184 buildCounterOperationMetadata++; | |
1185 if (buildCounterOperationMetadata < 3) { | |
1186 o.clusterName = "foo"; | |
1187 o.clusterUuid = "foo"; | |
1188 o.description = "foo"; | |
1189 o.details = "foo"; | |
1190 o.endTime = "foo"; | |
1191 o.innerState = "foo"; | |
1192 o.insertTime = "foo"; | |
1193 o.operationType = "foo"; | |
1194 o.startTime = "foo"; | |
1195 o.state = "foo"; | |
1196 o.status = buildOperationStatus(); | |
1197 o.statusHistory = buildUnnamed482(); | |
1198 o.warnings = buildUnnamed483(); | |
1199 } | |
1200 buildCounterOperationMetadata--; | |
1201 return o; | |
1202 } | |
1203 | |
1204 checkOperationMetadata(api.OperationMetadata o) { | |
1205 buildCounterOperationMetadata++; | |
1206 if (buildCounterOperationMetadata < 3) { | |
1207 unittest.expect(o.clusterName, unittest.equals('foo')); | |
1208 unittest.expect(o.clusterUuid, unittest.equals('foo')); | |
1209 unittest.expect(o.description, unittest.equals('foo')); | |
1210 unittest.expect(o.details, unittest.equals('foo')); | |
1211 unittest.expect(o.endTime, unittest.equals('foo')); | |
1212 unittest.expect(o.innerState, unittest.equals('foo')); | |
1213 unittest.expect(o.insertTime, unittest.equals('foo')); | |
1214 unittest.expect(o.operationType, unittest.equals('foo')); | |
1215 unittest.expect(o.startTime, unittest.equals('foo')); | |
1216 unittest.expect(o.state, unittest.equals('foo')); | |
1217 checkOperationStatus(o.status); | |
1218 checkUnnamed482(o.statusHistory); | |
1219 checkUnnamed483(o.warnings); | |
1220 } | |
1221 buildCounterOperationMetadata--; | |
1222 } | |
1223 | |
1224 core.int buildCounterOperationStatus = 0; | |
1225 buildOperationStatus() { | |
1226 var o = new api.OperationStatus(); | |
1227 buildCounterOperationStatus++; | |
1228 if (buildCounterOperationStatus < 3) { | |
1229 o.details = "foo"; | |
1230 o.innerState = "foo"; | |
1231 o.state = "foo"; | |
1232 o.stateStartTime = "foo"; | |
1233 } | |
1234 buildCounterOperationStatus--; | |
1235 return o; | |
1236 } | |
1237 | |
1238 checkOperationStatus(api.OperationStatus o) { | |
1239 buildCounterOperationStatus++; | |
1240 if (buildCounterOperationStatus < 3) { | |
1241 unittest.expect(o.details, unittest.equals('foo')); | |
1242 unittest.expect(o.innerState, unittest.equals('foo')); | |
1243 unittest.expect(o.state, unittest.equals('foo')); | |
1244 unittest.expect(o.stateStartTime, unittest.equals('foo')); | |
1245 } | |
1246 buildCounterOperationStatus--; | |
1247 } | |
1248 | |
1249 buildUnnamed484() { | |
1250 var o = new core.List<core.String>(); | |
1251 o.add("foo"); | |
1252 o.add("foo"); | |
1253 return o; | |
1254 } | |
1255 | |
1256 checkUnnamed484(core.List<core.String> o) { | |
1257 unittest.expect(o, unittest.hasLength(2)); | |
1258 unittest.expect(o[0], unittest.equals('foo')); | |
1259 unittest.expect(o[1], unittest.equals('foo')); | |
1260 } | |
1261 | |
1262 buildUnnamed485() { | |
1263 var o = new core.Map<core.String, core.String>(); | 1150 var o = new core.Map<core.String, core.String>(); |
1264 o["x"] = "foo"; | 1151 o["x"] = "foo"; |
1265 o["y"] = "foo"; | 1152 o["y"] = "foo"; |
1266 return o; | 1153 return o; |
1267 } | 1154 } |
1268 | 1155 |
1269 checkUnnamed485(core.Map<core.String, core.String> o) { | 1156 checkUnnamed487(core.Map<core.String, core.String> o) { |
1270 unittest.expect(o, unittest.hasLength(2)); | 1157 unittest.expect(o, unittest.hasLength(2)); |
1271 unittest.expect(o["x"], unittest.equals('foo')); | 1158 unittest.expect(o["x"], unittest.equals('foo')); |
1272 unittest.expect(o["y"], unittest.equals('foo')); | 1159 unittest.expect(o["y"], unittest.equals('foo')); |
1273 } | 1160 } |
1274 | 1161 |
1275 buildUnnamed486() { | 1162 buildUnnamed488() { |
1276 var o = new core.Map<core.String, core.String>(); | 1163 var o = new core.Map<core.String, core.String>(); |
1277 o["x"] = "foo"; | 1164 o["x"] = "foo"; |
1278 o["y"] = "foo"; | 1165 o["y"] = "foo"; |
1279 return o; | 1166 return o; |
1280 } | 1167 } |
1281 | 1168 |
1282 checkUnnamed486(core.Map<core.String, core.String> o) { | 1169 checkUnnamed488(core.Map<core.String, core.String> o) { |
1283 unittest.expect(o, unittest.hasLength(2)); | 1170 unittest.expect(o, unittest.hasLength(2)); |
1284 unittest.expect(o["x"], unittest.equals('foo')); | 1171 unittest.expect(o["x"], unittest.equals('foo')); |
1285 unittest.expect(o["y"], unittest.equals('foo')); | 1172 unittest.expect(o["y"], unittest.equals('foo')); |
1286 } | 1173 } |
1287 | 1174 |
1288 core.int buildCounterPigJob = 0; | 1175 core.int buildCounterPigJob = 0; |
1289 buildPigJob() { | 1176 buildPigJob() { |
1290 var o = new api.PigJob(); | 1177 var o = new api.PigJob(); |
1291 buildCounterPigJob++; | 1178 buildCounterPigJob++; |
1292 if (buildCounterPigJob < 3) { | 1179 if (buildCounterPigJob < 3) { |
1293 o.continueOnFailure = true; | 1180 o.continueOnFailure = true; |
1294 o.jarFileUris = buildUnnamed484(); | 1181 o.jarFileUris = buildUnnamed486(); |
1295 o.loggingConfig = buildLoggingConfig(); | 1182 o.loggingConfig = buildLoggingConfig(); |
1296 o.properties = buildUnnamed485(); | 1183 o.properties = buildUnnamed487(); |
1297 o.queryFileUri = "foo"; | 1184 o.queryFileUri = "foo"; |
1298 o.queryList = buildQueryList(); | 1185 o.queryList = buildQueryList(); |
1299 o.scriptVariables = buildUnnamed486(); | 1186 o.scriptVariables = buildUnnamed488(); |
1300 } | 1187 } |
1301 buildCounterPigJob--; | 1188 buildCounterPigJob--; |
1302 return o; | 1189 return o; |
1303 } | 1190 } |
1304 | 1191 |
1305 checkPigJob(api.PigJob o) { | 1192 checkPigJob(api.PigJob o) { |
1306 buildCounterPigJob++; | 1193 buildCounterPigJob++; |
1307 if (buildCounterPigJob < 3) { | 1194 if (buildCounterPigJob < 3) { |
1308 unittest.expect(o.continueOnFailure, unittest.isTrue); | 1195 unittest.expect(o.continueOnFailure, unittest.isTrue); |
1309 checkUnnamed484(o.jarFileUris); | 1196 checkUnnamed486(o.jarFileUris); |
1310 checkLoggingConfig(o.loggingConfig); | 1197 checkLoggingConfig(o.loggingConfig); |
1311 checkUnnamed485(o.properties); | 1198 checkUnnamed487(o.properties); |
1312 unittest.expect(o.queryFileUri, unittest.equals('foo')); | 1199 unittest.expect(o.queryFileUri, unittest.equals('foo')); |
1313 checkQueryList(o.queryList); | 1200 checkQueryList(o.queryList); |
1314 checkUnnamed486(o.scriptVariables); | 1201 checkUnnamed488(o.scriptVariables); |
1315 } | 1202 } |
1316 buildCounterPigJob--; | 1203 buildCounterPigJob--; |
1317 } | 1204 } |
1318 | 1205 |
1319 buildUnnamed487() { | |
1320 var o = new core.List<core.String>(); | |
1321 o.add("foo"); | |
1322 o.add("foo"); | |
1323 return o; | |
1324 } | |
1325 | |
1326 checkUnnamed487(core.List<core.String> o) { | |
1327 unittest.expect(o, unittest.hasLength(2)); | |
1328 unittest.expect(o[0], unittest.equals('foo')); | |
1329 unittest.expect(o[1], unittest.equals('foo')); | |
1330 } | |
1331 | |
1332 buildUnnamed488() { | |
1333 var o = new core.List<core.String>(); | |
1334 o.add("foo"); | |
1335 o.add("foo"); | |
1336 return o; | |
1337 } | |
1338 | |
1339 checkUnnamed488(core.List<core.String> o) { | |
1340 unittest.expect(o, unittest.hasLength(2)); | |
1341 unittest.expect(o[0], unittest.equals('foo')); | |
1342 unittest.expect(o[1], unittest.equals('foo')); | |
1343 } | |
1344 | |
1345 buildUnnamed489() { | 1206 buildUnnamed489() { |
1346 var o = new core.List<core.String>(); | 1207 var o = new core.List<core.String>(); |
1347 o.add("foo"); | 1208 o.add("foo"); |
1348 o.add("foo"); | 1209 o.add("foo"); |
1349 return o; | 1210 return o; |
1350 } | 1211 } |
1351 | 1212 |
1352 checkUnnamed489(core.List<core.String> o) { | 1213 checkUnnamed489(core.List<core.String> o) { |
1353 unittest.expect(o, unittest.hasLength(2)); | 1214 unittest.expect(o, unittest.hasLength(2)); |
1354 unittest.expect(o[0], unittest.equals('foo')); | 1215 unittest.expect(o[0], unittest.equals('foo')); |
1355 unittest.expect(o[1], unittest.equals('foo')); | 1216 unittest.expect(o[1], unittest.equals('foo')); |
1356 } | 1217 } |
1357 | 1218 |
1358 buildUnnamed490() { | 1219 buildUnnamed490() { |
1359 var o = new core.List<core.String>(); | 1220 var o = new core.List<core.String>(); |
1360 o.add("foo"); | 1221 o.add("foo"); |
1361 o.add("foo"); | 1222 o.add("foo"); |
1362 return o; | 1223 return o; |
1363 } | 1224 } |
1364 | 1225 |
1365 checkUnnamed490(core.List<core.String> o) { | 1226 checkUnnamed490(core.List<core.String> o) { |
1366 unittest.expect(o, unittest.hasLength(2)); | 1227 unittest.expect(o, unittest.hasLength(2)); |
1367 unittest.expect(o[0], unittest.equals('foo')); | 1228 unittest.expect(o[0], unittest.equals('foo')); |
1368 unittest.expect(o[1], unittest.equals('foo')); | 1229 unittest.expect(o[1], unittest.equals('foo')); |
1369 } | 1230 } |
1370 | 1231 |
1371 buildUnnamed491() { | 1232 buildUnnamed491() { |
1372 var o = new core.Map<core.String, core.String>(); | 1233 var o = new core.List<core.String>(); |
1373 o["x"] = "foo"; | 1234 o.add("foo"); |
1374 o["y"] = "foo"; | 1235 o.add("foo"); |
1375 return o; | 1236 return o; |
1376 } | 1237 } |
1377 | 1238 |
1378 checkUnnamed491(core.Map<core.String, core.String> o) { | 1239 checkUnnamed491(core.List<core.String> o) { |
1379 unittest.expect(o, unittest.hasLength(2)); | 1240 unittest.expect(o, unittest.hasLength(2)); |
1380 unittest.expect(o["x"], unittest.equals('foo')); | 1241 unittest.expect(o[0], unittest.equals('foo')); |
1381 unittest.expect(o["y"], unittest.equals('foo')); | 1242 unittest.expect(o[1], unittest.equals('foo')); |
1382 } | 1243 } |
1383 | 1244 |
1384 buildUnnamed492() { | 1245 buildUnnamed492() { |
1385 var o = new core.List<core.String>(); | 1246 var o = new core.List<core.String>(); |
1386 o.add("foo"); | 1247 o.add("foo"); |
1387 o.add("foo"); | 1248 o.add("foo"); |
1388 return o; | 1249 return o; |
1389 } | 1250 } |
1390 | 1251 |
1391 checkUnnamed492(core.List<core.String> o) { | 1252 checkUnnamed492(core.List<core.String> o) { |
1392 unittest.expect(o, unittest.hasLength(2)); | 1253 unittest.expect(o, unittest.hasLength(2)); |
1393 unittest.expect(o[0], unittest.equals('foo')); | 1254 unittest.expect(o[0], unittest.equals('foo')); |
1394 unittest.expect(o[1], unittest.equals('foo')); | 1255 unittest.expect(o[1], unittest.equals('foo')); |
| 1256 } |
| 1257 |
| 1258 buildUnnamed493() { |
| 1259 var o = new core.Map<core.String, core.String>(); |
| 1260 o["x"] = "foo"; |
| 1261 o["y"] = "foo"; |
| 1262 return o; |
| 1263 } |
| 1264 |
| 1265 checkUnnamed493(core.Map<core.String, core.String> o) { |
| 1266 unittest.expect(o, unittest.hasLength(2)); |
| 1267 unittest.expect(o["x"], unittest.equals('foo')); |
| 1268 unittest.expect(o["y"], unittest.equals('foo')); |
| 1269 } |
| 1270 |
| 1271 buildUnnamed494() { |
| 1272 var o = new core.List<core.String>(); |
| 1273 o.add("foo"); |
| 1274 o.add("foo"); |
| 1275 return o; |
| 1276 } |
| 1277 |
| 1278 checkUnnamed494(core.List<core.String> o) { |
| 1279 unittest.expect(o, unittest.hasLength(2)); |
| 1280 unittest.expect(o[0], unittest.equals('foo')); |
| 1281 unittest.expect(o[1], unittest.equals('foo')); |
1395 } | 1282 } |
1396 | 1283 |
1397 core.int buildCounterPySparkJob = 0; | 1284 core.int buildCounterPySparkJob = 0; |
1398 buildPySparkJob() { | 1285 buildPySparkJob() { |
1399 var o = new api.PySparkJob(); | 1286 var o = new api.PySparkJob(); |
1400 buildCounterPySparkJob++; | 1287 buildCounterPySparkJob++; |
1401 if (buildCounterPySparkJob < 3) { | 1288 if (buildCounterPySparkJob < 3) { |
1402 o.archiveUris = buildUnnamed487(); | 1289 o.archiveUris = buildUnnamed489(); |
1403 o.args = buildUnnamed488(); | 1290 o.args = buildUnnamed490(); |
1404 o.fileUris = buildUnnamed489(); | 1291 o.fileUris = buildUnnamed491(); |
1405 o.jarFileUris = buildUnnamed490(); | 1292 o.jarFileUris = buildUnnamed492(); |
1406 o.loggingConfig = buildLoggingConfig(); | 1293 o.loggingConfig = buildLoggingConfig(); |
1407 o.mainPythonFileUri = "foo"; | 1294 o.mainPythonFileUri = "foo"; |
1408 o.properties = buildUnnamed491(); | 1295 o.properties = buildUnnamed493(); |
1409 o.pythonFileUris = buildUnnamed492(); | 1296 o.pythonFileUris = buildUnnamed494(); |
1410 } | 1297 } |
1411 buildCounterPySparkJob--; | 1298 buildCounterPySparkJob--; |
1412 return o; | 1299 return o; |
1413 } | 1300 } |
1414 | 1301 |
1415 checkPySparkJob(api.PySparkJob o) { | 1302 checkPySparkJob(api.PySparkJob o) { |
1416 buildCounterPySparkJob++; | 1303 buildCounterPySparkJob++; |
1417 if (buildCounterPySparkJob < 3) { | 1304 if (buildCounterPySparkJob < 3) { |
1418 checkUnnamed487(o.archiveUris); | 1305 checkUnnamed489(o.archiveUris); |
1419 checkUnnamed488(o.args); | 1306 checkUnnamed490(o.args); |
1420 checkUnnamed489(o.fileUris); | 1307 checkUnnamed491(o.fileUris); |
1421 checkUnnamed490(o.jarFileUris); | 1308 checkUnnamed492(o.jarFileUris); |
1422 checkLoggingConfig(o.loggingConfig); | 1309 checkLoggingConfig(o.loggingConfig); |
1423 unittest.expect(o.mainPythonFileUri, unittest.equals('foo')); | 1310 unittest.expect(o.mainPythonFileUri, unittest.equals('foo')); |
1424 checkUnnamed491(o.properties); | 1311 checkUnnamed493(o.properties); |
1425 checkUnnamed492(o.pythonFileUris); | 1312 checkUnnamed494(o.pythonFileUris); |
1426 } | 1313 } |
1427 buildCounterPySparkJob--; | 1314 buildCounterPySparkJob--; |
1428 } | 1315 } |
1429 | 1316 |
1430 buildUnnamed493() { | 1317 buildUnnamed495() { |
1431 var o = new core.List<core.String>(); | 1318 var o = new core.List<core.String>(); |
1432 o.add("foo"); | 1319 o.add("foo"); |
1433 o.add("foo"); | 1320 o.add("foo"); |
1434 return o; | 1321 return o; |
1435 } | 1322 } |
1436 | 1323 |
1437 checkUnnamed493(core.List<core.String> o) { | 1324 checkUnnamed495(core.List<core.String> o) { |
1438 unittest.expect(o, unittest.hasLength(2)); | 1325 unittest.expect(o, unittest.hasLength(2)); |
1439 unittest.expect(o[0], unittest.equals('foo')); | 1326 unittest.expect(o[0], unittest.equals('foo')); |
1440 unittest.expect(o[1], unittest.equals('foo')); | 1327 unittest.expect(o[1], unittest.equals('foo')); |
1441 } | 1328 } |
1442 | 1329 |
1443 core.int buildCounterQueryList = 0; | 1330 core.int buildCounterQueryList = 0; |
1444 buildQueryList() { | 1331 buildQueryList() { |
1445 var o = new api.QueryList(); | 1332 var o = new api.QueryList(); |
1446 buildCounterQueryList++; | 1333 buildCounterQueryList++; |
1447 if (buildCounterQueryList < 3) { | 1334 if (buildCounterQueryList < 3) { |
1448 o.queries = buildUnnamed493(); | 1335 o.queries = buildUnnamed495(); |
1449 } | 1336 } |
1450 buildCounterQueryList--; | 1337 buildCounterQueryList--; |
1451 return o; | 1338 return o; |
1452 } | 1339 } |
1453 | 1340 |
1454 checkQueryList(api.QueryList o) { | 1341 checkQueryList(api.QueryList o) { |
1455 buildCounterQueryList++; | 1342 buildCounterQueryList++; |
1456 if (buildCounterQueryList < 3) { | 1343 if (buildCounterQueryList < 3) { |
1457 checkUnnamed493(o.queries); | 1344 checkUnnamed495(o.queries); |
1458 } | 1345 } |
1459 buildCounterQueryList--; | 1346 buildCounterQueryList--; |
1460 } | 1347 } |
1461 | 1348 |
1462 buildUnnamed494() { | 1349 buildUnnamed496() { |
1463 var o = new core.Map<core.String, core.String>(); | 1350 var o = new core.Map<core.String, core.String>(); |
1464 o["x"] = "foo"; | 1351 o["x"] = "foo"; |
1465 o["y"] = "foo"; | 1352 o["y"] = "foo"; |
1466 return o; | 1353 return o; |
1467 } | 1354 } |
1468 | 1355 |
1469 checkUnnamed494(core.Map<core.String, core.String> o) { | 1356 checkUnnamed496(core.Map<core.String, core.String> o) { |
1470 unittest.expect(o, unittest.hasLength(2)); | 1357 unittest.expect(o, unittest.hasLength(2)); |
1471 unittest.expect(o["x"], unittest.equals('foo')); | 1358 unittest.expect(o["x"], unittest.equals('foo')); |
1472 unittest.expect(o["y"], unittest.equals('foo')); | 1359 unittest.expect(o["y"], unittest.equals('foo')); |
1473 } | 1360 } |
1474 | 1361 |
1475 core.int buildCounterSoftwareConfig = 0; | 1362 core.int buildCounterSoftwareConfig = 0; |
1476 buildSoftwareConfig() { | 1363 buildSoftwareConfig() { |
1477 var o = new api.SoftwareConfig(); | 1364 var o = new api.SoftwareConfig(); |
1478 buildCounterSoftwareConfig++; | 1365 buildCounterSoftwareConfig++; |
1479 if (buildCounterSoftwareConfig < 3) { | 1366 if (buildCounterSoftwareConfig < 3) { |
1480 o.imageVersion = "foo"; | 1367 o.imageVersion = "foo"; |
1481 o.properties = buildUnnamed494(); | 1368 o.properties = buildUnnamed496(); |
1482 } | 1369 } |
1483 buildCounterSoftwareConfig--; | 1370 buildCounterSoftwareConfig--; |
1484 return o; | 1371 return o; |
1485 } | 1372 } |
1486 | 1373 |
1487 checkSoftwareConfig(api.SoftwareConfig o) { | 1374 checkSoftwareConfig(api.SoftwareConfig o) { |
1488 buildCounterSoftwareConfig++; | 1375 buildCounterSoftwareConfig++; |
1489 if (buildCounterSoftwareConfig < 3) { | 1376 if (buildCounterSoftwareConfig < 3) { |
1490 unittest.expect(o.imageVersion, unittest.equals('foo')); | 1377 unittest.expect(o.imageVersion, unittest.equals('foo')); |
1491 checkUnnamed494(o.properties); | 1378 checkUnnamed496(o.properties); |
1492 } | 1379 } |
1493 buildCounterSoftwareConfig--; | 1380 buildCounterSoftwareConfig--; |
1494 } | 1381 } |
1495 | 1382 |
1496 buildUnnamed495() { | |
1497 var o = new core.List<core.String>(); | |
1498 o.add("foo"); | |
1499 o.add("foo"); | |
1500 return o; | |
1501 } | |
1502 | |
1503 checkUnnamed495(core.List<core.String> o) { | |
1504 unittest.expect(o, unittest.hasLength(2)); | |
1505 unittest.expect(o[0], unittest.equals('foo')); | |
1506 unittest.expect(o[1], unittest.equals('foo')); | |
1507 } | |
1508 | |
1509 buildUnnamed496() { | |
1510 var o = new core.List<core.String>(); | |
1511 o.add("foo"); | |
1512 o.add("foo"); | |
1513 return o; | |
1514 } | |
1515 | |
1516 checkUnnamed496(core.List<core.String> o) { | |
1517 unittest.expect(o, unittest.hasLength(2)); | |
1518 unittest.expect(o[0], unittest.equals('foo')); | |
1519 unittest.expect(o[1], unittest.equals('foo')); | |
1520 } | |
1521 | |
1522 buildUnnamed497() { | 1383 buildUnnamed497() { |
1523 var o = new core.List<core.String>(); | 1384 var o = new core.List<core.String>(); |
1524 o.add("foo"); | 1385 o.add("foo"); |
1525 o.add("foo"); | 1386 o.add("foo"); |
1526 return o; | 1387 return o; |
1527 } | 1388 } |
1528 | 1389 |
1529 checkUnnamed497(core.List<core.String> o) { | 1390 checkUnnamed497(core.List<core.String> o) { |
1530 unittest.expect(o, unittest.hasLength(2)); | 1391 unittest.expect(o, unittest.hasLength(2)); |
1531 unittest.expect(o[0], unittest.equals('foo')); | 1392 unittest.expect(o[0], unittest.equals('foo')); |
1532 unittest.expect(o[1], unittest.equals('foo')); | 1393 unittest.expect(o[1], unittest.equals('foo')); |
1533 } | 1394 } |
1534 | 1395 |
1535 buildUnnamed498() { | 1396 buildUnnamed498() { |
1536 var o = new core.List<core.String>(); | 1397 var o = new core.List<core.String>(); |
1537 o.add("foo"); | 1398 o.add("foo"); |
1538 o.add("foo"); | 1399 o.add("foo"); |
1539 return o; | 1400 return o; |
1540 } | 1401 } |
1541 | 1402 |
1542 checkUnnamed498(core.List<core.String> o) { | 1403 checkUnnamed498(core.List<core.String> o) { |
1543 unittest.expect(o, unittest.hasLength(2)); | 1404 unittest.expect(o, unittest.hasLength(2)); |
1544 unittest.expect(o[0], unittest.equals('foo')); | 1405 unittest.expect(o[0], unittest.equals('foo')); |
1545 unittest.expect(o[1], unittest.equals('foo')); | 1406 unittest.expect(o[1], unittest.equals('foo')); |
1546 } | 1407 } |
1547 | 1408 |
1548 buildUnnamed499() { | 1409 buildUnnamed499() { |
| 1410 var o = new core.List<core.String>(); |
| 1411 o.add("foo"); |
| 1412 o.add("foo"); |
| 1413 return o; |
| 1414 } |
| 1415 |
| 1416 checkUnnamed499(core.List<core.String> o) { |
| 1417 unittest.expect(o, unittest.hasLength(2)); |
| 1418 unittest.expect(o[0], unittest.equals('foo')); |
| 1419 unittest.expect(o[1], unittest.equals('foo')); |
| 1420 } |
| 1421 |
| 1422 buildUnnamed500() { |
| 1423 var o = new core.List<core.String>(); |
| 1424 o.add("foo"); |
| 1425 o.add("foo"); |
| 1426 return o; |
| 1427 } |
| 1428 |
| 1429 checkUnnamed500(core.List<core.String> o) { |
| 1430 unittest.expect(o, unittest.hasLength(2)); |
| 1431 unittest.expect(o[0], unittest.equals('foo')); |
| 1432 unittest.expect(o[1], unittest.equals('foo')); |
| 1433 } |
| 1434 |
| 1435 buildUnnamed501() { |
1549 var o = new core.Map<core.String, core.String>(); | 1436 var o = new core.Map<core.String, core.String>(); |
1550 o["x"] = "foo"; | 1437 o["x"] = "foo"; |
1551 o["y"] = "foo"; | 1438 o["y"] = "foo"; |
1552 return o; | 1439 return o; |
1553 } | 1440 } |
1554 | 1441 |
1555 checkUnnamed499(core.Map<core.String, core.String> o) { | 1442 checkUnnamed501(core.Map<core.String, core.String> o) { |
1556 unittest.expect(o, unittest.hasLength(2)); | 1443 unittest.expect(o, unittest.hasLength(2)); |
1557 unittest.expect(o["x"], unittest.equals('foo')); | 1444 unittest.expect(o["x"], unittest.equals('foo')); |
1558 unittest.expect(o["y"], unittest.equals('foo')); | 1445 unittest.expect(o["y"], unittest.equals('foo')); |
1559 } | 1446 } |
1560 | 1447 |
1561 core.int buildCounterSparkJob = 0; | 1448 core.int buildCounterSparkJob = 0; |
1562 buildSparkJob() { | 1449 buildSparkJob() { |
1563 var o = new api.SparkJob(); | 1450 var o = new api.SparkJob(); |
1564 buildCounterSparkJob++; | 1451 buildCounterSparkJob++; |
1565 if (buildCounterSparkJob < 3) { | 1452 if (buildCounterSparkJob < 3) { |
1566 o.archiveUris = buildUnnamed495(); | 1453 o.archiveUris = buildUnnamed497(); |
1567 o.args = buildUnnamed496(); | 1454 o.args = buildUnnamed498(); |
1568 o.fileUris = buildUnnamed497(); | 1455 o.fileUris = buildUnnamed499(); |
1569 o.jarFileUris = buildUnnamed498(); | 1456 o.jarFileUris = buildUnnamed500(); |
1570 o.loggingConfig = buildLoggingConfig(); | 1457 o.loggingConfig = buildLoggingConfig(); |
1571 o.mainClass = "foo"; | 1458 o.mainClass = "foo"; |
1572 o.mainJarFileUri = "foo"; | 1459 o.mainJarFileUri = "foo"; |
1573 o.properties = buildUnnamed499(); | 1460 o.properties = buildUnnamed501(); |
1574 } | 1461 } |
1575 buildCounterSparkJob--; | 1462 buildCounterSparkJob--; |
1576 return o; | 1463 return o; |
1577 } | 1464 } |
1578 | 1465 |
1579 checkSparkJob(api.SparkJob o) { | 1466 checkSparkJob(api.SparkJob o) { |
1580 buildCounterSparkJob++; | 1467 buildCounterSparkJob++; |
1581 if (buildCounterSparkJob < 3) { | 1468 if (buildCounterSparkJob < 3) { |
1582 checkUnnamed495(o.archiveUris); | 1469 checkUnnamed497(o.archiveUris); |
1583 checkUnnamed496(o.args); | 1470 checkUnnamed498(o.args); |
1584 checkUnnamed497(o.fileUris); | 1471 checkUnnamed499(o.fileUris); |
1585 checkUnnamed498(o.jarFileUris); | 1472 checkUnnamed500(o.jarFileUris); |
1586 checkLoggingConfig(o.loggingConfig); | 1473 checkLoggingConfig(o.loggingConfig); |
1587 unittest.expect(o.mainClass, unittest.equals('foo')); | 1474 unittest.expect(o.mainClass, unittest.equals('foo')); |
1588 unittest.expect(o.mainJarFileUri, unittest.equals('foo')); | 1475 unittest.expect(o.mainJarFileUri, unittest.equals('foo')); |
1589 checkUnnamed499(o.properties); | 1476 checkUnnamed501(o.properties); |
1590 } | 1477 } |
1591 buildCounterSparkJob--; | 1478 buildCounterSparkJob--; |
1592 } | 1479 } |
1593 | 1480 |
1594 buildUnnamed500() { | 1481 buildUnnamed502() { |
1595 var o = new core.List<core.String>(); | 1482 var o = new core.List<core.String>(); |
1596 o.add("foo"); | 1483 o.add("foo"); |
1597 o.add("foo"); | 1484 o.add("foo"); |
1598 return o; | 1485 return o; |
1599 } | 1486 } |
1600 | 1487 |
1601 checkUnnamed500(core.List<core.String> o) { | 1488 checkUnnamed502(core.List<core.String> o) { |
1602 unittest.expect(o, unittest.hasLength(2)); | 1489 unittest.expect(o, unittest.hasLength(2)); |
1603 unittest.expect(o[0], unittest.equals('foo')); | 1490 unittest.expect(o[0], unittest.equals('foo')); |
1604 unittest.expect(o[1], unittest.equals('foo')); | 1491 unittest.expect(o[1], unittest.equals('foo')); |
1605 } | 1492 } |
1606 | 1493 |
1607 buildUnnamed501() { | 1494 buildUnnamed503() { |
1608 var o = new core.Map<core.String, core.String>(); | 1495 var o = new core.Map<core.String, core.String>(); |
1609 o["x"] = "foo"; | 1496 o["x"] = "foo"; |
1610 o["y"] = "foo"; | 1497 o["y"] = "foo"; |
1611 return o; | 1498 return o; |
1612 } | 1499 } |
1613 | 1500 |
1614 checkUnnamed501(core.Map<core.String, core.String> o) { | 1501 checkUnnamed503(core.Map<core.String, core.String> o) { |
1615 unittest.expect(o, unittest.hasLength(2)); | 1502 unittest.expect(o, unittest.hasLength(2)); |
1616 unittest.expect(o["x"], unittest.equals('foo')); | 1503 unittest.expect(o["x"], unittest.equals('foo')); |
1617 unittest.expect(o["y"], unittest.equals('foo')); | 1504 unittest.expect(o["y"], unittest.equals('foo')); |
1618 } | 1505 } |
1619 | 1506 |
1620 buildUnnamed502() { | 1507 buildUnnamed504() { |
1621 var o = new core.Map<core.String, core.String>(); | 1508 var o = new core.Map<core.String, core.String>(); |
1622 o["x"] = "foo"; | 1509 o["x"] = "foo"; |
1623 o["y"] = "foo"; | 1510 o["y"] = "foo"; |
1624 return o; | 1511 return o; |
1625 } | 1512 } |
1626 | 1513 |
1627 checkUnnamed502(core.Map<core.String, core.String> o) { | 1514 checkUnnamed504(core.Map<core.String, core.String> o) { |
1628 unittest.expect(o, unittest.hasLength(2)); | 1515 unittest.expect(o, unittest.hasLength(2)); |
1629 unittest.expect(o["x"], unittest.equals('foo')); | 1516 unittest.expect(o["x"], unittest.equals('foo')); |
1630 unittest.expect(o["y"], unittest.equals('foo')); | 1517 unittest.expect(o["y"], unittest.equals('foo')); |
1631 } | 1518 } |
1632 | 1519 |
1633 core.int buildCounterSparkSqlJob = 0; | 1520 core.int buildCounterSparkSqlJob = 0; |
1634 buildSparkSqlJob() { | 1521 buildSparkSqlJob() { |
1635 var o = new api.SparkSqlJob(); | 1522 var o = new api.SparkSqlJob(); |
1636 buildCounterSparkSqlJob++; | 1523 buildCounterSparkSqlJob++; |
1637 if (buildCounterSparkSqlJob < 3) { | 1524 if (buildCounterSparkSqlJob < 3) { |
1638 o.jarFileUris = buildUnnamed500(); | 1525 o.jarFileUris = buildUnnamed502(); |
1639 o.loggingConfig = buildLoggingConfig(); | 1526 o.loggingConfig = buildLoggingConfig(); |
1640 o.properties = buildUnnamed501(); | 1527 o.properties = buildUnnamed503(); |
1641 o.queryFileUri = "foo"; | 1528 o.queryFileUri = "foo"; |
1642 o.queryList = buildQueryList(); | 1529 o.queryList = buildQueryList(); |
1643 o.scriptVariables = buildUnnamed502(); | 1530 o.scriptVariables = buildUnnamed504(); |
1644 } | 1531 } |
1645 buildCounterSparkSqlJob--; | 1532 buildCounterSparkSqlJob--; |
1646 return o; | 1533 return o; |
1647 } | 1534 } |
1648 | 1535 |
1649 checkSparkSqlJob(api.SparkSqlJob o) { | 1536 checkSparkSqlJob(api.SparkSqlJob o) { |
1650 buildCounterSparkSqlJob++; | 1537 buildCounterSparkSqlJob++; |
1651 if (buildCounterSparkSqlJob < 3) { | 1538 if (buildCounterSparkSqlJob < 3) { |
1652 checkUnnamed500(o.jarFileUris); | 1539 checkUnnamed502(o.jarFileUris); |
1653 checkLoggingConfig(o.loggingConfig); | 1540 checkLoggingConfig(o.loggingConfig); |
1654 checkUnnamed501(o.properties); | 1541 checkUnnamed503(o.properties); |
1655 unittest.expect(o.queryFileUri, unittest.equals('foo')); | 1542 unittest.expect(o.queryFileUri, unittest.equals('foo')); |
1656 checkQueryList(o.queryList); | 1543 checkQueryList(o.queryList); |
1657 checkUnnamed502(o.scriptVariables); | 1544 checkUnnamed504(o.scriptVariables); |
1658 } | 1545 } |
1659 buildCounterSparkSqlJob--; | 1546 buildCounterSparkSqlJob--; |
1660 } | 1547 } |
1661 | 1548 |
1662 buildUnnamed503() { | 1549 buildUnnamed505() { |
1663 var o = new core.Map<core.String, core.Object>(); | 1550 var o = new core.Map<core.String, core.Object>(); |
1664 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1551 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
1665 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1552 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
1666 return o; | 1553 return o; |
1667 } | 1554 } |
1668 | 1555 |
1669 checkUnnamed503(core.Map<core.String, core.Object> o) { | 1556 checkUnnamed505(core.Map<core.String, core.Object> o) { |
1670 unittest.expect(o, unittest.hasLength(2)); | 1557 unittest.expect(o, unittest.hasLength(2)); |
1671 var casted5 = (o["x"]) as core.Map; unittest.expect(casted5, unittest.hasLengt
h(3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["string"],
unittest.equals('foo')); | 1558 var casted5 = (o["x"]) as core.Map; unittest.expect(casted5, unittest.hasLengt
h(3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["string"],
unittest.equals('foo')); |
1672 var casted6 = (o["y"]) as core.Map; unittest.expect(casted6, unittest.hasLengt
h(3)); unittest.expect(casted6["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted6["bool"], unittest.equals(true)); unittest.expect(casted6["string"],
unittest.equals('foo')); | 1559 var casted6 = (o["y"]) as core.Map; unittest.expect(casted6, unittest.hasLengt
h(3)); unittest.expect(casted6["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted6["bool"], unittest.equals(true)); unittest.expect(casted6["string"],
unittest.equals('foo')); |
1673 } | 1560 } |
1674 | 1561 |
1675 buildUnnamed504() { | 1562 buildUnnamed506() { |
1676 var o = new core.List<core.Map<core.String, core.Object>>(); | 1563 var o = new core.List<core.Map<core.String, core.Object>>(); |
1677 o.add(buildUnnamed503()); | 1564 o.add(buildUnnamed505()); |
1678 o.add(buildUnnamed503()); | 1565 o.add(buildUnnamed505()); |
1679 return o; | 1566 return o; |
1680 } | 1567 } |
1681 | 1568 |
1682 checkUnnamed504(core.List<core.Map<core.String, core.Object>> o) { | 1569 checkUnnamed506(core.List<core.Map<core.String, core.Object>> o) { |
1683 unittest.expect(o, unittest.hasLength(2)); | 1570 unittest.expect(o, unittest.hasLength(2)); |
1684 checkUnnamed503(o[0]); | 1571 checkUnnamed505(o[0]); |
1685 checkUnnamed503(o[1]); | 1572 checkUnnamed505(o[1]); |
1686 } | 1573 } |
1687 | 1574 |
1688 core.int buildCounterStatus = 0; | 1575 core.int buildCounterStatus = 0; |
1689 buildStatus() { | 1576 buildStatus() { |
1690 var o = new api.Status(); | 1577 var o = new api.Status(); |
1691 buildCounterStatus++; | 1578 buildCounterStatus++; |
1692 if (buildCounterStatus < 3) { | 1579 if (buildCounterStatus < 3) { |
1693 o.code = 42; | 1580 o.code = 42; |
1694 o.details = buildUnnamed504(); | 1581 o.details = buildUnnamed506(); |
1695 o.message = "foo"; | 1582 o.message = "foo"; |
1696 } | 1583 } |
1697 buildCounterStatus--; | 1584 buildCounterStatus--; |
1698 return o; | 1585 return o; |
1699 } | 1586 } |
1700 | 1587 |
1701 checkStatus(api.Status o) { | 1588 checkStatus(api.Status o) { |
1702 buildCounterStatus++; | 1589 buildCounterStatus++; |
1703 if (buildCounterStatus < 3) { | 1590 if (buildCounterStatus < 3) { |
1704 unittest.expect(o.code, unittest.equals(42)); | 1591 unittest.expect(o.code, unittest.equals(42)); |
1705 checkUnnamed504(o.details); | 1592 checkUnnamed506(o.details); |
1706 unittest.expect(o.message, unittest.equals('foo')); | 1593 unittest.expect(o.message, unittest.equals('foo')); |
1707 } | 1594 } |
1708 buildCounterStatus--; | 1595 buildCounterStatus--; |
1709 } | 1596 } |
1710 | 1597 |
1711 core.int buildCounterSubmitJobRequest = 0; | 1598 core.int buildCounterSubmitJobRequest = 0; |
1712 buildSubmitJobRequest() { | 1599 buildSubmitJobRequest() { |
1713 var o = new api.SubmitJobRequest(); | 1600 var o = new api.SubmitJobRequest(); |
1714 buildCounterSubmitJobRequest++; | 1601 buildCounterSubmitJobRequest++; |
1715 if (buildCounterSubmitJobRequest < 3) { | 1602 if (buildCounterSubmitJobRequest < 3) { |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1819 | 1706 |
1820 unittest.group("obj-schema-ClusterStatus", () { | 1707 unittest.group("obj-schema-ClusterStatus", () { |
1821 unittest.test("to-json--from-json", () { | 1708 unittest.test("to-json--from-json", () { |
1822 var o = buildClusterStatus(); | 1709 var o = buildClusterStatus(); |
1823 var od = new api.ClusterStatus.fromJson(o.toJson()); | 1710 var od = new api.ClusterStatus.fromJson(o.toJson()); |
1824 checkClusterStatus(od); | 1711 checkClusterStatus(od); |
1825 }); | 1712 }); |
1826 }); | 1713 }); |
1827 | 1714 |
1828 | 1715 |
1829 unittest.group("obj-schema-DiagnoseClusterOutputLocation", () { | |
1830 unittest.test("to-json--from-json", () { | |
1831 var o = buildDiagnoseClusterOutputLocation(); | |
1832 var od = new api.DiagnoseClusterOutputLocation.fromJson(o.toJson()); | |
1833 checkDiagnoseClusterOutputLocation(od); | |
1834 }); | |
1835 }); | |
1836 | |
1837 | |
1838 unittest.group("obj-schema-DiagnoseClusterRequest", () { | 1716 unittest.group("obj-schema-DiagnoseClusterRequest", () { |
1839 unittest.test("to-json--from-json", () { | 1717 unittest.test("to-json--from-json", () { |
1840 var o = buildDiagnoseClusterRequest(); | 1718 var o = buildDiagnoseClusterRequest(); |
1841 var od = new api.DiagnoseClusterRequest.fromJson(o.toJson()); | 1719 var od = new api.DiagnoseClusterRequest.fromJson(o.toJson()); |
1842 checkDiagnoseClusterRequest(od); | 1720 checkDiagnoseClusterRequest(od); |
1843 }); | 1721 }); |
1844 }); | 1722 }); |
1845 | 1723 |
1846 | 1724 |
1847 unittest.group("obj-schema-DiagnoseClusterResults", () { | 1725 unittest.group("obj-schema-DiagnoseClusterResults", () { |
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2008 | 1886 |
2009 unittest.group("obj-schema-Operation", () { | 1887 unittest.group("obj-schema-Operation", () { |
2010 unittest.test("to-json--from-json", () { | 1888 unittest.test("to-json--from-json", () { |
2011 var o = buildOperation(); | 1889 var o = buildOperation(); |
2012 var od = new api.Operation.fromJson(o.toJson()); | 1890 var od = new api.Operation.fromJson(o.toJson()); |
2013 checkOperation(od); | 1891 checkOperation(od); |
2014 }); | 1892 }); |
2015 }); | 1893 }); |
2016 | 1894 |
2017 | 1895 |
2018 unittest.group("obj-schema-OperationMetadata", () { | |
2019 unittest.test("to-json--from-json", () { | |
2020 var o = buildOperationMetadata(); | |
2021 var od = new api.OperationMetadata.fromJson(o.toJson()); | |
2022 checkOperationMetadata(od); | |
2023 }); | |
2024 }); | |
2025 | |
2026 | |
2027 unittest.group("obj-schema-OperationStatus", () { | |
2028 unittest.test("to-json--from-json", () { | |
2029 var o = buildOperationStatus(); | |
2030 var od = new api.OperationStatus.fromJson(o.toJson()); | |
2031 checkOperationStatus(od); | |
2032 }); | |
2033 }); | |
2034 | |
2035 | |
2036 unittest.group("obj-schema-PigJob", () { | 1896 unittest.group("obj-schema-PigJob", () { |
2037 unittest.test("to-json--from-json", () { | 1897 unittest.test("to-json--from-json", () { |
2038 var o = buildPigJob(); | 1898 var o = buildPigJob(); |
2039 var od = new api.PigJob.fromJson(o.toJson()); | 1899 var od = new api.PigJob.fromJson(o.toJson()); |
2040 checkPigJob(od); | 1900 checkPigJob(od); |
2041 }); | 1901 }); |
2042 }); | 1902 }); |
2043 | 1903 |
2044 | 1904 |
2045 unittest.group("obj-schema-PySparkJob", () { | 1905 unittest.group("obj-schema-PySparkJob", () { |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2115 | 1975 |
2116 | 1976 |
2117 unittest.group("resource-ProjectsRegionsClustersResourceApi", () { | 1977 unittest.group("resource-ProjectsRegionsClustersResourceApi", () { |
2118 unittest.test("method--create", () { | 1978 unittest.test("method--create", () { |
2119 | 1979 |
2120 var mock = new HttpServerMock(); | 1980 var mock = new HttpServerMock(); |
2121 api.ProjectsRegionsClustersResourceApi res = new api.DataprocApi(mock).pro
jects.regions.clusters; | 1981 api.ProjectsRegionsClustersResourceApi res = new api.DataprocApi(mock).pro
jects.regions.clusters; |
2122 var arg_request = buildCluster(); | 1982 var arg_request = buildCluster(); |
2123 var arg_projectId = "foo"; | 1983 var arg_projectId = "foo"; |
2124 var arg_region = "foo"; | 1984 var arg_region = "foo"; |
2125 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1985 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
2126 var obj = new api.Cluster.fromJson(json); | 1986 var obj = new api.Cluster.fromJson(json); |
2127 checkCluster(obj); | 1987 checkCluster(obj); |
2128 | 1988 |
2129 var path = (req.url).path; | 1989 var path = (req.url).path; |
2130 var pathOffset = 0; | 1990 var pathOffset = 0; |
2131 var index; | 1991 var index; |
2132 var subPart; | 1992 var subPart; |
2133 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 1993 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
2134 pathOffset += 1; | 1994 pathOffset += 1; |
2135 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/projects/")); | 1995 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/projects/")); |
(...skipping 30 matching lines...) Expand all Loading... |
2166 } | 2026 } |
2167 } | 2027 } |
2168 | 2028 |
2169 | 2029 |
2170 var h = { | 2030 var h = { |
2171 "content-type" : "application/json; charset=utf-8", | 2031 "content-type" : "application/json; charset=utf-8", |
2172 }; | 2032 }; |
2173 var resp = convert.JSON.encode(buildOperation()); | 2033 var resp = convert.JSON.encode(buildOperation()); |
2174 return new async.Future.value(stringResponse(200, h, resp)); | 2034 return new async.Future.value(stringResponse(200, h, resp)); |
2175 }), true); | 2035 }), true); |
2176 res.create(arg_request, arg_projectId, arg_region).then(unittest.expectAsy
nc(((api.Operation response) { | 2036 res.create(arg_request, arg_projectId, arg_region).then(unittest.expectAsy
nc1(((api.Operation response) { |
2177 checkOperation(response); | 2037 checkOperation(response); |
2178 }))); | 2038 }))); |
2179 }); | 2039 }); |
2180 | 2040 |
2181 unittest.test("method--delete", () { | 2041 unittest.test("method--delete", () { |
2182 | 2042 |
2183 var mock = new HttpServerMock(); | 2043 var mock = new HttpServerMock(); |
2184 api.ProjectsRegionsClustersResourceApi res = new api.DataprocApi(mock).pro
jects.regions.clusters; | 2044 api.ProjectsRegionsClustersResourceApi res = new api.DataprocApi(mock).pro
jects.regions.clusters; |
2185 var arg_projectId = "foo"; | 2045 var arg_projectId = "foo"; |
2186 var arg_region = "foo"; | 2046 var arg_region = "foo"; |
2187 var arg_clusterName = "foo"; | 2047 var arg_clusterName = "foo"; |
2188 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2048 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
2189 var path = (req.url).path; | 2049 var path = (req.url).path; |
2190 var pathOffset = 0; | 2050 var pathOffset = 0; |
2191 var index; | 2051 var index; |
2192 var subPart; | 2052 var subPart; |
2193 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2053 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
2194 pathOffset += 1; | 2054 pathOffset += 1; |
2195 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/projects/")); | 2055 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/projects/")); |
2196 pathOffset += 12; | 2056 pathOffset += 12; |
2197 index = path.indexOf("/regions/", pathOffset); | 2057 index = path.indexOf("/regions/", pathOffset); |
2198 unittest.expect(index >= 0, unittest.isTrue); | 2058 unittest.expect(index >= 0, unittest.isTrue); |
(...skipping 30 matching lines...) Expand all Loading... |
2229 } | 2089 } |
2230 } | 2090 } |
2231 | 2091 |
2232 | 2092 |
2233 var h = { | 2093 var h = { |
2234 "content-type" : "application/json; charset=utf-8", | 2094 "content-type" : "application/json; charset=utf-8", |
2235 }; | 2095 }; |
2236 var resp = convert.JSON.encode(buildOperation()); | 2096 var resp = convert.JSON.encode(buildOperation()); |
2237 return new async.Future.value(stringResponse(200, h, resp)); | 2097 return new async.Future.value(stringResponse(200, h, resp)); |
2238 }), true); | 2098 }), true); |
2239 res.delete(arg_projectId, arg_region, arg_clusterName).then(unittest.expec
tAsync(((api.Operation response) { | 2099 res.delete(arg_projectId, arg_region, arg_clusterName).then(unittest.expec
tAsync1(((api.Operation response) { |
2240 checkOperation(response); | 2100 checkOperation(response); |
2241 }))); | 2101 }))); |
2242 }); | 2102 }); |
2243 | 2103 |
2244 unittest.test("method--diagnose", () { | 2104 unittest.test("method--diagnose", () { |
2245 | 2105 |
2246 var mock = new HttpServerMock(); | 2106 var mock = new HttpServerMock(); |
2247 api.ProjectsRegionsClustersResourceApi res = new api.DataprocApi(mock).pro
jects.regions.clusters; | 2107 api.ProjectsRegionsClustersResourceApi res = new api.DataprocApi(mock).pro
jects.regions.clusters; |
2248 var arg_request = buildDiagnoseClusterRequest(); | 2108 var arg_request = buildDiagnoseClusterRequest(); |
2249 var arg_projectId = "foo"; | 2109 var arg_projectId = "foo"; |
2250 var arg_region = "foo"; | 2110 var arg_region = "foo"; |
2251 var arg_clusterName = "foo"; | 2111 var arg_clusterName = "foo"; |
2252 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2112 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
2253 var obj = new api.DiagnoseClusterRequest.fromJson(json); | 2113 var obj = new api.DiagnoseClusterRequest.fromJson(json); |
2254 checkDiagnoseClusterRequest(obj); | 2114 checkDiagnoseClusterRequest(obj); |
2255 | 2115 |
2256 var path = (req.url).path; | 2116 var path = (req.url).path; |
2257 var pathOffset = 0; | 2117 var pathOffset = 0; |
2258 var index; | 2118 var index; |
2259 var subPart; | 2119 var subPart; |
2260 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2120 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
2261 pathOffset += 1; | 2121 pathOffset += 1; |
2262 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/projects/")); | 2122 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/projects/")); |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2300 } | 2160 } |
2301 } | 2161 } |
2302 | 2162 |
2303 | 2163 |
2304 var h = { | 2164 var h = { |
2305 "content-type" : "application/json; charset=utf-8", | 2165 "content-type" : "application/json; charset=utf-8", |
2306 }; | 2166 }; |
2307 var resp = convert.JSON.encode(buildOperation()); | 2167 var resp = convert.JSON.encode(buildOperation()); |
2308 return new async.Future.value(stringResponse(200, h, resp)); | 2168 return new async.Future.value(stringResponse(200, h, resp)); |
2309 }), true); | 2169 }), true); |
2310 res.diagnose(arg_request, arg_projectId, arg_region, arg_clusterName).then
(unittest.expectAsync(((api.Operation response) { | 2170 res.diagnose(arg_request, arg_projectId, arg_region, arg_clusterName).then
(unittest.expectAsync1(((api.Operation response) { |
2311 checkOperation(response); | 2171 checkOperation(response); |
2312 }))); | 2172 }))); |
2313 }); | 2173 }); |
2314 | 2174 |
2315 unittest.test("method--get", () { | 2175 unittest.test("method--get", () { |
2316 | 2176 |
2317 var mock = new HttpServerMock(); | 2177 var mock = new HttpServerMock(); |
2318 api.ProjectsRegionsClustersResourceApi res = new api.DataprocApi(mock).pro
jects.regions.clusters; | 2178 api.ProjectsRegionsClustersResourceApi res = new api.DataprocApi(mock).pro
jects.regions.clusters; |
2319 var arg_projectId = "foo"; | 2179 var arg_projectId = "foo"; |
2320 var arg_region = "foo"; | 2180 var arg_region = "foo"; |
2321 var arg_clusterName = "foo"; | 2181 var arg_clusterName = "foo"; |
2322 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2182 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
2323 var path = (req.url).path; | 2183 var path = (req.url).path; |
2324 var pathOffset = 0; | 2184 var pathOffset = 0; |
2325 var index; | 2185 var index; |
2326 var subPart; | 2186 var subPart; |
2327 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2187 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
2328 pathOffset += 1; | 2188 pathOffset += 1; |
2329 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/projects/")); | 2189 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/projects/")); |
2330 pathOffset += 12; | 2190 pathOffset += 12; |
2331 index = path.indexOf("/regions/", pathOffset); | 2191 index = path.indexOf("/regions/", pathOffset); |
2332 unittest.expect(index >= 0, unittest.isTrue); | 2192 unittest.expect(index >= 0, unittest.isTrue); |
(...skipping 30 matching lines...) Expand all Loading... |
2363 } | 2223 } |
2364 } | 2224 } |
2365 | 2225 |
2366 | 2226 |
2367 var h = { | 2227 var h = { |
2368 "content-type" : "application/json; charset=utf-8", | 2228 "content-type" : "application/json; charset=utf-8", |
2369 }; | 2229 }; |
2370 var resp = convert.JSON.encode(buildCluster()); | 2230 var resp = convert.JSON.encode(buildCluster()); |
2371 return new async.Future.value(stringResponse(200, h, resp)); | 2231 return new async.Future.value(stringResponse(200, h, resp)); |
2372 }), true); | 2232 }), true); |
2373 res.get(arg_projectId, arg_region, arg_clusterName).then(unittest.expectAs
ync(((api.Cluster response) { | 2233 res.get(arg_projectId, arg_region, arg_clusterName).then(unittest.expectAs
ync1(((api.Cluster response) { |
2374 checkCluster(response); | 2234 checkCluster(response); |
2375 }))); | 2235 }))); |
2376 }); | 2236 }); |
2377 | 2237 |
2378 unittest.test("method--list", () { | 2238 unittest.test("method--list", () { |
2379 | 2239 |
2380 var mock = new HttpServerMock(); | 2240 var mock = new HttpServerMock(); |
2381 api.ProjectsRegionsClustersResourceApi res = new api.DataprocApi(mock).pro
jects.regions.clusters; | 2241 api.ProjectsRegionsClustersResourceApi res = new api.DataprocApi(mock).pro
jects.regions.clusters; |
2382 var arg_projectId = "foo"; | 2242 var arg_projectId = "foo"; |
2383 var arg_region = "foo"; | 2243 var arg_region = "foo"; |
| 2244 var arg_filter = "foo"; |
2384 var arg_pageToken = "foo"; | 2245 var arg_pageToken = "foo"; |
2385 var arg_pageSize = 42; | 2246 var arg_pageSize = 42; |
2386 var arg_filter = "foo"; | 2247 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
2387 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | |
2388 var path = (req.url).path; | 2248 var path = (req.url).path; |
2389 var pathOffset = 0; | 2249 var pathOffset = 0; |
2390 var index; | 2250 var index; |
2391 var subPart; | 2251 var subPart; |
2392 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2252 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
2393 pathOffset += 1; | 2253 pathOffset += 1; |
2394 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/projects/")); | 2254 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/projects/")); |
2395 pathOffset += 12; | 2255 pathOffset += 12; |
2396 index = path.indexOf("/regions/", pathOffset); | 2256 index = path.indexOf("/regions/", pathOffset); |
2397 unittest.expect(index >= 0, unittest.isTrue); | 2257 unittest.expect(index >= 0, unittest.isTrue); |
(...skipping 19 matching lines...) Expand all Loading... |
2417 if (n == "false") return false; | 2277 if (n == "false") return false; |
2418 if (n == null) return null; | 2278 if (n == null) return null; |
2419 throw new core.ArgumentError("Invalid boolean: $n"); | 2279 throw new core.ArgumentError("Invalid boolean: $n"); |
2420 } | 2280 } |
2421 if (query.length > 0) { | 2281 if (query.length > 0) { |
2422 for (var part in query.split("&")) { | 2282 for (var part in query.split("&")) { |
2423 var keyvalue = part.split("="); | 2283 var keyvalue = part.split("="); |
2424 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 2284 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
2425 } | 2285 } |
2426 } | 2286 } |
| 2287 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); |
2427 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 2288 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
2428 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); | 2289 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); |
2429 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); | |
2430 | 2290 |
2431 | 2291 |
2432 var h = { | 2292 var h = { |
2433 "content-type" : "application/json; charset=utf-8", | 2293 "content-type" : "application/json; charset=utf-8", |
2434 }; | 2294 }; |
2435 var resp = convert.JSON.encode(buildListClustersResponse()); | 2295 var resp = convert.JSON.encode(buildListClustersResponse()); |
2436 return new async.Future.value(stringResponse(200, h, resp)); | 2296 return new async.Future.value(stringResponse(200, h, resp)); |
2437 }), true); | 2297 }), true); |
2438 res.list(arg_projectId, arg_region, pageToken: arg_pageToken, pageSize: ar
g_pageSize, filter: arg_filter).then(unittest.expectAsync(((api.ListClustersResp
onse response) { | 2298 res.list(arg_projectId, arg_region, filter: arg_filter, pageToken: arg_pag
eToken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListClustersRes
ponse response) { |
2439 checkListClustersResponse(response); | 2299 checkListClustersResponse(response); |
2440 }))); | 2300 }))); |
2441 }); | 2301 }); |
2442 | 2302 |
2443 unittest.test("method--patch", () { | 2303 unittest.test("method--patch", () { |
2444 | 2304 |
2445 var mock = new HttpServerMock(); | 2305 var mock = new HttpServerMock(); |
2446 api.ProjectsRegionsClustersResourceApi res = new api.DataprocApi(mock).pro
jects.regions.clusters; | 2306 api.ProjectsRegionsClustersResourceApi res = new api.DataprocApi(mock).pro
jects.regions.clusters; |
2447 var arg_request = buildCluster(); | 2307 var arg_request = buildCluster(); |
2448 var arg_projectId = "foo"; | 2308 var arg_projectId = "foo"; |
2449 var arg_region = "foo"; | 2309 var arg_region = "foo"; |
2450 var arg_clusterName = "foo"; | 2310 var arg_clusterName = "foo"; |
2451 var arg_updateMask = "foo"; | 2311 var arg_updateMask = "foo"; |
2452 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2312 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
2453 var obj = new api.Cluster.fromJson(json); | 2313 var obj = new api.Cluster.fromJson(json); |
2454 checkCluster(obj); | 2314 checkCluster(obj); |
2455 | 2315 |
2456 var path = (req.url).path; | 2316 var path = (req.url).path; |
2457 var pathOffset = 0; | 2317 var pathOffset = 0; |
2458 var index; | 2318 var index; |
2459 var subPart; | 2319 var subPart; |
2460 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2320 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
2461 pathOffset += 1; | 2321 pathOffset += 1; |
2462 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/projects/")); | 2322 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/projects/")); |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2497 } | 2357 } |
2498 unittest.expect(queryMap["updateMask"].first, unittest.equals(arg_update
Mask)); | 2358 unittest.expect(queryMap["updateMask"].first, unittest.equals(arg_update
Mask)); |
2499 | 2359 |
2500 | 2360 |
2501 var h = { | 2361 var h = { |
2502 "content-type" : "application/json; charset=utf-8", | 2362 "content-type" : "application/json; charset=utf-8", |
2503 }; | 2363 }; |
2504 var resp = convert.JSON.encode(buildOperation()); | 2364 var resp = convert.JSON.encode(buildOperation()); |
2505 return new async.Future.value(stringResponse(200, h, resp)); | 2365 return new async.Future.value(stringResponse(200, h, resp)); |
2506 }), true); | 2366 }), true); |
2507 res.patch(arg_request, arg_projectId, arg_region, arg_clusterName, updateM
ask: arg_updateMask).then(unittest.expectAsync(((api.Operation response) { | 2367 res.patch(arg_request, arg_projectId, arg_region, arg_clusterName, updateM
ask: arg_updateMask).then(unittest.expectAsync1(((api.Operation response) { |
2508 checkOperation(response); | 2368 checkOperation(response); |
2509 }))); | 2369 }))); |
2510 }); | 2370 }); |
2511 | 2371 |
2512 }); | 2372 }); |
2513 | 2373 |
2514 | 2374 |
2515 unittest.group("resource-ProjectsRegionsJobsResourceApi", () { | 2375 unittest.group("resource-ProjectsRegionsJobsResourceApi", () { |
2516 unittest.test("method--cancel", () { | 2376 unittest.test("method--cancel", () { |
2517 | 2377 |
2518 var mock = new HttpServerMock(); | 2378 var mock = new HttpServerMock(); |
2519 api.ProjectsRegionsJobsResourceApi res = new api.DataprocApi(mock).project
s.regions.jobs; | 2379 api.ProjectsRegionsJobsResourceApi res = new api.DataprocApi(mock).project
s.regions.jobs; |
2520 var arg_request = buildCancelJobRequest(); | 2380 var arg_request = buildCancelJobRequest(); |
2521 var arg_projectId = "foo"; | 2381 var arg_projectId = "foo"; |
2522 var arg_region = "foo"; | 2382 var arg_region = "foo"; |
2523 var arg_jobId = "foo"; | 2383 var arg_jobId = "foo"; |
2524 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2384 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
2525 var obj = new api.CancelJobRequest.fromJson(json); | 2385 var obj = new api.CancelJobRequest.fromJson(json); |
2526 checkCancelJobRequest(obj); | 2386 checkCancelJobRequest(obj); |
2527 | 2387 |
2528 var path = (req.url).path; | 2388 var path = (req.url).path; |
2529 var pathOffset = 0; | 2389 var pathOffset = 0; |
2530 var index; | 2390 var index; |
2531 var subPart; | 2391 var subPart; |
2532 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2392 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
2533 pathOffset += 1; | 2393 pathOffset += 1; |
2534 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/projects/")); | 2394 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/projects/")); |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2572 } | 2432 } |
2573 } | 2433 } |
2574 | 2434 |
2575 | 2435 |
2576 var h = { | 2436 var h = { |
2577 "content-type" : "application/json; charset=utf-8", | 2437 "content-type" : "application/json; charset=utf-8", |
2578 }; | 2438 }; |
2579 var resp = convert.JSON.encode(buildJob()); | 2439 var resp = convert.JSON.encode(buildJob()); |
2580 return new async.Future.value(stringResponse(200, h, resp)); | 2440 return new async.Future.value(stringResponse(200, h, resp)); |
2581 }), true); | 2441 }), true); |
2582 res.cancel(arg_request, arg_projectId, arg_region, arg_jobId).then(unittes
t.expectAsync(((api.Job response) { | 2442 res.cancel(arg_request, arg_projectId, arg_region, arg_jobId).then(unittes
t.expectAsync1(((api.Job response) { |
2583 checkJob(response); | 2443 checkJob(response); |
2584 }))); | 2444 }))); |
2585 }); | 2445 }); |
2586 | 2446 |
2587 unittest.test("method--delete", () { | 2447 unittest.test("method--delete", () { |
2588 | 2448 |
2589 var mock = new HttpServerMock(); | 2449 var mock = new HttpServerMock(); |
2590 api.ProjectsRegionsJobsResourceApi res = new api.DataprocApi(mock).project
s.regions.jobs; | 2450 api.ProjectsRegionsJobsResourceApi res = new api.DataprocApi(mock).project
s.regions.jobs; |
2591 var arg_projectId = "foo"; | 2451 var arg_projectId = "foo"; |
2592 var arg_region = "foo"; | 2452 var arg_region = "foo"; |
2593 var arg_jobId = "foo"; | 2453 var arg_jobId = "foo"; |
2594 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2454 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
2595 var path = (req.url).path; | 2455 var path = (req.url).path; |
2596 var pathOffset = 0; | 2456 var pathOffset = 0; |
2597 var index; | 2457 var index; |
2598 var subPart; | 2458 var subPart; |
2599 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2459 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
2600 pathOffset += 1; | 2460 pathOffset += 1; |
2601 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/projects/")); | 2461 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/projects/")); |
2602 pathOffset += 12; | 2462 pathOffset += 12; |
2603 index = path.indexOf("/regions/", pathOffset); | 2463 index = path.indexOf("/regions/", pathOffset); |
2604 unittest.expect(index >= 0, unittest.isTrue); | 2464 unittest.expect(index >= 0, unittest.isTrue); |
(...skipping 30 matching lines...) Expand all Loading... |
2635 } | 2495 } |
2636 } | 2496 } |
2637 | 2497 |
2638 | 2498 |
2639 var h = { | 2499 var h = { |
2640 "content-type" : "application/json; charset=utf-8", | 2500 "content-type" : "application/json; charset=utf-8", |
2641 }; | 2501 }; |
2642 var resp = convert.JSON.encode(buildEmpty()); | 2502 var resp = convert.JSON.encode(buildEmpty()); |
2643 return new async.Future.value(stringResponse(200, h, resp)); | 2503 return new async.Future.value(stringResponse(200, h, resp)); |
2644 }), true); | 2504 }), true); |
2645 res.delete(arg_projectId, arg_region, arg_jobId).then(unittest.expectAsync
(((api.Empty response) { | 2505 res.delete(arg_projectId, arg_region, arg_jobId).then(unittest.expectAsync
1(((api.Empty response) { |
2646 checkEmpty(response); | 2506 checkEmpty(response); |
2647 }))); | 2507 }))); |
2648 }); | 2508 }); |
2649 | 2509 |
2650 unittest.test("method--get", () { | 2510 unittest.test("method--get", () { |
2651 | 2511 |
2652 var mock = new HttpServerMock(); | 2512 var mock = new HttpServerMock(); |
2653 api.ProjectsRegionsJobsResourceApi res = new api.DataprocApi(mock).project
s.regions.jobs; | 2513 api.ProjectsRegionsJobsResourceApi res = new api.DataprocApi(mock).project
s.regions.jobs; |
2654 var arg_projectId = "foo"; | 2514 var arg_projectId = "foo"; |
2655 var arg_region = "foo"; | 2515 var arg_region = "foo"; |
2656 var arg_jobId = "foo"; | 2516 var arg_jobId = "foo"; |
2657 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2517 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
2658 var path = (req.url).path; | 2518 var path = (req.url).path; |
2659 var pathOffset = 0; | 2519 var pathOffset = 0; |
2660 var index; | 2520 var index; |
2661 var subPart; | 2521 var subPart; |
2662 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2522 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
2663 pathOffset += 1; | 2523 pathOffset += 1; |
2664 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/projects/")); | 2524 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/projects/")); |
2665 pathOffset += 12; | 2525 pathOffset += 12; |
2666 index = path.indexOf("/regions/", pathOffset); | 2526 index = path.indexOf("/regions/", pathOffset); |
2667 unittest.expect(index >= 0, unittest.isTrue); | 2527 unittest.expect(index >= 0, unittest.isTrue); |
(...skipping 30 matching lines...) Expand all Loading... |
2698 } | 2558 } |
2699 } | 2559 } |
2700 | 2560 |
2701 | 2561 |
2702 var h = { | 2562 var h = { |
2703 "content-type" : "application/json; charset=utf-8", | 2563 "content-type" : "application/json; charset=utf-8", |
2704 }; | 2564 }; |
2705 var resp = convert.JSON.encode(buildJob()); | 2565 var resp = convert.JSON.encode(buildJob()); |
2706 return new async.Future.value(stringResponse(200, h, resp)); | 2566 return new async.Future.value(stringResponse(200, h, resp)); |
2707 }), true); | 2567 }), true); |
2708 res.get(arg_projectId, arg_region, arg_jobId).then(unittest.expectAsync(((
api.Job response) { | 2568 res.get(arg_projectId, arg_region, arg_jobId).then(unittest.expectAsync1((
(api.Job response) { |
2709 checkJob(response); | 2569 checkJob(response); |
2710 }))); | 2570 }))); |
2711 }); | 2571 }); |
2712 | 2572 |
2713 unittest.test("method--list", () { | 2573 unittest.test("method--list", () { |
2714 | 2574 |
2715 var mock = new HttpServerMock(); | 2575 var mock = new HttpServerMock(); |
2716 api.ProjectsRegionsJobsResourceApi res = new api.DataprocApi(mock).project
s.regions.jobs; | 2576 api.ProjectsRegionsJobsResourceApi res = new api.DataprocApi(mock).project
s.regions.jobs; |
2717 var arg_projectId = "foo"; | 2577 var arg_projectId = "foo"; |
2718 var arg_region = "foo"; | 2578 var arg_region = "foo"; |
2719 var arg_filter = "foo"; | 2579 var arg_filter = "foo"; |
2720 var arg_jobStateMatcher = "foo"; | 2580 var arg_jobStateMatcher = "foo"; |
2721 var arg_pageToken = "foo"; | 2581 var arg_pageToken = "foo"; |
2722 var arg_pageSize = 42; | 2582 var arg_pageSize = 42; |
2723 var arg_clusterName = "foo"; | 2583 var arg_clusterName = "foo"; |
2724 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2584 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
2725 var path = (req.url).path; | 2585 var path = (req.url).path; |
2726 var pathOffset = 0; | 2586 var pathOffset = 0; |
2727 var index; | 2587 var index; |
2728 var subPart; | 2588 var subPart; |
2729 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2589 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
2730 pathOffset += 1; | 2590 pathOffset += 1; |
2731 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/projects/")); | 2591 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/projects/")); |
2732 pathOffset += 12; | 2592 pathOffset += 12; |
2733 index = path.indexOf("/regions/", pathOffset); | 2593 index = path.indexOf("/regions/", pathOffset); |
2734 unittest.expect(index >= 0, unittest.isTrue); | 2594 unittest.expect(index >= 0, unittest.isTrue); |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2767 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); | 2627 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); |
2768 unittest.expect(queryMap["clusterName"].first, unittest.equals(arg_clust
erName)); | 2628 unittest.expect(queryMap["clusterName"].first, unittest.equals(arg_clust
erName)); |
2769 | 2629 |
2770 | 2630 |
2771 var h = { | 2631 var h = { |
2772 "content-type" : "application/json; charset=utf-8", | 2632 "content-type" : "application/json; charset=utf-8", |
2773 }; | 2633 }; |
2774 var resp = convert.JSON.encode(buildListJobsResponse()); | 2634 var resp = convert.JSON.encode(buildListJobsResponse()); |
2775 return new async.Future.value(stringResponse(200, h, resp)); | 2635 return new async.Future.value(stringResponse(200, h, resp)); |
2776 }), true); | 2636 }), true); |
2777 res.list(arg_projectId, arg_region, filter: arg_filter, jobStateMatcher: a
rg_jobStateMatcher, pageToken: arg_pageToken, pageSize: arg_pageSize, clusterNam
e: arg_clusterName).then(unittest.expectAsync(((api.ListJobsResponse response) { | 2637 res.list(arg_projectId, arg_region, filter: arg_filter, jobStateMatcher: a
rg_jobStateMatcher, pageToken: arg_pageToken, pageSize: arg_pageSize, clusterNam
e: arg_clusterName).then(unittest.expectAsync1(((api.ListJobsResponse response)
{ |
2778 checkListJobsResponse(response); | 2638 checkListJobsResponse(response); |
2779 }))); | 2639 }))); |
2780 }); | 2640 }); |
2781 | 2641 |
2782 unittest.test("method--patch", () { | 2642 unittest.test("method--patch", () { |
2783 | 2643 |
2784 var mock = new HttpServerMock(); | 2644 var mock = new HttpServerMock(); |
2785 api.ProjectsRegionsJobsResourceApi res = new api.DataprocApi(mock).project
s.regions.jobs; | 2645 api.ProjectsRegionsJobsResourceApi res = new api.DataprocApi(mock).project
s.regions.jobs; |
2786 var arg_request = buildJob(); | 2646 var arg_request = buildJob(); |
2787 var arg_projectId = "foo"; | 2647 var arg_projectId = "foo"; |
2788 var arg_region = "foo"; | 2648 var arg_region = "foo"; |
2789 var arg_jobId = "foo"; | 2649 var arg_jobId = "foo"; |
2790 var arg_updateMask = "foo"; | 2650 var arg_updateMask = "foo"; |
2791 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2651 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
2792 var obj = new api.Job.fromJson(json); | 2652 var obj = new api.Job.fromJson(json); |
2793 checkJob(obj); | 2653 checkJob(obj); |
2794 | 2654 |
2795 var path = (req.url).path; | 2655 var path = (req.url).path; |
2796 var pathOffset = 0; | 2656 var pathOffset = 0; |
2797 var index; | 2657 var index; |
2798 var subPart; | 2658 var subPart; |
2799 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2659 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
2800 pathOffset += 1; | 2660 pathOffset += 1; |
2801 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/projects/")); | 2661 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/projects/")); |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2836 } | 2696 } |
2837 unittest.expect(queryMap["updateMask"].first, unittest.equals(arg_update
Mask)); | 2697 unittest.expect(queryMap["updateMask"].first, unittest.equals(arg_update
Mask)); |
2838 | 2698 |
2839 | 2699 |
2840 var h = { | 2700 var h = { |
2841 "content-type" : "application/json; charset=utf-8", | 2701 "content-type" : "application/json; charset=utf-8", |
2842 }; | 2702 }; |
2843 var resp = convert.JSON.encode(buildJob()); | 2703 var resp = convert.JSON.encode(buildJob()); |
2844 return new async.Future.value(stringResponse(200, h, resp)); | 2704 return new async.Future.value(stringResponse(200, h, resp)); |
2845 }), true); | 2705 }), true); |
2846 res.patch(arg_request, arg_projectId, arg_region, arg_jobId, updateMask: a
rg_updateMask).then(unittest.expectAsync(((api.Job response) { | 2706 res.patch(arg_request, arg_projectId, arg_region, arg_jobId, updateMask: a
rg_updateMask).then(unittest.expectAsync1(((api.Job response) { |
2847 checkJob(response); | 2707 checkJob(response); |
2848 }))); | 2708 }))); |
2849 }); | 2709 }); |
2850 | 2710 |
2851 unittest.test("method--submit", () { | 2711 unittest.test("method--submit", () { |
2852 | 2712 |
2853 var mock = new HttpServerMock(); | 2713 var mock = new HttpServerMock(); |
2854 api.ProjectsRegionsJobsResourceApi res = new api.DataprocApi(mock).project
s.regions.jobs; | 2714 api.ProjectsRegionsJobsResourceApi res = new api.DataprocApi(mock).project
s.regions.jobs; |
2855 var arg_request = buildSubmitJobRequest(); | 2715 var arg_request = buildSubmitJobRequest(); |
2856 var arg_projectId = "foo"; | 2716 var arg_projectId = "foo"; |
2857 var arg_region = "foo"; | 2717 var arg_region = "foo"; |
2858 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2718 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
2859 var obj = new api.SubmitJobRequest.fromJson(json); | 2719 var obj = new api.SubmitJobRequest.fromJson(json); |
2860 checkSubmitJobRequest(obj); | 2720 checkSubmitJobRequest(obj); |
2861 | 2721 |
2862 var path = (req.url).path; | 2722 var path = (req.url).path; |
2863 var pathOffset = 0; | 2723 var pathOffset = 0; |
2864 var index; | 2724 var index; |
2865 var subPart; | 2725 var subPart; |
2866 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2726 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
2867 pathOffset += 1; | 2727 pathOffset += 1; |
2868 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/projects/")); | 2728 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/projects/")); |
(...skipping 30 matching lines...) Expand all Loading... |
2899 } | 2759 } |
2900 } | 2760 } |
2901 | 2761 |
2902 | 2762 |
2903 var h = { | 2763 var h = { |
2904 "content-type" : "application/json; charset=utf-8", | 2764 "content-type" : "application/json; charset=utf-8", |
2905 }; | 2765 }; |
2906 var resp = convert.JSON.encode(buildJob()); | 2766 var resp = convert.JSON.encode(buildJob()); |
2907 return new async.Future.value(stringResponse(200, h, resp)); | 2767 return new async.Future.value(stringResponse(200, h, resp)); |
2908 }), true); | 2768 }), true); |
2909 res.submit(arg_request, arg_projectId, arg_region).then(unittest.expectAsy
nc(((api.Job response) { | 2769 res.submit(arg_request, arg_projectId, arg_region).then(unittest.expectAsy
nc1(((api.Job response) { |
2910 checkJob(response); | 2770 checkJob(response); |
2911 }))); | 2771 }))); |
2912 }); | 2772 }); |
2913 | 2773 |
2914 }); | 2774 }); |
2915 | 2775 |
2916 | 2776 |
2917 unittest.group("resource-ProjectsRegionsOperationsResourceApi", () { | 2777 unittest.group("resource-ProjectsRegionsOperationsResourceApi", () { |
2918 unittest.test("method--cancel", () { | 2778 unittest.test("method--cancel", () { |
2919 | 2779 |
2920 var mock = new HttpServerMock(); | 2780 var mock = new HttpServerMock(); |
2921 api.ProjectsRegionsOperationsResourceApi res = new api.DataprocApi(mock).p
rojects.regions.operations; | 2781 api.ProjectsRegionsOperationsResourceApi res = new api.DataprocApi(mock).p
rojects.regions.operations; |
2922 var arg_name = "foo"; | 2782 var arg_name = "foo"; |
2923 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2783 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
2924 var path = (req.url).path; | 2784 var path = (req.url).path; |
2925 var pathOffset = 0; | 2785 var pathOffset = 0; |
2926 var index; | 2786 var index; |
2927 var subPart; | 2787 var subPart; |
2928 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2788 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
2929 pathOffset += 1; | 2789 pathOffset += 1; |
2930 unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equ
als("v1/")); | 2790 unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equ
als("v1/")); |
2931 pathOffset += 3; | 2791 pathOffset += 3; |
2932 // NOTE: We cannot test reserved expansions due to the inability to reve
rse the operation; | 2792 // NOTE: We cannot test reserved expansions due to the inability to reve
rse the operation; |
2933 | 2793 |
(...skipping 14 matching lines...) Expand all Loading... |
2948 } | 2808 } |
2949 } | 2809 } |
2950 | 2810 |
2951 | 2811 |
2952 var h = { | 2812 var h = { |
2953 "content-type" : "application/json; charset=utf-8", | 2813 "content-type" : "application/json; charset=utf-8", |
2954 }; | 2814 }; |
2955 var resp = convert.JSON.encode(buildEmpty()); | 2815 var resp = convert.JSON.encode(buildEmpty()); |
2956 return new async.Future.value(stringResponse(200, h, resp)); | 2816 return new async.Future.value(stringResponse(200, h, resp)); |
2957 }), true); | 2817 }), true); |
2958 res.cancel(arg_name).then(unittest.expectAsync(((api.Empty response) { | 2818 res.cancel(arg_name).then(unittest.expectAsync1(((api.Empty response) { |
2959 checkEmpty(response); | 2819 checkEmpty(response); |
2960 }))); | 2820 }))); |
2961 }); | 2821 }); |
2962 | 2822 |
2963 unittest.test("method--delete", () { | 2823 unittest.test("method--delete", () { |
2964 | 2824 |
2965 var mock = new HttpServerMock(); | 2825 var mock = new HttpServerMock(); |
2966 api.ProjectsRegionsOperationsResourceApi res = new api.DataprocApi(mock).p
rojects.regions.operations; | 2826 api.ProjectsRegionsOperationsResourceApi res = new api.DataprocApi(mock).p
rojects.regions.operations; |
2967 var arg_name = "foo"; | 2827 var arg_name = "foo"; |
2968 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2828 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
2969 var path = (req.url).path; | 2829 var path = (req.url).path; |
2970 var pathOffset = 0; | 2830 var pathOffset = 0; |
2971 var index; | 2831 var index; |
2972 var subPart; | 2832 var subPart; |
2973 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2833 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
2974 pathOffset += 1; | 2834 pathOffset += 1; |
2975 unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equ
als("v1/")); | 2835 unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equ
als("v1/")); |
2976 pathOffset += 3; | 2836 pathOffset += 3; |
2977 // NOTE: We cannot test reserved expansions due to the inability to reve
rse the operation; | 2837 // NOTE: We cannot test reserved expansions due to the inability to reve
rse the operation; |
2978 | 2838 |
(...skipping 14 matching lines...) Expand all Loading... |
2993 } | 2853 } |
2994 } | 2854 } |
2995 | 2855 |
2996 | 2856 |
2997 var h = { | 2857 var h = { |
2998 "content-type" : "application/json; charset=utf-8", | 2858 "content-type" : "application/json; charset=utf-8", |
2999 }; | 2859 }; |
3000 var resp = convert.JSON.encode(buildEmpty()); | 2860 var resp = convert.JSON.encode(buildEmpty()); |
3001 return new async.Future.value(stringResponse(200, h, resp)); | 2861 return new async.Future.value(stringResponse(200, h, resp)); |
3002 }), true); | 2862 }), true); |
3003 res.delete(arg_name).then(unittest.expectAsync(((api.Empty response) { | 2863 res.delete(arg_name).then(unittest.expectAsync1(((api.Empty response) { |
3004 checkEmpty(response); | 2864 checkEmpty(response); |
3005 }))); | 2865 }))); |
3006 }); | 2866 }); |
3007 | 2867 |
3008 unittest.test("method--get", () { | 2868 unittest.test("method--get", () { |
3009 | 2869 |
3010 var mock = new HttpServerMock(); | 2870 var mock = new HttpServerMock(); |
3011 api.ProjectsRegionsOperationsResourceApi res = new api.DataprocApi(mock).p
rojects.regions.operations; | 2871 api.ProjectsRegionsOperationsResourceApi res = new api.DataprocApi(mock).p
rojects.regions.operations; |
3012 var arg_name = "foo"; | 2872 var arg_name = "foo"; |
3013 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2873 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
3014 var path = (req.url).path; | 2874 var path = (req.url).path; |
3015 var pathOffset = 0; | 2875 var pathOffset = 0; |
3016 var index; | 2876 var index; |
3017 var subPart; | 2877 var subPart; |
3018 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2878 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
3019 pathOffset += 1; | 2879 pathOffset += 1; |
3020 unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equ
als("v1/")); | 2880 unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equ
als("v1/")); |
3021 pathOffset += 3; | 2881 pathOffset += 3; |
3022 // NOTE: We cannot test reserved expansions due to the inability to reve
rse the operation; | 2882 // NOTE: We cannot test reserved expansions due to the inability to reve
rse the operation; |
3023 | 2883 |
(...skipping 14 matching lines...) Expand all Loading... |
3038 } | 2898 } |
3039 } | 2899 } |
3040 | 2900 |
3041 | 2901 |
3042 var h = { | 2902 var h = { |
3043 "content-type" : "application/json; charset=utf-8", | 2903 "content-type" : "application/json; charset=utf-8", |
3044 }; | 2904 }; |
3045 var resp = convert.JSON.encode(buildOperation()); | 2905 var resp = convert.JSON.encode(buildOperation()); |
3046 return new async.Future.value(stringResponse(200, h, resp)); | 2906 return new async.Future.value(stringResponse(200, h, resp)); |
3047 }), true); | 2907 }), true); |
3048 res.get(arg_name).then(unittest.expectAsync(((api.Operation response) { | 2908 res.get(arg_name).then(unittest.expectAsync1(((api.Operation response) { |
3049 checkOperation(response); | 2909 checkOperation(response); |
3050 }))); | 2910 }))); |
3051 }); | 2911 }); |
3052 | 2912 |
3053 unittest.test("method--list", () { | 2913 unittest.test("method--list", () { |
3054 | 2914 |
3055 var mock = new HttpServerMock(); | 2915 var mock = new HttpServerMock(); |
3056 api.ProjectsRegionsOperationsResourceApi res = new api.DataprocApi(mock).p
rojects.regions.operations; | 2916 api.ProjectsRegionsOperationsResourceApi res = new api.DataprocApi(mock).p
rojects.regions.operations; |
3057 var arg_name = "foo"; | 2917 var arg_name = "foo"; |
| 2918 var arg_pageToken = "foo"; |
3058 var arg_pageSize = 42; | 2919 var arg_pageSize = 42; |
3059 var arg_filter = "foo"; | 2920 var arg_filter = "foo"; |
3060 var arg_pageToken = "foo"; | 2921 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
3061 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | |
3062 var path = (req.url).path; | 2922 var path = (req.url).path; |
3063 var pathOffset = 0; | 2923 var pathOffset = 0; |
3064 var index; | 2924 var index; |
3065 var subPart; | 2925 var subPart; |
3066 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2926 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
3067 pathOffset += 1; | 2927 pathOffset += 1; |
3068 unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equ
als("v1/")); | 2928 unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equ
als("v1/")); |
3069 pathOffset += 3; | 2929 pathOffset += 3; |
3070 // NOTE: We cannot test reserved expansions due to the inability to reve
rse the operation; | 2930 // NOTE: We cannot test reserved expansions due to the inability to reve
rse the operation; |
3071 | 2931 |
3072 var query = (req.url).query; | 2932 var query = (req.url).query; |
3073 var queryOffset = 0; | 2933 var queryOffset = 0; |
3074 var queryMap = {}; | 2934 var queryMap = {}; |
3075 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 2935 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
3076 parseBool(n) { | 2936 parseBool(n) { |
3077 if (n == "true") return true; | 2937 if (n == "true") return true; |
3078 if (n == "false") return false; | 2938 if (n == "false") return false; |
3079 if (n == null) return null; | 2939 if (n == null) return null; |
3080 throw new core.ArgumentError("Invalid boolean: $n"); | 2940 throw new core.ArgumentError("Invalid boolean: $n"); |
3081 } | 2941 } |
3082 if (query.length > 0) { | 2942 if (query.length > 0) { |
3083 for (var part in query.split("&")) { | 2943 for (var part in query.split("&")) { |
3084 var keyvalue = part.split("="); | 2944 var keyvalue = part.split("="); |
3085 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 2945 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
3086 } | 2946 } |
3087 } | 2947 } |
| 2948 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
3088 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); | 2949 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); |
3089 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); | 2950 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); |
3090 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | |
3091 | 2951 |
3092 | 2952 |
3093 var h = { | 2953 var h = { |
3094 "content-type" : "application/json; charset=utf-8", | 2954 "content-type" : "application/json; charset=utf-8", |
3095 }; | 2955 }; |
3096 var resp = convert.JSON.encode(buildListOperationsResponse()); | 2956 var resp = convert.JSON.encode(buildListOperationsResponse()); |
3097 return new async.Future.value(stringResponse(200, h, resp)); | 2957 return new async.Future.value(stringResponse(200, h, resp)); |
3098 }), true); | 2958 }), true); |
3099 res.list(arg_name, pageSize: arg_pageSize, filter: arg_filter, pageToken:
arg_pageToken).then(unittest.expectAsync(((api.ListOperationsResponse response)
{ | 2959 res.list(arg_name, pageToken: arg_pageToken, pageSize: arg_pageSize, filte
r: arg_filter).then(unittest.expectAsync1(((api.ListOperationsResponse response)
{ |
3100 checkListOperationsResponse(response); | 2960 checkListOperationsResponse(response); |
3101 }))); | 2961 }))); |
3102 }); | 2962 }); |
3103 | 2963 |
3104 }); | 2964 }); |
3105 | 2965 |
3106 | 2966 |
3107 } | 2967 } |
3108 | 2968 |
OLD | NEW |