| OLD | NEW |
| 1 library googleapis_beta.appengine.v1beta4.test; | 1 library googleapis_beta.appengine.v1beta4.test; |
| 2 | 2 |
| 3 import "dart:core" as core; | 3 import "dart:core" as core; |
| 4 import "dart:collection" as collection; | 4 import "dart:collection" as collection; |
| 5 import "dart:async" as async; | 5 import "dart:async" as async; |
| 6 import "dart:convert" as convert; | 6 import "dart:convert" as convert; |
| 7 | 7 |
| 8 import 'package:http/http.dart' as http; | 8 import 'package:http/http.dart' as http; |
| 9 import 'package:http/testing.dart' as http_testing; | 9 import 'package:http/testing.dart' as http_testing; |
| 10 import 'package:unittest/unittest.dart' as unittest; | 10 import 'package:unittest/unittest.dart' as unittest; |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 } | 90 } |
| 91 | 91 |
| 92 checkApiEndpointHandler(api.ApiEndpointHandler o) { | 92 checkApiEndpointHandler(api.ApiEndpointHandler o) { |
| 93 buildCounterApiEndpointHandler++; | 93 buildCounterApiEndpointHandler++; |
| 94 if (buildCounterApiEndpointHandler < 3) { | 94 if (buildCounterApiEndpointHandler < 3) { |
| 95 unittest.expect(o.scriptPath, unittest.equals('foo')); | 95 unittest.expect(o.scriptPath, unittest.equals('foo')); |
| 96 } | 96 } |
| 97 buildCounterApiEndpointHandler--; | 97 buildCounterApiEndpointHandler--; |
| 98 } | 98 } |
| 99 | 99 |
| 100 buildUnnamed3113() { | 100 buildUnnamed3478() { |
| 101 var o = new core.List<api.UrlDispatchRule>(); | 101 var o = new core.List<api.UrlDispatchRule>(); |
| 102 o.add(buildUrlDispatchRule()); | 102 o.add(buildUrlDispatchRule()); |
| 103 o.add(buildUrlDispatchRule()); | 103 o.add(buildUrlDispatchRule()); |
| 104 return o; | 104 return o; |
| 105 } | 105 } |
| 106 | 106 |
| 107 checkUnnamed3113(core.List<api.UrlDispatchRule> o) { | 107 checkUnnamed3478(core.List<api.UrlDispatchRule> o) { |
| 108 unittest.expect(o, unittest.hasLength(2)); | 108 unittest.expect(o, unittest.hasLength(2)); |
| 109 checkUrlDispatchRule(o[0]); | 109 checkUrlDispatchRule(o[0]); |
| 110 checkUrlDispatchRule(o[1]); | 110 checkUrlDispatchRule(o[1]); |
| 111 } | 111 } |
| 112 | 112 |
| 113 core.int buildCounterApplication = 0; | 113 core.int buildCounterApplication = 0; |
| 114 buildApplication() { | 114 buildApplication() { |
| 115 var o = new api.Application(); | 115 var o = new api.Application(); |
| 116 buildCounterApplication++; | 116 buildCounterApplication++; |
| 117 if (buildCounterApplication < 3) { | 117 if (buildCounterApplication < 3) { |
| 118 o.authDomain = "foo"; |
| 118 o.codeBucket = "foo"; | 119 o.codeBucket = "foo"; |
| 119 o.defaultBucket = "foo"; | 120 o.defaultBucket = "foo"; |
| 120 o.dispatchRules = buildUnnamed3113(); | 121 o.defaultCookieExpiration = "foo"; |
| 122 o.defaultHostname = "foo"; |
| 123 o.dispatchRules = buildUnnamed3478(); |
| 121 o.id = "foo"; | 124 o.id = "foo"; |
| 122 o.location = "foo"; | 125 o.location = "foo"; |
| 123 o.name = "foo"; | 126 o.name = "foo"; |
| 124 } | 127 } |
| 125 buildCounterApplication--; | 128 buildCounterApplication--; |
| 126 return o; | 129 return o; |
| 127 } | 130 } |
| 128 | 131 |
| 129 checkApplication(api.Application o) { | 132 checkApplication(api.Application o) { |
| 130 buildCounterApplication++; | 133 buildCounterApplication++; |
| 131 if (buildCounterApplication < 3) { | 134 if (buildCounterApplication < 3) { |
| 135 unittest.expect(o.authDomain, unittest.equals('foo')); |
| 132 unittest.expect(o.codeBucket, unittest.equals('foo')); | 136 unittest.expect(o.codeBucket, unittest.equals('foo')); |
| 133 unittest.expect(o.defaultBucket, unittest.equals('foo')); | 137 unittest.expect(o.defaultBucket, unittest.equals('foo')); |
| 134 checkUnnamed3113(o.dispatchRules); | 138 unittest.expect(o.defaultCookieExpiration, unittest.equals('foo')); |
| 139 unittest.expect(o.defaultHostname, unittest.equals('foo')); |
| 140 checkUnnamed3478(o.dispatchRules); |
| 135 unittest.expect(o.id, unittest.equals('foo')); | 141 unittest.expect(o.id, unittest.equals('foo')); |
| 136 unittest.expect(o.location, unittest.equals('foo')); | 142 unittest.expect(o.location, unittest.equals('foo')); |
| 137 unittest.expect(o.name, unittest.equals('foo')); | 143 unittest.expect(o.name, unittest.equals('foo')); |
| 138 } | 144 } |
| 139 buildCounterApplication--; | 145 buildCounterApplication--; |
| 140 } | 146 } |
| 141 | 147 |
| 142 core.int buildCounterAutomaticScaling = 0; | 148 core.int buildCounterAutomaticScaling = 0; |
| 143 buildAutomaticScaling() { | 149 buildAutomaticScaling() { |
| 144 var o = new api.AutomaticScaling(); | 150 var o = new api.AutomaticScaling(); |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 234 | 240 |
| 235 checkCpuUtilization(api.CpuUtilization o) { | 241 checkCpuUtilization(api.CpuUtilization o) { |
| 236 buildCounterCpuUtilization++; | 242 buildCounterCpuUtilization++; |
| 237 if (buildCounterCpuUtilization < 3) { | 243 if (buildCounterCpuUtilization < 3) { |
| 238 unittest.expect(o.aggregationWindowLength, unittest.equals('foo')); | 244 unittest.expect(o.aggregationWindowLength, unittest.equals('foo')); |
| 239 unittest.expect(o.targetUtilization, unittest.equals(42.0)); | 245 unittest.expect(o.targetUtilization, unittest.equals(42.0)); |
| 240 } | 246 } |
| 241 buildCounterCpuUtilization--; | 247 buildCounterCpuUtilization--; |
| 242 } | 248 } |
| 243 | 249 |
| 244 buildUnnamed3114() { | 250 buildUnnamed3479() { |
| 245 var o = new core.Map<core.String, api.FileInfo>(); | 251 var o = new core.Map<core.String, api.FileInfo>(); |
| 246 o["x"] = buildFileInfo(); | 252 o["x"] = buildFileInfo(); |
| 247 o["y"] = buildFileInfo(); | 253 o["y"] = buildFileInfo(); |
| 248 return o; | 254 return o; |
| 249 } | 255 } |
| 250 | 256 |
| 251 checkUnnamed3114(core.Map<core.String, api.FileInfo> o) { | 257 checkUnnamed3479(core.Map<core.String, api.FileInfo> o) { |
| 252 unittest.expect(o, unittest.hasLength(2)); | 258 unittest.expect(o, unittest.hasLength(2)); |
| 253 checkFileInfo(o["x"]); | 259 checkFileInfo(o["x"]); |
| 254 checkFileInfo(o["y"]); | 260 checkFileInfo(o["y"]); |
| 255 } | 261 } |
| 256 | 262 |
| 257 buildUnnamed3115() { | 263 buildUnnamed3480() { |
| 258 var o = new core.List<api.SourceReference>(); | 264 var o = new core.List<api.SourceReference>(); |
| 259 o.add(buildSourceReference()); | 265 o.add(buildSourceReference()); |
| 260 o.add(buildSourceReference()); | 266 o.add(buildSourceReference()); |
| 261 return o; | 267 return o; |
| 262 } | 268 } |
| 263 | 269 |
| 264 checkUnnamed3115(core.List<api.SourceReference> o) { | 270 checkUnnamed3480(core.List<api.SourceReference> o) { |
| 265 unittest.expect(o, unittest.hasLength(2)); | 271 unittest.expect(o, unittest.hasLength(2)); |
| 266 checkSourceReference(o[0]); | 272 checkSourceReference(o[0]); |
| 267 checkSourceReference(o[1]); | 273 checkSourceReference(o[1]); |
| 268 } | 274 } |
| 269 | 275 |
| 270 core.int buildCounterDeployment = 0; | 276 core.int buildCounterDeployment = 0; |
| 271 buildDeployment() { | 277 buildDeployment() { |
| 272 var o = new api.Deployment(); | 278 var o = new api.Deployment(); |
| 273 buildCounterDeployment++; | 279 buildCounterDeployment++; |
| 274 if (buildCounterDeployment < 3) { | 280 if (buildCounterDeployment < 3) { |
| 275 o.container = buildContainerInfo(); | 281 o.container = buildContainerInfo(); |
| 276 o.files = buildUnnamed3114(); | 282 o.files = buildUnnamed3479(); |
| 277 o.sourceReferences = buildUnnamed3115(); | 283 o.sourceReferences = buildUnnamed3480(); |
| 278 } | 284 } |
| 279 buildCounterDeployment--; | 285 buildCounterDeployment--; |
| 280 return o; | 286 return o; |
| 281 } | 287 } |
| 282 | 288 |
| 283 checkDeployment(api.Deployment o) { | 289 checkDeployment(api.Deployment o) { |
| 284 buildCounterDeployment++; | 290 buildCounterDeployment++; |
| 285 if (buildCounterDeployment < 3) { | 291 if (buildCounterDeployment < 3) { |
| 286 checkContainerInfo(o.container); | 292 checkContainerInfo(o.container); |
| 287 checkUnnamed3114(o.files); | 293 checkUnnamed3479(o.files); |
| 288 checkUnnamed3115(o.sourceReferences); | 294 checkUnnamed3480(o.sourceReferences); |
| 289 } | 295 } |
| 290 buildCounterDeployment--; | 296 buildCounterDeployment--; |
| 291 } | 297 } |
| 292 | 298 |
| 293 core.int buildCounterDiskUtilization = 0; | 299 core.int buildCounterDiskUtilization = 0; |
| 294 buildDiskUtilization() { | 300 buildDiskUtilization() { |
| 295 var o = new api.DiskUtilization(); | 301 var o = new api.DiskUtilization(); |
| 296 buildCounterDiskUtilization++; | 302 buildCounterDiskUtilization++; |
| 297 if (buildCounterDiskUtilization < 3) { | 303 if (buildCounterDiskUtilization < 3) { |
| 298 o.targetReadBytesPerSec = 42; | 304 o.targetReadBytesPerSec = 42; |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 406 | 412 |
| 407 checkLibrary(api.Library o) { | 413 checkLibrary(api.Library o) { |
| 408 buildCounterLibrary++; | 414 buildCounterLibrary++; |
| 409 if (buildCounterLibrary < 3) { | 415 if (buildCounterLibrary < 3) { |
| 410 unittest.expect(o.name, unittest.equals('foo')); | 416 unittest.expect(o.name, unittest.equals('foo')); |
| 411 unittest.expect(o.version, unittest.equals('foo')); | 417 unittest.expect(o.version, unittest.equals('foo')); |
| 412 } | 418 } |
| 413 buildCounterLibrary--; | 419 buildCounterLibrary--; |
| 414 } | 420 } |
| 415 | 421 |
| 416 buildUnnamed3116() { | 422 buildUnnamed3481() { |
| 417 var o = new core.List<api.Module>(); | 423 var o = new core.List<api.Module>(); |
| 418 o.add(buildModule()); | 424 o.add(buildModule()); |
| 419 o.add(buildModule()); | 425 o.add(buildModule()); |
| 420 return o; | 426 return o; |
| 421 } | 427 } |
| 422 | 428 |
| 423 checkUnnamed3116(core.List<api.Module> o) { | 429 checkUnnamed3481(core.List<api.Module> o) { |
| 424 unittest.expect(o, unittest.hasLength(2)); | 430 unittest.expect(o, unittest.hasLength(2)); |
| 425 checkModule(o[0]); | 431 checkModule(o[0]); |
| 426 checkModule(o[1]); | 432 checkModule(o[1]); |
| 427 } | 433 } |
| 428 | 434 |
| 429 core.int buildCounterListModulesResponse = 0; | 435 core.int buildCounterListModulesResponse = 0; |
| 430 buildListModulesResponse() { | 436 buildListModulesResponse() { |
| 431 var o = new api.ListModulesResponse(); | 437 var o = new api.ListModulesResponse(); |
| 432 buildCounterListModulesResponse++; | 438 buildCounterListModulesResponse++; |
| 433 if (buildCounterListModulesResponse < 3) { | 439 if (buildCounterListModulesResponse < 3) { |
| 434 o.modules = buildUnnamed3116(); | 440 o.modules = buildUnnamed3481(); |
| 435 o.nextPageToken = "foo"; | 441 o.nextPageToken = "foo"; |
| 436 } | 442 } |
| 437 buildCounterListModulesResponse--; | 443 buildCounterListModulesResponse--; |
| 438 return o; | 444 return o; |
| 439 } | 445 } |
| 440 | 446 |
| 441 checkListModulesResponse(api.ListModulesResponse o) { | 447 checkListModulesResponse(api.ListModulesResponse o) { |
| 442 buildCounterListModulesResponse++; | 448 buildCounterListModulesResponse++; |
| 443 if (buildCounterListModulesResponse < 3) { | 449 if (buildCounterListModulesResponse < 3) { |
| 444 checkUnnamed3116(o.modules); | 450 checkUnnamed3481(o.modules); |
| 445 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 451 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 446 } | 452 } |
| 447 buildCounterListModulesResponse--; | 453 buildCounterListModulesResponse--; |
| 448 } | 454 } |
| 449 | 455 |
| 450 buildUnnamed3117() { | 456 buildUnnamed3482() { |
| 451 var o = new core.List<api.Operation>(); | 457 var o = new core.List<api.Operation>(); |
| 452 o.add(buildOperation()); | 458 o.add(buildOperation()); |
| 453 o.add(buildOperation()); | 459 o.add(buildOperation()); |
| 454 return o; | 460 return o; |
| 455 } | 461 } |
| 456 | 462 |
| 457 checkUnnamed3117(core.List<api.Operation> o) { | 463 checkUnnamed3482(core.List<api.Operation> o) { |
| 458 unittest.expect(o, unittest.hasLength(2)); | 464 unittest.expect(o, unittest.hasLength(2)); |
| 459 checkOperation(o[0]); | 465 checkOperation(o[0]); |
| 460 checkOperation(o[1]); | 466 checkOperation(o[1]); |
| 461 } | 467 } |
| 462 | 468 |
| 463 core.int buildCounterListOperationsResponse = 0; | 469 core.int buildCounterListOperationsResponse = 0; |
| 464 buildListOperationsResponse() { | 470 buildListOperationsResponse() { |
| 465 var o = new api.ListOperationsResponse(); | 471 var o = new api.ListOperationsResponse(); |
| 466 buildCounterListOperationsResponse++; | 472 buildCounterListOperationsResponse++; |
| 467 if (buildCounterListOperationsResponse < 3) { | 473 if (buildCounterListOperationsResponse < 3) { |
| 468 o.nextPageToken = "foo"; | 474 o.nextPageToken = "foo"; |
| 469 o.operations = buildUnnamed3117(); | 475 o.operations = buildUnnamed3482(); |
| 470 } | 476 } |
| 471 buildCounterListOperationsResponse--; | 477 buildCounterListOperationsResponse--; |
| 472 return o; | 478 return o; |
| 473 } | 479 } |
| 474 | 480 |
| 475 checkListOperationsResponse(api.ListOperationsResponse o) { | 481 checkListOperationsResponse(api.ListOperationsResponse o) { |
| 476 buildCounterListOperationsResponse++; | 482 buildCounterListOperationsResponse++; |
| 477 if (buildCounterListOperationsResponse < 3) { | 483 if (buildCounterListOperationsResponse < 3) { |
| 478 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 484 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 479 checkUnnamed3117(o.operations); | 485 checkUnnamed3482(o.operations); |
| 480 } | 486 } |
| 481 buildCounterListOperationsResponse--; | 487 buildCounterListOperationsResponse--; |
| 482 } | 488 } |
| 483 | 489 |
| 484 buildUnnamed3118() { | 490 buildUnnamed3483() { |
| 485 var o = new core.List<api.Version>(); | 491 var o = new core.List<api.Version>(); |
| 486 o.add(buildVersion()); | 492 o.add(buildVersion()); |
| 487 o.add(buildVersion()); | 493 o.add(buildVersion()); |
| 488 return o; | 494 return o; |
| 489 } | 495 } |
| 490 | 496 |
| 491 checkUnnamed3118(core.List<api.Version> o) { | 497 checkUnnamed3483(core.List<api.Version> o) { |
| 492 unittest.expect(o, unittest.hasLength(2)); | 498 unittest.expect(o, unittest.hasLength(2)); |
| 493 checkVersion(o[0]); | 499 checkVersion(o[0]); |
| 494 checkVersion(o[1]); | 500 checkVersion(o[1]); |
| 495 } | 501 } |
| 496 | 502 |
| 497 core.int buildCounterListVersionsResponse = 0; | 503 core.int buildCounterListVersionsResponse = 0; |
| 498 buildListVersionsResponse() { | 504 buildListVersionsResponse() { |
| 499 var o = new api.ListVersionsResponse(); | 505 var o = new api.ListVersionsResponse(); |
| 500 buildCounterListVersionsResponse++; | 506 buildCounterListVersionsResponse++; |
| 501 if (buildCounterListVersionsResponse < 3) { | 507 if (buildCounterListVersionsResponse < 3) { |
| 502 o.nextPageToken = "foo"; | 508 o.nextPageToken = "foo"; |
| 503 o.versions = buildUnnamed3118(); | 509 o.versions = buildUnnamed3483(); |
| 504 } | 510 } |
| 505 buildCounterListVersionsResponse--; | 511 buildCounterListVersionsResponse--; |
| 506 return o; | 512 return o; |
| 507 } | 513 } |
| 508 | 514 |
| 509 checkListVersionsResponse(api.ListVersionsResponse o) { | 515 checkListVersionsResponse(api.ListVersionsResponse o) { |
| 510 buildCounterListVersionsResponse++; | 516 buildCounterListVersionsResponse++; |
| 511 if (buildCounterListVersionsResponse < 3) { | 517 if (buildCounterListVersionsResponse < 3) { |
| 512 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 518 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 513 checkUnnamed3118(o.versions); | 519 checkUnnamed3483(o.versions); |
| 514 } | 520 } |
| 515 buildCounterListVersionsResponse--; | 521 buildCounterListVersionsResponse--; |
| 516 } | 522 } |
| 517 | 523 |
| 518 core.int buildCounterManualScaling = 0; | 524 core.int buildCounterManualScaling = 0; |
| 519 buildManualScaling() { | 525 buildManualScaling() { |
| 520 var o = new api.ManualScaling(); | 526 var o = new api.ManualScaling(); |
| 521 buildCounterManualScaling++; | 527 buildCounterManualScaling++; |
| 522 if (buildCounterManualScaling < 3) { | 528 if (buildCounterManualScaling < 3) { |
| 523 o.instances = 42; | 529 o.instances = 42; |
| (...skipping 26 matching lines...) Expand all Loading... |
| 550 checkModule(api.Module o) { | 556 checkModule(api.Module o) { |
| 551 buildCounterModule++; | 557 buildCounterModule++; |
| 552 if (buildCounterModule < 3) { | 558 if (buildCounterModule < 3) { |
| 553 unittest.expect(o.id, unittest.equals('foo')); | 559 unittest.expect(o.id, unittest.equals('foo')); |
| 554 unittest.expect(o.name, unittest.equals('foo')); | 560 unittest.expect(o.name, unittest.equals('foo')); |
| 555 checkTrafficSplit(o.split); | 561 checkTrafficSplit(o.split); |
| 556 } | 562 } |
| 557 buildCounterModule--; | 563 buildCounterModule--; |
| 558 } | 564 } |
| 559 | 565 |
| 560 buildUnnamed3119() { | 566 buildUnnamed3484() { |
| 561 var o = new core.List<core.String>(); | 567 var o = new core.List<core.String>(); |
| 562 o.add("foo"); | 568 o.add("foo"); |
| 563 o.add("foo"); | 569 o.add("foo"); |
| 564 return o; | 570 return o; |
| 565 } | 571 } |
| 566 | 572 |
| 567 checkUnnamed3119(core.List<core.String> o) { | 573 checkUnnamed3484(core.List<core.String> o) { |
| 568 unittest.expect(o, unittest.hasLength(2)); | 574 unittest.expect(o, unittest.hasLength(2)); |
| 569 unittest.expect(o[0], unittest.equals('foo')); | 575 unittest.expect(o[0], unittest.equals('foo')); |
| 570 unittest.expect(o[1], unittest.equals('foo')); | 576 unittest.expect(o[1], unittest.equals('foo')); |
| 571 } | 577 } |
| 572 | 578 |
| 573 core.int buildCounterNetwork = 0; | 579 core.int buildCounterNetwork = 0; |
| 574 buildNetwork() { | 580 buildNetwork() { |
| 575 var o = new api.Network(); | 581 var o = new api.Network(); |
| 576 buildCounterNetwork++; | 582 buildCounterNetwork++; |
| 577 if (buildCounterNetwork < 3) { | 583 if (buildCounterNetwork < 3) { |
| 578 o.forwardedPorts = buildUnnamed3119(); | 584 o.forwardedPorts = buildUnnamed3484(); |
| 579 o.instanceTag = "foo"; | 585 o.instanceTag = "foo"; |
| 580 o.name = "foo"; | 586 o.name = "foo"; |
| 581 } | 587 } |
| 582 buildCounterNetwork--; | 588 buildCounterNetwork--; |
| 583 return o; | 589 return o; |
| 584 } | 590 } |
| 585 | 591 |
| 586 checkNetwork(api.Network o) { | 592 checkNetwork(api.Network o) { |
| 587 buildCounterNetwork++; | 593 buildCounterNetwork++; |
| 588 if (buildCounterNetwork < 3) { | 594 if (buildCounterNetwork < 3) { |
| 589 checkUnnamed3119(o.forwardedPorts); | 595 checkUnnamed3484(o.forwardedPorts); |
| 590 unittest.expect(o.instanceTag, unittest.equals('foo')); | 596 unittest.expect(o.instanceTag, unittest.equals('foo')); |
| 591 unittest.expect(o.name, unittest.equals('foo')); | 597 unittest.expect(o.name, unittest.equals('foo')); |
| 592 } | 598 } |
| 593 buildCounterNetwork--; | 599 buildCounterNetwork--; |
| 594 } | 600 } |
| 595 | 601 |
| 596 core.int buildCounterNetworkUtilization = 0; | 602 core.int buildCounterNetworkUtilization = 0; |
| 597 buildNetworkUtilization() { | 603 buildNetworkUtilization() { |
| 598 var o = new api.NetworkUtilization(); | 604 var o = new api.NetworkUtilization(); |
| 599 buildCounterNetworkUtilization++; | 605 buildCounterNetworkUtilization++; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 611 buildCounterNetworkUtilization++; | 617 buildCounterNetworkUtilization++; |
| 612 if (buildCounterNetworkUtilization < 3) { | 618 if (buildCounterNetworkUtilization < 3) { |
| 613 unittest.expect(o.targetReceivedBytesPerSec, unittest.equals(42)); | 619 unittest.expect(o.targetReceivedBytesPerSec, unittest.equals(42)); |
| 614 unittest.expect(o.targetReceivedPacketsPerSec, unittest.equals(42)); | 620 unittest.expect(o.targetReceivedPacketsPerSec, unittest.equals(42)); |
| 615 unittest.expect(o.targetSentBytesPerSec, unittest.equals(42)); | 621 unittest.expect(o.targetSentBytesPerSec, unittest.equals(42)); |
| 616 unittest.expect(o.targetSentPacketsPerSec, unittest.equals(42)); | 622 unittest.expect(o.targetSentPacketsPerSec, unittest.equals(42)); |
| 617 } | 623 } |
| 618 buildCounterNetworkUtilization--; | 624 buildCounterNetworkUtilization--; |
| 619 } | 625 } |
| 620 | 626 |
| 621 buildUnnamed3120() { | 627 buildUnnamed3485() { |
| 622 var o = new core.Map<core.String, core.Object>(); | 628 var o = new core.Map<core.String, core.Object>(); |
| 623 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 629 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 624 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 630 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 625 return o; | 631 return o; |
| 626 } | 632 } |
| 627 | 633 |
| 628 checkUnnamed3120(core.Map<core.String, core.Object> o) { | 634 checkUnnamed3485(core.Map<core.String, core.Object> o) { |
| 629 unittest.expect(o, unittest.hasLength(2)); | 635 unittest.expect(o, unittest.hasLength(2)); |
| 630 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')); | 636 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')); |
| 631 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')); | 637 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')); |
| 632 } | 638 } |
| 633 | 639 |
| 634 buildUnnamed3121() { | 640 buildUnnamed3486() { |
| 635 var o = new core.Map<core.String, core.Object>(); | 641 var o = new core.Map<core.String, core.Object>(); |
| 636 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 642 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 637 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 643 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 638 return o; | 644 return o; |
| 639 } | 645 } |
| 640 | 646 |
| 641 checkUnnamed3121(core.Map<core.String, core.Object> o) { | 647 checkUnnamed3486(core.Map<core.String, core.Object> o) { |
| 642 unittest.expect(o, unittest.hasLength(2)); | 648 unittest.expect(o, unittest.hasLength(2)); |
| 643 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')); | 649 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')); |
| 644 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')); | 650 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')); |
| 645 } | 651 } |
| 646 | 652 |
| 647 core.int buildCounterOperation = 0; | 653 core.int buildCounterOperation = 0; |
| 648 buildOperation() { | 654 buildOperation() { |
| 649 var o = new api.Operation(); | 655 var o = new api.Operation(); |
| 650 buildCounterOperation++; | 656 buildCounterOperation++; |
| 651 if (buildCounterOperation < 3) { | 657 if (buildCounterOperation < 3) { |
| 652 o.done = true; | 658 o.done = true; |
| 653 o.error = buildStatus(); | 659 o.error = buildStatus(); |
| 654 o.metadata = buildUnnamed3120(); | 660 o.metadata = buildUnnamed3485(); |
| 655 o.name = "foo"; | 661 o.name = "foo"; |
| 656 o.response = buildUnnamed3121(); | 662 o.response = buildUnnamed3486(); |
| 657 } | 663 } |
| 658 buildCounterOperation--; | 664 buildCounterOperation--; |
| 659 return o; | 665 return o; |
| 660 } | 666 } |
| 661 | 667 |
| 662 checkOperation(api.Operation o) { | 668 checkOperation(api.Operation o) { |
| 663 buildCounterOperation++; | 669 buildCounterOperation++; |
| 664 if (buildCounterOperation < 3) { | 670 if (buildCounterOperation < 3) { |
| 665 unittest.expect(o.done, unittest.isTrue); | 671 unittest.expect(o.done, unittest.isTrue); |
| 666 checkStatus(o.error); | 672 checkStatus(o.error); |
| 667 checkUnnamed3120(o.metadata); | 673 checkUnnamed3485(o.metadata); |
| 668 unittest.expect(o.name, unittest.equals('foo')); | 674 unittest.expect(o.name, unittest.equals('foo')); |
| 669 checkUnnamed3121(o.response); | 675 checkUnnamed3486(o.response); |
| 670 } | 676 } |
| 671 buildCounterOperation--; | 677 buildCounterOperation--; |
| 672 } | 678 } |
| 673 | 679 |
| 674 core.int buildCounterOperationMetadata = 0; | 680 core.int buildCounterOperationMetadata = 0; |
| 675 buildOperationMetadata() { | 681 buildOperationMetadata() { |
| 676 var o = new api.OperationMetadata(); | 682 var o = new api.OperationMetadata(); |
| 677 buildCounterOperationMetadata++; | 683 buildCounterOperationMetadata++; |
| 678 if (buildCounterOperationMetadata < 3) { | 684 if (buildCounterOperationMetadata < 3) { |
| 679 o.endTime = "foo"; | 685 o.endTime = "foo"; |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 804 | 810 |
| 805 checkSourceReference(api.SourceReference o) { | 811 checkSourceReference(api.SourceReference o) { |
| 806 buildCounterSourceReference++; | 812 buildCounterSourceReference++; |
| 807 if (buildCounterSourceReference < 3) { | 813 if (buildCounterSourceReference < 3) { |
| 808 unittest.expect(o.repository, unittest.equals('foo')); | 814 unittest.expect(o.repository, unittest.equals('foo')); |
| 809 unittest.expect(o.revisionId, unittest.equals('foo')); | 815 unittest.expect(o.revisionId, unittest.equals('foo')); |
| 810 } | 816 } |
| 811 buildCounterSourceReference--; | 817 buildCounterSourceReference--; |
| 812 } | 818 } |
| 813 | 819 |
| 814 buildUnnamed3122() { | 820 buildUnnamed3487() { |
| 815 var o = new core.Map<core.String, core.String>(); | 821 var o = new core.Map<core.String, core.String>(); |
| 816 o["x"] = "foo"; | 822 o["x"] = "foo"; |
| 817 o["y"] = "foo"; | 823 o["y"] = "foo"; |
| 818 return o; | 824 return o; |
| 819 } | 825 } |
| 820 | 826 |
| 821 checkUnnamed3122(core.Map<core.String, core.String> o) { | 827 checkUnnamed3487(core.Map<core.String, core.String> o) { |
| 822 unittest.expect(o, unittest.hasLength(2)); | 828 unittest.expect(o, unittest.hasLength(2)); |
| 823 unittest.expect(o["x"], unittest.equals('foo')); | 829 unittest.expect(o["x"], unittest.equals('foo')); |
| 824 unittest.expect(o["y"], unittest.equals('foo')); | 830 unittest.expect(o["y"], unittest.equals('foo')); |
| 825 } | 831 } |
| 826 | 832 |
| 827 core.int buildCounterStaticDirectoryHandler = 0; | 833 core.int buildCounterStaticDirectoryHandler = 0; |
| 828 buildStaticDirectoryHandler() { | 834 buildStaticDirectoryHandler() { |
| 829 var o = new api.StaticDirectoryHandler(); | 835 var o = new api.StaticDirectoryHandler(); |
| 830 buildCounterStaticDirectoryHandler++; | 836 buildCounterStaticDirectoryHandler++; |
| 831 if (buildCounterStaticDirectoryHandler < 3) { | 837 if (buildCounterStaticDirectoryHandler < 3) { |
| 832 o.applicationReadable = true; | 838 o.applicationReadable = true; |
| 833 o.directory = "foo"; | 839 o.directory = "foo"; |
| 834 o.expiration = "foo"; | 840 o.expiration = "foo"; |
| 835 o.httpHeaders = buildUnnamed3122(); | 841 o.httpHeaders = buildUnnamed3487(); |
| 836 o.mimeType = "foo"; | 842 o.mimeType = "foo"; |
| 837 o.requireMatchingFile = true; | 843 o.requireMatchingFile = true; |
| 838 } | 844 } |
| 839 buildCounterStaticDirectoryHandler--; | 845 buildCounterStaticDirectoryHandler--; |
| 840 return o; | 846 return o; |
| 841 } | 847 } |
| 842 | 848 |
| 843 checkStaticDirectoryHandler(api.StaticDirectoryHandler o) { | 849 checkStaticDirectoryHandler(api.StaticDirectoryHandler o) { |
| 844 buildCounterStaticDirectoryHandler++; | 850 buildCounterStaticDirectoryHandler++; |
| 845 if (buildCounterStaticDirectoryHandler < 3) { | 851 if (buildCounterStaticDirectoryHandler < 3) { |
| 846 unittest.expect(o.applicationReadable, unittest.isTrue); | 852 unittest.expect(o.applicationReadable, unittest.isTrue); |
| 847 unittest.expect(o.directory, unittest.equals('foo')); | 853 unittest.expect(o.directory, unittest.equals('foo')); |
| 848 unittest.expect(o.expiration, unittest.equals('foo')); | 854 unittest.expect(o.expiration, unittest.equals('foo')); |
| 849 checkUnnamed3122(o.httpHeaders); | 855 checkUnnamed3487(o.httpHeaders); |
| 850 unittest.expect(o.mimeType, unittest.equals('foo')); | 856 unittest.expect(o.mimeType, unittest.equals('foo')); |
| 851 unittest.expect(o.requireMatchingFile, unittest.isTrue); | 857 unittest.expect(o.requireMatchingFile, unittest.isTrue); |
| 852 } | 858 } |
| 853 buildCounterStaticDirectoryHandler--; | 859 buildCounterStaticDirectoryHandler--; |
| 854 } | 860 } |
| 855 | 861 |
| 856 buildUnnamed3123() { | 862 buildUnnamed3488() { |
| 857 var o = new core.Map<core.String, core.String>(); | 863 var o = new core.Map<core.String, core.String>(); |
| 858 o["x"] = "foo"; | 864 o["x"] = "foo"; |
| 859 o["y"] = "foo"; | 865 o["y"] = "foo"; |
| 860 return o; | 866 return o; |
| 861 } | 867 } |
| 862 | 868 |
| 863 checkUnnamed3123(core.Map<core.String, core.String> o) { | 869 checkUnnamed3488(core.Map<core.String, core.String> o) { |
| 864 unittest.expect(o, unittest.hasLength(2)); | 870 unittest.expect(o, unittest.hasLength(2)); |
| 865 unittest.expect(o["x"], unittest.equals('foo')); | 871 unittest.expect(o["x"], unittest.equals('foo')); |
| 866 unittest.expect(o["y"], unittest.equals('foo')); | 872 unittest.expect(o["y"], unittest.equals('foo')); |
| 867 } | 873 } |
| 868 | 874 |
| 869 core.int buildCounterStaticFilesHandler = 0; | 875 core.int buildCounterStaticFilesHandler = 0; |
| 870 buildStaticFilesHandler() { | 876 buildStaticFilesHandler() { |
| 871 var o = new api.StaticFilesHandler(); | 877 var o = new api.StaticFilesHandler(); |
| 872 buildCounterStaticFilesHandler++; | 878 buildCounterStaticFilesHandler++; |
| 873 if (buildCounterStaticFilesHandler < 3) { | 879 if (buildCounterStaticFilesHandler < 3) { |
| 874 o.applicationReadable = true; | 880 o.applicationReadable = true; |
| 875 o.expiration = "foo"; | 881 o.expiration = "foo"; |
| 876 o.httpHeaders = buildUnnamed3123(); | 882 o.httpHeaders = buildUnnamed3488(); |
| 877 o.mimeType = "foo"; | 883 o.mimeType = "foo"; |
| 878 o.path = "foo"; | 884 o.path = "foo"; |
| 879 o.requireMatchingFile = true; | 885 o.requireMatchingFile = true; |
| 880 o.uploadPathRegex = "foo"; | 886 o.uploadPathRegex = "foo"; |
| 881 } | 887 } |
| 882 buildCounterStaticFilesHandler--; | 888 buildCounterStaticFilesHandler--; |
| 883 return o; | 889 return o; |
| 884 } | 890 } |
| 885 | 891 |
| 886 checkStaticFilesHandler(api.StaticFilesHandler o) { | 892 checkStaticFilesHandler(api.StaticFilesHandler o) { |
| 887 buildCounterStaticFilesHandler++; | 893 buildCounterStaticFilesHandler++; |
| 888 if (buildCounterStaticFilesHandler < 3) { | 894 if (buildCounterStaticFilesHandler < 3) { |
| 889 unittest.expect(o.applicationReadable, unittest.isTrue); | 895 unittest.expect(o.applicationReadable, unittest.isTrue); |
| 890 unittest.expect(o.expiration, unittest.equals('foo')); | 896 unittest.expect(o.expiration, unittest.equals('foo')); |
| 891 checkUnnamed3123(o.httpHeaders); | 897 checkUnnamed3488(o.httpHeaders); |
| 892 unittest.expect(o.mimeType, unittest.equals('foo')); | 898 unittest.expect(o.mimeType, unittest.equals('foo')); |
| 893 unittest.expect(o.path, unittest.equals('foo')); | 899 unittest.expect(o.path, unittest.equals('foo')); |
| 894 unittest.expect(o.requireMatchingFile, unittest.isTrue); | 900 unittest.expect(o.requireMatchingFile, unittest.isTrue); |
| 895 unittest.expect(o.uploadPathRegex, unittest.equals('foo')); | 901 unittest.expect(o.uploadPathRegex, unittest.equals('foo')); |
| 896 } | 902 } |
| 897 buildCounterStaticFilesHandler--; | 903 buildCounterStaticFilesHandler--; |
| 898 } | 904 } |
| 899 | 905 |
| 900 buildUnnamed3124() { | 906 buildUnnamed3489() { |
| 901 var o = new core.Map<core.String, core.Object>(); | 907 var o = new core.Map<core.String, core.Object>(); |
| 902 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 908 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 903 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 909 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 904 return o; | 910 return o; |
| 905 } | 911 } |
| 906 | 912 |
| 907 checkUnnamed3124(core.Map<core.String, core.Object> o) { | 913 checkUnnamed3489(core.Map<core.String, core.Object> o) { |
| 908 unittest.expect(o, unittest.hasLength(2)); | 914 unittest.expect(o, unittest.hasLength(2)); |
| 909 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')); | 915 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')); |
| 910 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')); | 916 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')); |
| 911 } | 917 } |
| 912 | 918 |
| 913 buildUnnamed3125() { | 919 buildUnnamed3490() { |
| 914 var o = new core.List<core.Map<core.String, core.Object>>(); | 920 var o = new core.List<core.Map<core.String, core.Object>>(); |
| 915 o.add(buildUnnamed3124()); | 921 o.add(buildUnnamed3489()); |
| 916 o.add(buildUnnamed3124()); | 922 o.add(buildUnnamed3489()); |
| 917 return o; | 923 return o; |
| 918 } | 924 } |
| 919 | 925 |
| 920 checkUnnamed3125(core.List<core.Map<core.String, core.Object>> o) { | 926 checkUnnamed3490(core.List<core.Map<core.String, core.Object>> o) { |
| 921 unittest.expect(o, unittest.hasLength(2)); | 927 unittest.expect(o, unittest.hasLength(2)); |
| 922 checkUnnamed3124(o[0]); | 928 checkUnnamed3489(o[0]); |
| 923 checkUnnamed3124(o[1]); | 929 checkUnnamed3489(o[1]); |
| 924 } | 930 } |
| 925 | 931 |
| 926 core.int buildCounterStatus = 0; | 932 core.int buildCounterStatus = 0; |
| 927 buildStatus() { | 933 buildStatus() { |
| 928 var o = new api.Status(); | 934 var o = new api.Status(); |
| 929 buildCounterStatus++; | 935 buildCounterStatus++; |
| 930 if (buildCounterStatus < 3) { | 936 if (buildCounterStatus < 3) { |
| 931 o.code = 42; | 937 o.code = 42; |
| 932 o.details = buildUnnamed3125(); | 938 o.details = buildUnnamed3490(); |
| 933 o.message = "foo"; | 939 o.message = "foo"; |
| 934 } | 940 } |
| 935 buildCounterStatus--; | 941 buildCounterStatus--; |
| 936 return o; | 942 return o; |
| 937 } | 943 } |
| 938 | 944 |
| 939 checkStatus(api.Status o) { | 945 checkStatus(api.Status o) { |
| 940 buildCounterStatus++; | 946 buildCounterStatus++; |
| 941 if (buildCounterStatus < 3) { | 947 if (buildCounterStatus < 3) { |
| 942 unittest.expect(o.code, unittest.equals(42)); | 948 unittest.expect(o.code, unittest.equals(42)); |
| 943 checkUnnamed3125(o.details); | 949 checkUnnamed3490(o.details); |
| 944 unittest.expect(o.message, unittest.equals('foo')); | 950 unittest.expect(o.message, unittest.equals('foo')); |
| 945 } | 951 } |
| 946 buildCounterStatus--; | 952 buildCounterStatus--; |
| 947 } | 953 } |
| 948 | 954 |
| 949 buildUnnamed3126() { | 955 buildUnnamed3491() { |
| 950 var o = new core.Map<core.String, core.double>(); | 956 var o = new core.Map<core.String, core.double>(); |
| 951 o["x"] = 42.0; | 957 o["x"] = 42.0; |
| 952 o["y"] = 42.0; | 958 o["y"] = 42.0; |
| 953 return o; | 959 return o; |
| 954 } | 960 } |
| 955 | 961 |
| 956 checkUnnamed3126(core.Map<core.String, core.double> o) { | 962 checkUnnamed3491(core.Map<core.String, core.double> o) { |
| 957 unittest.expect(o, unittest.hasLength(2)); | 963 unittest.expect(o, unittest.hasLength(2)); |
| 958 unittest.expect(o["x"], unittest.equals(42.0)); | 964 unittest.expect(o["x"], unittest.equals(42.0)); |
| 959 unittest.expect(o["y"], unittest.equals(42.0)); | 965 unittest.expect(o["y"], unittest.equals(42.0)); |
| 960 } | 966 } |
| 961 | 967 |
| 962 core.int buildCounterTrafficSplit = 0; | 968 core.int buildCounterTrafficSplit = 0; |
| 963 buildTrafficSplit() { | 969 buildTrafficSplit() { |
| 964 var o = new api.TrafficSplit(); | 970 var o = new api.TrafficSplit(); |
| 965 buildCounterTrafficSplit++; | 971 buildCounterTrafficSplit++; |
| 966 if (buildCounterTrafficSplit < 3) { | 972 if (buildCounterTrafficSplit < 3) { |
| 967 o.allocations = buildUnnamed3126(); | 973 o.allocations = buildUnnamed3491(); |
| 968 o.shardBy = "foo"; | 974 o.shardBy = "foo"; |
| 969 } | 975 } |
| 970 buildCounterTrafficSplit--; | 976 buildCounterTrafficSplit--; |
| 971 return o; | 977 return o; |
| 972 } | 978 } |
| 973 | 979 |
| 974 checkTrafficSplit(api.TrafficSplit o) { | 980 checkTrafficSplit(api.TrafficSplit o) { |
| 975 buildCounterTrafficSplit++; | 981 buildCounterTrafficSplit++; |
| 976 if (buildCounterTrafficSplit < 3) { | 982 if (buildCounterTrafficSplit < 3) { |
| 977 checkUnnamed3126(o.allocations); | 983 checkUnnamed3491(o.allocations); |
| 978 unittest.expect(o.shardBy, unittest.equals('foo')); | 984 unittest.expect(o.shardBy, unittest.equals('foo')); |
| 979 } | 985 } |
| 980 buildCounterTrafficSplit--; | 986 buildCounterTrafficSplit--; |
| 981 } | 987 } |
| 982 | 988 |
| 983 core.int buildCounterUrlDispatchRule = 0; | 989 core.int buildCounterUrlDispatchRule = 0; |
| 984 buildUrlDispatchRule() { | 990 buildUrlDispatchRule() { |
| 985 var o = new api.UrlDispatchRule(); | 991 var o = new api.UrlDispatchRule(); |
| 986 buildCounterUrlDispatchRule++; | 992 buildCounterUrlDispatchRule++; |
| 987 if (buildCounterUrlDispatchRule < 3) { | 993 if (buildCounterUrlDispatchRule < 3) { |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1031 unittest.expect(o.redirectHttpResponseCode, unittest.equals('foo')); | 1037 unittest.expect(o.redirectHttpResponseCode, unittest.equals('foo')); |
| 1032 checkScriptHandler(o.script); | 1038 checkScriptHandler(o.script); |
| 1033 unittest.expect(o.securityLevel, unittest.equals('foo')); | 1039 unittest.expect(o.securityLevel, unittest.equals('foo')); |
| 1034 checkStaticDirectoryHandler(o.staticDirectory); | 1040 checkStaticDirectoryHandler(o.staticDirectory); |
| 1035 checkStaticFilesHandler(o.staticFiles); | 1041 checkStaticFilesHandler(o.staticFiles); |
| 1036 unittest.expect(o.urlRegex, unittest.equals('foo')); | 1042 unittest.expect(o.urlRegex, unittest.equals('foo')); |
| 1037 } | 1043 } |
| 1038 buildCounterUrlMap--; | 1044 buildCounterUrlMap--; |
| 1039 } | 1045 } |
| 1040 | 1046 |
| 1041 buildUnnamed3127() { | 1047 buildUnnamed3492() { |
| 1042 var o = new core.Map<core.String, core.String>(); | 1048 var o = new core.Map<core.String, core.String>(); |
| 1043 o["x"] = "foo"; | 1049 o["x"] = "foo"; |
| 1044 o["y"] = "foo"; | 1050 o["y"] = "foo"; |
| 1045 return o; | 1051 return o; |
| 1046 } | 1052 } |
| 1047 | 1053 |
| 1048 checkUnnamed3127(core.Map<core.String, core.String> o) { | 1054 checkUnnamed3492(core.Map<core.String, core.String> o) { |
| 1049 unittest.expect(o, unittest.hasLength(2)); | 1055 unittest.expect(o, unittest.hasLength(2)); |
| 1050 unittest.expect(o["x"], unittest.equals('foo')); | 1056 unittest.expect(o["x"], unittest.equals('foo')); |
| 1051 unittest.expect(o["y"], unittest.equals('foo')); | 1057 unittest.expect(o["y"], unittest.equals('foo')); |
| 1052 } | 1058 } |
| 1053 | 1059 |
| 1054 buildUnnamed3128() { | 1060 buildUnnamed3493() { |
| 1055 var o = new core.Map<core.String, core.String>(); | 1061 var o = new core.Map<core.String, core.String>(); |
| 1056 o["x"] = "foo"; | 1062 o["x"] = "foo"; |
| 1057 o["y"] = "foo"; | 1063 o["y"] = "foo"; |
| 1058 return o; | 1064 return o; |
| 1059 } | 1065 } |
| 1060 | 1066 |
| 1061 checkUnnamed3128(core.Map<core.String, core.String> o) { | 1067 checkUnnamed3493(core.Map<core.String, core.String> o) { |
| 1062 unittest.expect(o, unittest.hasLength(2)); | 1068 unittest.expect(o, unittest.hasLength(2)); |
| 1063 unittest.expect(o["x"], unittest.equals('foo')); | 1069 unittest.expect(o["x"], unittest.equals('foo')); |
| 1064 unittest.expect(o["y"], unittest.equals('foo')); | 1070 unittest.expect(o["y"], unittest.equals('foo')); |
| 1065 } | 1071 } |
| 1066 | 1072 |
| 1067 buildUnnamed3129() { | 1073 buildUnnamed3494() { |
| 1068 var o = new core.List<api.ErrorHandler>(); | 1074 var o = new core.List<api.ErrorHandler>(); |
| 1069 o.add(buildErrorHandler()); | 1075 o.add(buildErrorHandler()); |
| 1070 o.add(buildErrorHandler()); | 1076 o.add(buildErrorHandler()); |
| 1071 return o; | 1077 return o; |
| 1072 } | 1078 } |
| 1073 | 1079 |
| 1074 checkUnnamed3129(core.List<api.ErrorHandler> o) { | 1080 checkUnnamed3494(core.List<api.ErrorHandler> o) { |
| 1075 unittest.expect(o, unittest.hasLength(2)); | 1081 unittest.expect(o, unittest.hasLength(2)); |
| 1076 checkErrorHandler(o[0]); | 1082 checkErrorHandler(o[0]); |
| 1077 checkErrorHandler(o[1]); | 1083 checkErrorHandler(o[1]); |
| 1078 } | 1084 } |
| 1079 | 1085 |
| 1080 buildUnnamed3130() { | 1086 buildUnnamed3495() { |
| 1081 var o = new core.List<api.UrlMap>(); | 1087 var o = new core.List<api.UrlMap>(); |
| 1082 o.add(buildUrlMap()); | 1088 o.add(buildUrlMap()); |
| 1083 o.add(buildUrlMap()); | 1089 o.add(buildUrlMap()); |
| 1084 return o; | 1090 return o; |
| 1085 } | 1091 } |
| 1086 | 1092 |
| 1087 checkUnnamed3130(core.List<api.UrlMap> o) { | 1093 checkUnnamed3495(core.List<api.UrlMap> o) { |
| 1088 unittest.expect(o, unittest.hasLength(2)); | 1094 unittest.expect(o, unittest.hasLength(2)); |
| 1089 checkUrlMap(o[0]); | 1095 checkUrlMap(o[0]); |
| 1090 checkUrlMap(o[1]); | 1096 checkUrlMap(o[1]); |
| 1091 } | 1097 } |
| 1092 | 1098 |
| 1093 buildUnnamed3131() { | 1099 buildUnnamed3496() { |
| 1094 var o = new core.List<core.String>(); | 1100 var o = new core.List<core.String>(); |
| 1095 o.add("foo"); | 1101 o.add("foo"); |
| 1096 o.add("foo"); | 1102 o.add("foo"); |
| 1097 return o; | 1103 return o; |
| 1098 } | 1104 } |
| 1099 | 1105 |
| 1100 checkUnnamed3131(core.List<core.String> o) { | 1106 checkUnnamed3496(core.List<core.String> o) { |
| 1101 unittest.expect(o, unittest.hasLength(2)); | 1107 unittest.expect(o, unittest.hasLength(2)); |
| 1102 unittest.expect(o[0], unittest.equals('foo')); | 1108 unittest.expect(o[0], unittest.equals('foo')); |
| 1103 unittest.expect(o[1], unittest.equals('foo')); | 1109 unittest.expect(o[1], unittest.equals('foo')); |
| 1104 } | 1110 } |
| 1105 | 1111 |
| 1106 buildUnnamed3132() { | 1112 buildUnnamed3497() { |
| 1107 var o = new core.List<api.Library>(); | 1113 var o = new core.List<api.Library>(); |
| 1108 o.add(buildLibrary()); | 1114 o.add(buildLibrary()); |
| 1109 o.add(buildLibrary()); | 1115 o.add(buildLibrary()); |
| 1110 return o; | 1116 return o; |
| 1111 } | 1117 } |
| 1112 | 1118 |
| 1113 checkUnnamed3132(core.List<api.Library> o) { | 1119 checkUnnamed3497(core.List<api.Library> o) { |
| 1114 unittest.expect(o, unittest.hasLength(2)); | 1120 unittest.expect(o, unittest.hasLength(2)); |
| 1115 checkLibrary(o[0]); | 1121 checkLibrary(o[0]); |
| 1116 checkLibrary(o[1]); | 1122 checkLibrary(o[1]); |
| 1117 } | 1123 } |
| 1118 | 1124 |
| 1119 core.int buildCounterVersion = 0; | 1125 core.int buildCounterVersion = 0; |
| 1120 buildVersion() { | 1126 buildVersion() { |
| 1121 var o = new api.Version(); | 1127 var o = new api.Version(); |
| 1122 buildCounterVersion++; | 1128 buildCounterVersion++; |
| 1123 if (buildCounterVersion < 3) { | 1129 if (buildCounterVersion < 3) { |
| 1124 o.apiConfig = buildApiConfigHandler(); | 1130 o.apiConfig = buildApiConfigHandler(); |
| 1125 o.automaticScaling = buildAutomaticScaling(); | 1131 o.automaticScaling = buildAutomaticScaling(); |
| 1126 o.basicScaling = buildBasicScaling(); | 1132 o.basicScaling = buildBasicScaling(); |
| 1127 o.betaSettings = buildUnnamed3127(); | 1133 o.betaSettings = buildUnnamed3492(); |
| 1128 o.creationTime = "foo"; | 1134 o.creationTime = "foo"; |
| 1129 o.defaultExpiration = "foo"; | 1135 o.defaultExpiration = "foo"; |
| 1130 o.deployer = "foo"; | 1136 o.deployer = "foo"; |
| 1131 o.deployment = buildDeployment(); | 1137 o.deployment = buildDeployment(); |
| 1132 o.env = "foo"; | 1138 o.env = "foo"; |
| 1133 o.envVariables = buildUnnamed3128(); | 1139 o.envVariables = buildUnnamed3493(); |
| 1134 o.errorHandlers = buildUnnamed3129(); | 1140 o.errorHandlers = buildUnnamed3494(); |
| 1135 o.handlers = buildUnnamed3130(); | 1141 o.handlers = buildUnnamed3495(); |
| 1136 o.healthCheck = buildHealthCheck(); | 1142 o.healthCheck = buildHealthCheck(); |
| 1137 o.id = "foo"; | 1143 o.id = "foo"; |
| 1138 o.inboundServices = buildUnnamed3131(); | 1144 o.inboundServices = buildUnnamed3496(); |
| 1139 o.instanceClass = "foo"; | 1145 o.instanceClass = "foo"; |
| 1140 o.libraries = buildUnnamed3132(); | 1146 o.libraries = buildUnnamed3497(); |
| 1141 o.manualScaling = buildManualScaling(); | 1147 o.manualScaling = buildManualScaling(); |
| 1142 o.name = "foo"; | 1148 o.name = "foo"; |
| 1143 o.network = buildNetwork(); | 1149 o.network = buildNetwork(); |
| 1144 o.nobuildFilesRegex = "foo"; | 1150 o.nobuildFilesRegex = "foo"; |
| 1145 o.resources = buildResources(); | 1151 o.resources = buildResources(); |
| 1146 o.runtime = "foo"; | 1152 o.runtime = "foo"; |
| 1147 o.servingStatus = "foo"; | 1153 o.servingStatus = "foo"; |
| 1148 o.threadsafe = true; | 1154 o.threadsafe = true; |
| 1149 o.vm = true; | 1155 o.vm = true; |
| 1150 } | 1156 } |
| 1151 buildCounterVersion--; | 1157 buildCounterVersion--; |
| 1152 return o; | 1158 return o; |
| 1153 } | 1159 } |
| 1154 | 1160 |
| 1155 checkVersion(api.Version o) { | 1161 checkVersion(api.Version o) { |
| 1156 buildCounterVersion++; | 1162 buildCounterVersion++; |
| 1157 if (buildCounterVersion < 3) { | 1163 if (buildCounterVersion < 3) { |
| 1158 checkApiConfigHandler(o.apiConfig); | 1164 checkApiConfigHandler(o.apiConfig); |
| 1159 checkAutomaticScaling(o.automaticScaling); | 1165 checkAutomaticScaling(o.automaticScaling); |
| 1160 checkBasicScaling(o.basicScaling); | 1166 checkBasicScaling(o.basicScaling); |
| 1161 checkUnnamed3127(o.betaSettings); | 1167 checkUnnamed3492(o.betaSettings); |
| 1162 unittest.expect(o.creationTime, unittest.equals('foo')); | 1168 unittest.expect(o.creationTime, unittest.equals('foo')); |
| 1163 unittest.expect(o.defaultExpiration, unittest.equals('foo')); | 1169 unittest.expect(o.defaultExpiration, unittest.equals('foo')); |
| 1164 unittest.expect(o.deployer, unittest.equals('foo')); | 1170 unittest.expect(o.deployer, unittest.equals('foo')); |
| 1165 checkDeployment(o.deployment); | 1171 checkDeployment(o.deployment); |
| 1166 unittest.expect(o.env, unittest.equals('foo')); | 1172 unittest.expect(o.env, unittest.equals('foo')); |
| 1167 checkUnnamed3128(o.envVariables); | 1173 checkUnnamed3493(o.envVariables); |
| 1168 checkUnnamed3129(o.errorHandlers); | 1174 checkUnnamed3494(o.errorHandlers); |
| 1169 checkUnnamed3130(o.handlers); | 1175 checkUnnamed3495(o.handlers); |
| 1170 checkHealthCheck(o.healthCheck); | 1176 checkHealthCheck(o.healthCheck); |
| 1171 unittest.expect(o.id, unittest.equals('foo')); | 1177 unittest.expect(o.id, unittest.equals('foo')); |
| 1172 checkUnnamed3131(o.inboundServices); | 1178 checkUnnamed3496(o.inboundServices); |
| 1173 unittest.expect(o.instanceClass, unittest.equals('foo')); | 1179 unittest.expect(o.instanceClass, unittest.equals('foo')); |
| 1174 checkUnnamed3132(o.libraries); | 1180 checkUnnamed3497(o.libraries); |
| 1175 checkManualScaling(o.manualScaling); | 1181 checkManualScaling(o.manualScaling); |
| 1176 unittest.expect(o.name, unittest.equals('foo')); | 1182 unittest.expect(o.name, unittest.equals('foo')); |
| 1177 checkNetwork(o.network); | 1183 checkNetwork(o.network); |
| 1178 unittest.expect(o.nobuildFilesRegex, unittest.equals('foo')); | 1184 unittest.expect(o.nobuildFilesRegex, unittest.equals('foo')); |
| 1179 checkResources(o.resources); | 1185 checkResources(o.resources); |
| 1180 unittest.expect(o.runtime, unittest.equals('foo')); | 1186 unittest.expect(o.runtime, unittest.equals('foo')); |
| 1181 unittest.expect(o.servingStatus, unittest.equals('foo')); | 1187 unittest.expect(o.servingStatus, unittest.equals('foo')); |
| 1182 unittest.expect(o.threadsafe, unittest.isTrue); | 1188 unittest.expect(o.threadsafe, unittest.isTrue); |
| 1183 unittest.expect(o.vm, unittest.isTrue); | 1189 unittest.expect(o.vm, unittest.isTrue); |
| 1184 } | 1190 } |
| (...skipping 843 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2028 "content-type" : "application/json; charset=utf-8", | 2034 "content-type" : "application/json; charset=utf-8", |
| 2029 }; | 2035 }; |
| 2030 var resp = convert.JSON.encode(buildListVersionsResponse()); | 2036 var resp = convert.JSON.encode(buildListVersionsResponse()); |
| 2031 return new async.Future.value(stringResponse(200, h, resp)); | 2037 return new async.Future.value(stringResponse(200, h, resp)); |
| 2032 }), true); | 2038 }), true); |
| 2033 res.list(arg_appsId, arg_modulesId, view: arg_view, pageSize: arg_pageSize
, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ListVersionsResponse
response) { | 2039 res.list(arg_appsId, arg_modulesId, view: arg_view, pageSize: arg_pageSize
, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ListVersionsResponse
response) { |
| 2034 checkListVersionsResponse(response); | 2040 checkListVersionsResponse(response); |
| 2035 }))); | 2041 }))); |
| 2036 }); | 2042 }); |
| 2037 | 2043 |
| 2044 unittest.test("method--patch", () { |
| 2045 |
| 2046 var mock = new HttpServerMock(); |
| 2047 api.AppsModulesVersionsResourceApi res = new api.AppengineApi(mock).apps.m
odules.versions; |
| 2048 var arg_request = buildVersion(); |
| 2049 var arg_appsId = "foo"; |
| 2050 var arg_modulesId = "foo"; |
| 2051 var arg_versionsId = "foo"; |
| 2052 var arg_mask = "foo"; |
| 2053 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 2054 var obj = new api.Version.fromJson(json); |
| 2055 checkVersion(obj); |
| 2056 |
| 2057 var path = (req.url).path; |
| 2058 var pathOffset = 0; |
| 2059 var index; |
| 2060 var subPart; |
| 2061 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 2062 pathOffset += 1; |
| 2063 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("v1beta4/apps/")); |
| 2064 pathOffset += 13; |
| 2065 index = path.indexOf("/modules/", pathOffset); |
| 2066 unittest.expect(index >= 0, unittest.isTrue); |
| 2067 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 2068 pathOffset = index; |
| 2069 unittest.expect(subPart, unittest.equals("$arg_appsId")); |
| 2070 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("/modules/")); |
| 2071 pathOffset += 9; |
| 2072 index = path.indexOf("/versions/", pathOffset); |
| 2073 unittest.expect(index >= 0, unittest.isTrue); |
| 2074 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 2075 pathOffset = index; |
| 2076 unittest.expect(subPart, unittest.equals("$arg_modulesId")); |
| 2077 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/versions/")); |
| 2078 pathOffset += 10; |
| 2079 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
| 2080 pathOffset = path.length; |
| 2081 unittest.expect(subPart, unittest.equals("$arg_versionsId")); |
| 2082 |
| 2083 var query = (req.url).query; |
| 2084 var queryOffset = 0; |
| 2085 var queryMap = {}; |
| 2086 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 2087 parseBool(n) { |
| 2088 if (n == "true") return true; |
| 2089 if (n == "false") return false; |
| 2090 if (n == null) return null; |
| 2091 throw new core.ArgumentError("Invalid boolean: $n"); |
| 2092 } |
| 2093 if (query.length > 0) { |
| 2094 for (var part in query.split("&")) { |
| 2095 var keyvalue = part.split("="); |
| 2096 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 2097 } |
| 2098 } |
| 2099 unittest.expect(queryMap["mask"].first, unittest.equals(arg_mask)); |
| 2100 |
| 2101 |
| 2102 var h = { |
| 2103 "content-type" : "application/json; charset=utf-8", |
| 2104 }; |
| 2105 var resp = convert.JSON.encode(buildOperation()); |
| 2106 return new async.Future.value(stringResponse(200, h, resp)); |
| 2107 }), true); |
| 2108 res.patch(arg_request, arg_appsId, arg_modulesId, arg_versionsId, mask: ar
g_mask).then(unittest.expectAsync(((api.Operation response) { |
| 2109 checkOperation(response); |
| 2110 }))); |
| 2111 }); |
| 2112 |
| 2038 }); | 2113 }); |
| 2039 | 2114 |
| 2040 | 2115 |
| 2041 unittest.group("resource-AppsOperationsResourceApi", () { | 2116 unittest.group("resource-AppsOperationsResourceApi", () { |
| 2042 unittest.test("method--get", () { | 2117 unittest.test("method--get", () { |
| 2043 | 2118 |
| 2044 var mock = new HttpServerMock(); | 2119 var mock = new HttpServerMock(); |
| 2045 api.AppsOperationsResourceApi res = new api.AppengineApi(mock).apps.operat
ions; | 2120 api.AppsOperationsResourceApi res = new api.AppengineApi(mock).apps.operat
ions; |
| 2046 var arg_appsId = "foo"; | 2121 var arg_appsId = "foo"; |
| 2047 var arg_operationsId = "foo"; | 2122 var arg_operationsId = "foo"; |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2149 res.list(arg_appsId, filter: arg_filter, pageSize: arg_pageSize, pageToken
: arg_pageToken).then(unittest.expectAsync(((api.ListOperationsResponse response
) { | 2224 res.list(arg_appsId, filter: arg_filter, pageSize: arg_pageSize, pageToken
: arg_pageToken).then(unittest.expectAsync(((api.ListOperationsResponse response
) { |
| 2150 checkListOperationsResponse(response); | 2225 checkListOperationsResponse(response); |
| 2151 }))); | 2226 }))); |
| 2152 }); | 2227 }); |
| 2153 | 2228 |
| 2154 }); | 2229 }); |
| 2155 | 2230 |
| 2156 | 2231 |
| 2157 } | 2232 } |
| 2158 | 2233 |
| OLD | NEW |