| OLD | NEW |
| 1 library googleapis_beta.dns.v2beta1.test; | 1 library googleapis_beta.dns.v2beta1.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_beta/dns/v2beta1.dart' as api; | 12 import 'package:googleapis_beta/dns/v2beta1.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 buildUnnamed3838() { | 54 buildUnnamed3312() { |
| 55 var o = new core.List<api.ResourceRecordSet>(); | 55 var o = new core.List<api.ResourceRecordSet>(); |
| 56 o.add(buildResourceRecordSet()); | 56 o.add(buildResourceRecordSet()); |
| 57 o.add(buildResourceRecordSet()); | 57 o.add(buildResourceRecordSet()); |
| 58 return o; | 58 return o; |
| 59 } | 59 } |
| 60 | 60 |
| 61 checkUnnamed3838(core.List<api.ResourceRecordSet> o) { | 61 checkUnnamed3312(core.List<api.ResourceRecordSet> o) { |
| 62 unittest.expect(o, unittest.hasLength(2)); | 62 unittest.expect(o, unittest.hasLength(2)); |
| 63 checkResourceRecordSet(o[0]); | 63 checkResourceRecordSet(o[0]); |
| 64 checkResourceRecordSet(o[1]); | 64 checkResourceRecordSet(o[1]); |
| 65 } | 65 } |
| 66 | 66 |
| 67 buildUnnamed3839() { | 67 buildUnnamed3313() { |
| 68 var o = new core.List<api.ResourceRecordSet>(); | 68 var o = new core.List<api.ResourceRecordSet>(); |
| 69 o.add(buildResourceRecordSet()); | 69 o.add(buildResourceRecordSet()); |
| 70 o.add(buildResourceRecordSet()); | 70 o.add(buildResourceRecordSet()); |
| 71 return o; | 71 return o; |
| 72 } | 72 } |
| 73 | 73 |
| 74 checkUnnamed3839(core.List<api.ResourceRecordSet> o) { | 74 checkUnnamed3313(core.List<api.ResourceRecordSet> o) { |
| 75 unittest.expect(o, unittest.hasLength(2)); | 75 unittest.expect(o, unittest.hasLength(2)); |
| 76 checkResourceRecordSet(o[0]); | 76 checkResourceRecordSet(o[0]); |
| 77 checkResourceRecordSet(o[1]); | 77 checkResourceRecordSet(o[1]); |
| 78 } | 78 } |
| 79 | 79 |
| 80 core.int buildCounterChange = 0; | 80 core.int buildCounterChange = 0; |
| 81 buildChange() { | 81 buildChange() { |
| 82 var o = new api.Change(); | 82 var o = new api.Change(); |
| 83 buildCounterChange++; | 83 buildCounterChange++; |
| 84 if (buildCounterChange < 3) { | 84 if (buildCounterChange < 3) { |
| 85 o.additions = buildUnnamed3838(); | 85 o.additions = buildUnnamed3312(); |
| 86 o.deletions = buildUnnamed3839(); | 86 o.deletions = buildUnnamed3313(); |
| 87 o.id = "foo"; | 87 o.id = "foo"; |
| 88 o.isServing = true; | 88 o.isServing = true; |
| 89 o.kind = "foo"; | 89 o.kind = "foo"; |
| 90 o.startTime = "foo"; | 90 o.startTime = "foo"; |
| 91 o.status = "foo"; | 91 o.status = "foo"; |
| 92 } | 92 } |
| 93 buildCounterChange--; | 93 buildCounterChange--; |
| 94 return o; | 94 return o; |
| 95 } | 95 } |
| 96 | 96 |
| 97 checkChange(api.Change o) { | 97 checkChange(api.Change o) { |
| 98 buildCounterChange++; | 98 buildCounterChange++; |
| 99 if (buildCounterChange < 3) { | 99 if (buildCounterChange < 3) { |
| 100 checkUnnamed3838(o.additions); | 100 checkUnnamed3312(o.additions); |
| 101 checkUnnamed3839(o.deletions); | 101 checkUnnamed3313(o.deletions); |
| 102 unittest.expect(o.id, unittest.equals('foo')); | 102 unittest.expect(o.id, unittest.equals('foo')); |
| 103 unittest.expect(o.isServing, unittest.isTrue); | 103 unittest.expect(o.isServing, unittest.isTrue); |
| 104 unittest.expect(o.kind, unittest.equals('foo')); | 104 unittest.expect(o.kind, unittest.equals('foo')); |
| 105 unittest.expect(o.startTime, unittest.equals('foo')); | 105 unittest.expect(o.startTime, unittest.equals('foo')); |
| 106 unittest.expect(o.status, unittest.equals('foo')); | 106 unittest.expect(o.status, unittest.equals('foo')); |
| 107 } | 107 } |
| 108 buildCounterChange--; | 108 buildCounterChange--; |
| 109 } | 109 } |
| 110 | 110 |
| 111 buildUnnamed3840() { | 111 buildUnnamed3314() { |
| 112 var o = new core.List<api.Change>(); | 112 var o = new core.List<api.Change>(); |
| 113 o.add(buildChange()); | 113 o.add(buildChange()); |
| 114 o.add(buildChange()); | 114 o.add(buildChange()); |
| 115 return o; | 115 return o; |
| 116 } | 116 } |
| 117 | 117 |
| 118 checkUnnamed3840(core.List<api.Change> o) { | 118 checkUnnamed3314(core.List<api.Change> o) { |
| 119 unittest.expect(o, unittest.hasLength(2)); | 119 unittest.expect(o, unittest.hasLength(2)); |
| 120 checkChange(o[0]); | 120 checkChange(o[0]); |
| 121 checkChange(o[1]); | 121 checkChange(o[1]); |
| 122 } | 122 } |
| 123 | 123 |
| 124 core.int buildCounterChangesListResponse = 0; | 124 core.int buildCounterChangesListResponse = 0; |
| 125 buildChangesListResponse() { | 125 buildChangesListResponse() { |
| 126 var o = new api.ChangesListResponse(); | 126 var o = new api.ChangesListResponse(); |
| 127 buildCounterChangesListResponse++; | 127 buildCounterChangesListResponse++; |
| 128 if (buildCounterChangesListResponse < 3) { | 128 if (buildCounterChangesListResponse < 3) { |
| 129 o.changes = buildUnnamed3840(); | 129 o.changes = buildUnnamed3314(); |
| 130 o.header = buildResponseHeader(); | 130 o.header = buildResponseHeader(); |
| 131 o.kind = "foo"; | 131 o.kind = "foo"; |
| 132 o.nextPageToken = "foo"; | 132 o.nextPageToken = "foo"; |
| 133 } | 133 } |
| 134 buildCounterChangesListResponse--; | 134 buildCounterChangesListResponse--; |
| 135 return o; | 135 return o; |
| 136 } | 136 } |
| 137 | 137 |
| 138 checkChangesListResponse(api.ChangesListResponse o) { | 138 checkChangesListResponse(api.ChangesListResponse o) { |
| 139 buildCounterChangesListResponse++; | 139 buildCounterChangesListResponse++; |
| 140 if (buildCounterChangesListResponse < 3) { | 140 if (buildCounterChangesListResponse < 3) { |
| 141 checkUnnamed3840(o.changes); | 141 checkUnnamed3314(o.changes); |
| 142 checkResponseHeader(o.header); | 142 checkResponseHeader(o.header); |
| 143 unittest.expect(o.kind, unittest.equals('foo')); | 143 unittest.expect(o.kind, unittest.equals('foo')); |
| 144 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 144 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 145 } | 145 } |
| 146 buildCounterChangesListResponse--; | 146 buildCounterChangesListResponse--; |
| 147 } | 147 } |
| 148 | 148 |
| 149 buildUnnamed3841() { | 149 buildUnnamed3315() { |
| 150 var o = new core.List<api.DnsKeyDigest>(); | 150 var o = new core.List<api.DnsKeyDigest>(); |
| 151 o.add(buildDnsKeyDigest()); | 151 o.add(buildDnsKeyDigest()); |
| 152 o.add(buildDnsKeyDigest()); | 152 o.add(buildDnsKeyDigest()); |
| 153 return o; | 153 return o; |
| 154 } | 154 } |
| 155 | 155 |
| 156 checkUnnamed3841(core.List<api.DnsKeyDigest> o) { | 156 checkUnnamed3315(core.List<api.DnsKeyDigest> o) { |
| 157 unittest.expect(o, unittest.hasLength(2)); | 157 unittest.expect(o, unittest.hasLength(2)); |
| 158 checkDnsKeyDigest(o[0]); | 158 checkDnsKeyDigest(o[0]); |
| 159 checkDnsKeyDigest(o[1]); | 159 checkDnsKeyDigest(o[1]); |
| 160 } | 160 } |
| 161 | 161 |
| 162 core.int buildCounterDnsKey = 0; | 162 core.int buildCounterDnsKey = 0; |
| 163 buildDnsKey() { | 163 buildDnsKey() { |
| 164 var o = new api.DnsKey(); | 164 var o = new api.DnsKey(); |
| 165 buildCounterDnsKey++; | 165 buildCounterDnsKey++; |
| 166 if (buildCounterDnsKey < 3) { | 166 if (buildCounterDnsKey < 3) { |
| 167 o.algorithm = "foo"; | 167 o.algorithm = "foo"; |
| 168 o.creationTime = "foo"; | 168 o.creationTime = "foo"; |
| 169 o.description = "foo"; | 169 o.description = "foo"; |
| 170 o.digests = buildUnnamed3841(); | 170 o.digests = buildUnnamed3315(); |
| 171 o.id = "foo"; | 171 o.id = "foo"; |
| 172 o.isActive = true; | 172 o.isActive = true; |
| 173 o.keyLength = 42; | 173 o.keyLength = 42; |
| 174 o.keyTag = 42; | 174 o.keyTag = 42; |
| 175 o.kind = "foo"; | 175 o.kind = "foo"; |
| 176 o.publicKey = "foo"; | 176 o.publicKey = "foo"; |
| 177 o.type = "foo"; | 177 o.type = "foo"; |
| 178 } | 178 } |
| 179 buildCounterDnsKey--; | 179 buildCounterDnsKey--; |
| 180 return o; | 180 return o; |
| 181 } | 181 } |
| 182 | 182 |
| 183 checkDnsKey(api.DnsKey o) { | 183 checkDnsKey(api.DnsKey o) { |
| 184 buildCounterDnsKey++; | 184 buildCounterDnsKey++; |
| 185 if (buildCounterDnsKey < 3) { | 185 if (buildCounterDnsKey < 3) { |
| 186 unittest.expect(o.algorithm, unittest.equals('foo')); | 186 unittest.expect(o.algorithm, unittest.equals('foo')); |
| 187 unittest.expect(o.creationTime, unittest.equals('foo')); | 187 unittest.expect(o.creationTime, unittest.equals('foo')); |
| 188 unittest.expect(o.description, unittest.equals('foo')); | 188 unittest.expect(o.description, unittest.equals('foo')); |
| 189 checkUnnamed3841(o.digests); | 189 checkUnnamed3315(o.digests); |
| 190 unittest.expect(o.id, unittest.equals('foo')); | 190 unittest.expect(o.id, unittest.equals('foo')); |
| 191 unittest.expect(o.isActive, unittest.isTrue); | 191 unittest.expect(o.isActive, unittest.isTrue); |
| 192 unittest.expect(o.keyLength, unittest.equals(42)); | 192 unittest.expect(o.keyLength, unittest.equals(42)); |
| 193 unittest.expect(o.keyTag, unittest.equals(42)); | 193 unittest.expect(o.keyTag, unittest.equals(42)); |
| 194 unittest.expect(o.kind, unittest.equals('foo')); | 194 unittest.expect(o.kind, unittest.equals('foo')); |
| 195 unittest.expect(o.publicKey, unittest.equals('foo')); | 195 unittest.expect(o.publicKey, unittest.equals('foo')); |
| 196 unittest.expect(o.type, unittest.equals('foo')); | 196 unittest.expect(o.type, unittest.equals('foo')); |
| 197 } | 197 } |
| 198 buildCounterDnsKey--; | 198 buildCounterDnsKey--; |
| 199 } | 199 } |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 237 buildCounterDnsKeySpec++; | 237 buildCounterDnsKeySpec++; |
| 238 if (buildCounterDnsKeySpec < 3) { | 238 if (buildCounterDnsKeySpec < 3) { |
| 239 unittest.expect(o.algorithm, unittest.equals('foo')); | 239 unittest.expect(o.algorithm, unittest.equals('foo')); |
| 240 unittest.expect(o.keyLength, unittest.equals(42)); | 240 unittest.expect(o.keyLength, unittest.equals(42)); |
| 241 unittest.expect(o.keyType, unittest.equals('foo')); | 241 unittest.expect(o.keyType, unittest.equals('foo')); |
| 242 unittest.expect(o.kind, unittest.equals('foo')); | 242 unittest.expect(o.kind, unittest.equals('foo')); |
| 243 } | 243 } |
| 244 buildCounterDnsKeySpec--; | 244 buildCounterDnsKeySpec--; |
| 245 } | 245 } |
| 246 | 246 |
| 247 buildUnnamed3842() { | 247 buildUnnamed3316() { |
| 248 var o = new core.List<api.DnsKey>(); | 248 var o = new core.List<api.DnsKey>(); |
| 249 o.add(buildDnsKey()); | 249 o.add(buildDnsKey()); |
| 250 o.add(buildDnsKey()); | 250 o.add(buildDnsKey()); |
| 251 return o; | 251 return o; |
| 252 } | 252 } |
| 253 | 253 |
| 254 checkUnnamed3842(core.List<api.DnsKey> o) { | 254 checkUnnamed3316(core.List<api.DnsKey> o) { |
| 255 unittest.expect(o, unittest.hasLength(2)); | 255 unittest.expect(o, unittest.hasLength(2)); |
| 256 checkDnsKey(o[0]); | 256 checkDnsKey(o[0]); |
| 257 checkDnsKey(o[1]); | 257 checkDnsKey(o[1]); |
| 258 } | 258 } |
| 259 | 259 |
| 260 core.int buildCounterDnsKeysListResponse = 0; | 260 core.int buildCounterDnsKeysListResponse = 0; |
| 261 buildDnsKeysListResponse() { | 261 buildDnsKeysListResponse() { |
| 262 var o = new api.DnsKeysListResponse(); | 262 var o = new api.DnsKeysListResponse(); |
| 263 buildCounterDnsKeysListResponse++; | 263 buildCounterDnsKeysListResponse++; |
| 264 if (buildCounterDnsKeysListResponse < 3) { | 264 if (buildCounterDnsKeysListResponse < 3) { |
| 265 o.dnsKeys = buildUnnamed3842(); | 265 o.dnsKeys = buildUnnamed3316(); |
| 266 o.header = buildResponseHeader(); | 266 o.header = buildResponseHeader(); |
| 267 o.kind = "foo"; | 267 o.kind = "foo"; |
| 268 o.nextPageToken = "foo"; | 268 o.nextPageToken = "foo"; |
| 269 } | 269 } |
| 270 buildCounterDnsKeysListResponse--; | 270 buildCounterDnsKeysListResponse--; |
| 271 return o; | 271 return o; |
| 272 } | 272 } |
| 273 | 273 |
| 274 checkDnsKeysListResponse(api.DnsKeysListResponse o) { | 274 checkDnsKeysListResponse(api.DnsKeysListResponse o) { |
| 275 buildCounterDnsKeysListResponse++; | 275 buildCounterDnsKeysListResponse++; |
| 276 if (buildCounterDnsKeysListResponse < 3) { | 276 if (buildCounterDnsKeysListResponse < 3) { |
| 277 checkUnnamed3842(o.dnsKeys); | 277 checkUnnamed3316(o.dnsKeys); |
| 278 checkResponseHeader(o.header); | 278 checkResponseHeader(o.header); |
| 279 unittest.expect(o.kind, unittest.equals('foo')); | 279 unittest.expect(o.kind, unittest.equals('foo')); |
| 280 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 280 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 281 } | 281 } |
| 282 buildCounterDnsKeysListResponse--; | 282 buildCounterDnsKeysListResponse--; |
| 283 } | 283 } |
| 284 | 284 |
| 285 buildUnnamed3843() { | 285 buildUnnamed3317() { |
| 286 var o = new core.List<core.String>(); | 286 var o = new core.List<core.String>(); |
| 287 o.add("foo"); | 287 o.add("foo"); |
| 288 o.add("foo"); | 288 o.add("foo"); |
| 289 return o; | 289 return o; |
| 290 } | 290 } |
| 291 | 291 |
| 292 checkUnnamed3843(core.List<core.String> o) { | 292 checkUnnamed3317(core.List<core.String> o) { |
| 293 unittest.expect(o, unittest.hasLength(2)); | 293 unittest.expect(o, unittest.hasLength(2)); |
| 294 unittest.expect(o[0], unittest.equals('foo')); | 294 unittest.expect(o[0], unittest.equals('foo')); |
| 295 unittest.expect(o[1], unittest.equals('foo')); | 295 unittest.expect(o[1], unittest.equals('foo')); |
| 296 } | 296 } |
| 297 | 297 |
| 298 core.int buildCounterManagedZone = 0; | 298 core.int buildCounterManagedZone = 0; |
| 299 buildManagedZone() { | 299 buildManagedZone() { |
| 300 var o = new api.ManagedZone(); | 300 var o = new api.ManagedZone(); |
| 301 buildCounterManagedZone++; | 301 buildCounterManagedZone++; |
| 302 if (buildCounterManagedZone < 3) { | 302 if (buildCounterManagedZone < 3) { |
| 303 o.creationTime = "foo"; | 303 o.creationTime = "foo"; |
| 304 o.description = "foo"; | 304 o.description = "foo"; |
| 305 o.dnsName = "foo"; | 305 o.dnsName = "foo"; |
| 306 o.dnssecConfig = buildManagedZoneDnsSecConfig(); | 306 o.dnssecConfig = buildManagedZoneDnsSecConfig(); |
| 307 o.id = "foo"; | 307 o.id = "foo"; |
| 308 o.kind = "foo"; | 308 o.kind = "foo"; |
| 309 o.name = "foo"; | 309 o.name = "foo"; |
| 310 o.nameServerSet = "foo"; | 310 o.nameServerSet = "foo"; |
| 311 o.nameServers = buildUnnamed3843(); | 311 o.nameServers = buildUnnamed3317(); |
| 312 } | 312 } |
| 313 buildCounterManagedZone--; | 313 buildCounterManagedZone--; |
| 314 return o; | 314 return o; |
| 315 } | 315 } |
| 316 | 316 |
| 317 checkManagedZone(api.ManagedZone o) { | 317 checkManagedZone(api.ManagedZone o) { |
| 318 buildCounterManagedZone++; | 318 buildCounterManagedZone++; |
| 319 if (buildCounterManagedZone < 3) { | 319 if (buildCounterManagedZone < 3) { |
| 320 unittest.expect(o.creationTime, unittest.equals('foo')); | 320 unittest.expect(o.creationTime, unittest.equals('foo')); |
| 321 unittest.expect(o.description, unittest.equals('foo')); | 321 unittest.expect(o.description, unittest.equals('foo')); |
| 322 unittest.expect(o.dnsName, unittest.equals('foo')); | 322 unittest.expect(o.dnsName, unittest.equals('foo')); |
| 323 checkManagedZoneDnsSecConfig(o.dnssecConfig); | 323 checkManagedZoneDnsSecConfig(o.dnssecConfig); |
| 324 unittest.expect(o.id, unittest.equals('foo')); | 324 unittest.expect(o.id, unittest.equals('foo')); |
| 325 unittest.expect(o.kind, unittest.equals('foo')); | 325 unittest.expect(o.kind, unittest.equals('foo')); |
| 326 unittest.expect(o.name, unittest.equals('foo')); | 326 unittest.expect(o.name, unittest.equals('foo')); |
| 327 unittest.expect(o.nameServerSet, unittest.equals('foo')); | 327 unittest.expect(o.nameServerSet, unittest.equals('foo')); |
| 328 checkUnnamed3843(o.nameServers); | 328 checkUnnamed3317(o.nameServers); |
| 329 } | 329 } |
| 330 buildCounterManagedZone--; | 330 buildCounterManagedZone--; |
| 331 } | 331 } |
| 332 | 332 |
| 333 buildUnnamed3844() { | 333 buildUnnamed3318() { |
| 334 var o = new core.List<api.DnsKeySpec>(); | 334 var o = new core.List<api.DnsKeySpec>(); |
| 335 o.add(buildDnsKeySpec()); | 335 o.add(buildDnsKeySpec()); |
| 336 o.add(buildDnsKeySpec()); | 336 o.add(buildDnsKeySpec()); |
| 337 return o; | 337 return o; |
| 338 } | 338 } |
| 339 | 339 |
| 340 checkUnnamed3844(core.List<api.DnsKeySpec> o) { | 340 checkUnnamed3318(core.List<api.DnsKeySpec> o) { |
| 341 unittest.expect(o, unittest.hasLength(2)); | 341 unittest.expect(o, unittest.hasLength(2)); |
| 342 checkDnsKeySpec(o[0]); | 342 checkDnsKeySpec(o[0]); |
| 343 checkDnsKeySpec(o[1]); | 343 checkDnsKeySpec(o[1]); |
| 344 } | 344 } |
| 345 | 345 |
| 346 core.int buildCounterManagedZoneDnsSecConfig = 0; | 346 core.int buildCounterManagedZoneDnsSecConfig = 0; |
| 347 buildManagedZoneDnsSecConfig() { | 347 buildManagedZoneDnsSecConfig() { |
| 348 var o = new api.ManagedZoneDnsSecConfig(); | 348 var o = new api.ManagedZoneDnsSecConfig(); |
| 349 buildCounterManagedZoneDnsSecConfig++; | 349 buildCounterManagedZoneDnsSecConfig++; |
| 350 if (buildCounterManagedZoneDnsSecConfig < 3) { | 350 if (buildCounterManagedZoneDnsSecConfig < 3) { |
| 351 o.defaultKeySpecs = buildUnnamed3844(); | 351 o.defaultKeySpecs = buildUnnamed3318(); |
| 352 o.kind = "foo"; | 352 o.kind = "foo"; |
| 353 o.nonExistence = "foo"; | 353 o.nonExistence = "foo"; |
| 354 o.state = "foo"; | 354 o.state = "foo"; |
| 355 } | 355 } |
| 356 buildCounterManagedZoneDnsSecConfig--; | 356 buildCounterManagedZoneDnsSecConfig--; |
| 357 return o; | 357 return o; |
| 358 } | 358 } |
| 359 | 359 |
| 360 checkManagedZoneDnsSecConfig(api.ManagedZoneDnsSecConfig o) { | 360 checkManagedZoneDnsSecConfig(api.ManagedZoneDnsSecConfig o) { |
| 361 buildCounterManagedZoneDnsSecConfig++; | 361 buildCounterManagedZoneDnsSecConfig++; |
| 362 if (buildCounterManagedZoneDnsSecConfig < 3) { | 362 if (buildCounterManagedZoneDnsSecConfig < 3) { |
| 363 checkUnnamed3844(o.defaultKeySpecs); | 363 checkUnnamed3318(o.defaultKeySpecs); |
| 364 unittest.expect(o.kind, unittest.equals('foo')); | 364 unittest.expect(o.kind, unittest.equals('foo')); |
| 365 unittest.expect(o.nonExistence, unittest.equals('foo')); | 365 unittest.expect(o.nonExistence, unittest.equals('foo')); |
| 366 unittest.expect(o.state, unittest.equals('foo')); | 366 unittest.expect(o.state, unittest.equals('foo')); |
| 367 } | 367 } |
| 368 buildCounterManagedZoneDnsSecConfig--; | 368 buildCounterManagedZoneDnsSecConfig--; |
| 369 } | 369 } |
| 370 | 370 |
| 371 buildUnnamed3845() { | 371 buildUnnamed3319() { |
| 372 var o = new core.List<api.Operation>(); | 372 var o = new core.List<api.Operation>(); |
| 373 o.add(buildOperation()); | 373 o.add(buildOperation()); |
| 374 o.add(buildOperation()); | 374 o.add(buildOperation()); |
| 375 return o; | 375 return o; |
| 376 } | 376 } |
| 377 | 377 |
| 378 checkUnnamed3845(core.List<api.Operation> o) { | 378 checkUnnamed3319(core.List<api.Operation> o) { |
| 379 unittest.expect(o, unittest.hasLength(2)); | 379 unittest.expect(o, unittest.hasLength(2)); |
| 380 checkOperation(o[0]); | 380 checkOperation(o[0]); |
| 381 checkOperation(o[1]); | 381 checkOperation(o[1]); |
| 382 } | 382 } |
| 383 | 383 |
| 384 core.int buildCounterManagedZoneOperationsListResponse = 0; | 384 core.int buildCounterManagedZoneOperationsListResponse = 0; |
| 385 buildManagedZoneOperationsListResponse() { | 385 buildManagedZoneOperationsListResponse() { |
| 386 var o = new api.ManagedZoneOperationsListResponse(); | 386 var o = new api.ManagedZoneOperationsListResponse(); |
| 387 buildCounterManagedZoneOperationsListResponse++; | 387 buildCounterManagedZoneOperationsListResponse++; |
| 388 if (buildCounterManagedZoneOperationsListResponse < 3) { | 388 if (buildCounterManagedZoneOperationsListResponse < 3) { |
| 389 o.header = buildResponseHeader(); | 389 o.header = buildResponseHeader(); |
| 390 o.kind = "foo"; | 390 o.kind = "foo"; |
| 391 o.nextPageToken = "foo"; | 391 o.nextPageToken = "foo"; |
| 392 o.operations = buildUnnamed3845(); | 392 o.operations = buildUnnamed3319(); |
| 393 } | 393 } |
| 394 buildCounterManagedZoneOperationsListResponse--; | 394 buildCounterManagedZoneOperationsListResponse--; |
| 395 return o; | 395 return o; |
| 396 } | 396 } |
| 397 | 397 |
| 398 checkManagedZoneOperationsListResponse(api.ManagedZoneOperationsListResponse o)
{ | 398 checkManagedZoneOperationsListResponse(api.ManagedZoneOperationsListResponse o)
{ |
| 399 buildCounterManagedZoneOperationsListResponse++; | 399 buildCounterManagedZoneOperationsListResponse++; |
| 400 if (buildCounterManagedZoneOperationsListResponse < 3) { | 400 if (buildCounterManagedZoneOperationsListResponse < 3) { |
| 401 checkResponseHeader(o.header); | 401 checkResponseHeader(o.header); |
| 402 unittest.expect(o.kind, unittest.equals('foo')); | 402 unittest.expect(o.kind, unittest.equals('foo')); |
| 403 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 403 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 404 checkUnnamed3845(o.operations); | 404 checkUnnamed3319(o.operations); |
| 405 } | 405 } |
| 406 buildCounterManagedZoneOperationsListResponse--; | 406 buildCounterManagedZoneOperationsListResponse--; |
| 407 } | 407 } |
| 408 | 408 |
| 409 core.int buildCounterManagedZonesDeleteResponse = 0; | 409 core.int buildCounterManagedZonesDeleteResponse = 0; |
| 410 buildManagedZonesDeleteResponse() { | 410 buildManagedZonesDeleteResponse() { |
| 411 var o = new api.ManagedZonesDeleteResponse(); | 411 var o = new api.ManagedZonesDeleteResponse(); |
| 412 buildCounterManagedZonesDeleteResponse++; | 412 buildCounterManagedZonesDeleteResponse++; |
| 413 if (buildCounterManagedZonesDeleteResponse < 3) { | 413 if (buildCounterManagedZonesDeleteResponse < 3) { |
| 414 o.header = buildResponseHeader(); | 414 o.header = buildResponseHeader(); |
| 415 } | 415 } |
| 416 buildCounterManagedZonesDeleteResponse--; | 416 buildCounterManagedZonesDeleteResponse--; |
| 417 return o; | 417 return o; |
| 418 } | 418 } |
| 419 | 419 |
| 420 checkManagedZonesDeleteResponse(api.ManagedZonesDeleteResponse o) { | 420 checkManagedZonesDeleteResponse(api.ManagedZonesDeleteResponse o) { |
| 421 buildCounterManagedZonesDeleteResponse++; | 421 buildCounterManagedZonesDeleteResponse++; |
| 422 if (buildCounterManagedZonesDeleteResponse < 3) { | 422 if (buildCounterManagedZonesDeleteResponse < 3) { |
| 423 checkResponseHeader(o.header); | 423 checkResponseHeader(o.header); |
| 424 } | 424 } |
| 425 buildCounterManagedZonesDeleteResponse--; | 425 buildCounterManagedZonesDeleteResponse--; |
| 426 } | 426 } |
| 427 | 427 |
| 428 buildUnnamed3846() { | 428 buildUnnamed3320() { |
| 429 var o = new core.List<api.ManagedZone>(); | 429 var o = new core.List<api.ManagedZone>(); |
| 430 o.add(buildManagedZone()); | 430 o.add(buildManagedZone()); |
| 431 o.add(buildManagedZone()); | 431 o.add(buildManagedZone()); |
| 432 return o; | 432 return o; |
| 433 } | 433 } |
| 434 | 434 |
| 435 checkUnnamed3846(core.List<api.ManagedZone> o) { | 435 checkUnnamed3320(core.List<api.ManagedZone> o) { |
| 436 unittest.expect(o, unittest.hasLength(2)); | 436 unittest.expect(o, unittest.hasLength(2)); |
| 437 checkManagedZone(o[0]); | 437 checkManagedZone(o[0]); |
| 438 checkManagedZone(o[1]); | 438 checkManagedZone(o[1]); |
| 439 } | 439 } |
| 440 | 440 |
| 441 core.int buildCounterManagedZonesListResponse = 0; | 441 core.int buildCounterManagedZonesListResponse = 0; |
| 442 buildManagedZonesListResponse() { | 442 buildManagedZonesListResponse() { |
| 443 var o = new api.ManagedZonesListResponse(); | 443 var o = new api.ManagedZonesListResponse(); |
| 444 buildCounterManagedZonesListResponse++; | 444 buildCounterManagedZonesListResponse++; |
| 445 if (buildCounterManagedZonesListResponse < 3) { | 445 if (buildCounterManagedZonesListResponse < 3) { |
| 446 o.header = buildResponseHeader(); | 446 o.header = buildResponseHeader(); |
| 447 o.kind = "foo"; | 447 o.kind = "foo"; |
| 448 o.managedZones = buildUnnamed3846(); | 448 o.managedZones = buildUnnamed3320(); |
| 449 o.nextPageToken = "foo"; | 449 o.nextPageToken = "foo"; |
| 450 } | 450 } |
| 451 buildCounterManagedZonesListResponse--; | 451 buildCounterManagedZonesListResponse--; |
| 452 return o; | 452 return o; |
| 453 } | 453 } |
| 454 | 454 |
| 455 checkManagedZonesListResponse(api.ManagedZonesListResponse o) { | 455 checkManagedZonesListResponse(api.ManagedZonesListResponse o) { |
| 456 buildCounterManagedZonesListResponse++; | 456 buildCounterManagedZonesListResponse++; |
| 457 if (buildCounterManagedZonesListResponse < 3) { | 457 if (buildCounterManagedZonesListResponse < 3) { |
| 458 checkResponseHeader(o.header); | 458 checkResponseHeader(o.header); |
| 459 unittest.expect(o.kind, unittest.equals('foo')); | 459 unittest.expect(o.kind, unittest.equals('foo')); |
| 460 checkUnnamed3846(o.managedZones); | 460 checkUnnamed3320(o.managedZones); |
| 461 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 461 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 462 } | 462 } |
| 463 buildCounterManagedZonesListResponse--; | 463 buildCounterManagedZonesListResponse--; |
| 464 } | 464 } |
| 465 | 465 |
| 466 core.int buildCounterOperation = 0; | 466 core.int buildCounterOperation = 0; |
| 467 buildOperation() { | 467 buildOperation() { |
| 468 var o = new api.Operation(); | 468 var o = new api.Operation(); |
| 469 buildCounterOperation++; | 469 buildCounterOperation++; |
| 470 if (buildCounterOperation < 3) { | 470 if (buildCounterOperation < 3) { |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 556 buildCounterProject++; | 556 buildCounterProject++; |
| 557 if (buildCounterProject < 3) { | 557 if (buildCounterProject < 3) { |
| 558 unittest.expect(o.id, unittest.equals('foo')); | 558 unittest.expect(o.id, unittest.equals('foo')); |
| 559 unittest.expect(o.kind, unittest.equals('foo')); | 559 unittest.expect(o.kind, unittest.equals('foo')); |
| 560 unittest.expect(o.number, unittest.equals('foo')); | 560 unittest.expect(o.number, unittest.equals('foo')); |
| 561 checkQuota(o.quota); | 561 checkQuota(o.quota); |
| 562 } | 562 } |
| 563 buildCounterProject--; | 563 buildCounterProject--; |
| 564 } | 564 } |
| 565 | 565 |
| 566 buildUnnamed3847() { | 566 buildUnnamed3321() { |
| 567 var o = new core.List<api.DnsKeySpec>(); | 567 var o = new core.List<api.DnsKeySpec>(); |
| 568 o.add(buildDnsKeySpec()); | 568 o.add(buildDnsKeySpec()); |
| 569 o.add(buildDnsKeySpec()); | 569 o.add(buildDnsKeySpec()); |
| 570 return o; | 570 return o; |
| 571 } | 571 } |
| 572 | 572 |
| 573 checkUnnamed3847(core.List<api.DnsKeySpec> o) { | 573 checkUnnamed3321(core.List<api.DnsKeySpec> o) { |
| 574 unittest.expect(o, unittest.hasLength(2)); | 574 unittest.expect(o, unittest.hasLength(2)); |
| 575 checkDnsKeySpec(o[0]); | 575 checkDnsKeySpec(o[0]); |
| 576 checkDnsKeySpec(o[1]); | 576 checkDnsKeySpec(o[1]); |
| 577 } | 577 } |
| 578 | 578 |
| 579 core.int buildCounterQuota = 0; | 579 core.int buildCounterQuota = 0; |
| 580 buildQuota() { | 580 buildQuota() { |
| 581 var o = new api.Quota(); | 581 var o = new api.Quota(); |
| 582 buildCounterQuota++; | 582 buildCounterQuota++; |
| 583 if (buildCounterQuota < 3) { | 583 if (buildCounterQuota < 3) { |
| 584 o.dnsKeysPerManagedZone = 42; | 584 o.dnsKeysPerManagedZone = 42; |
| 585 o.kind = "foo"; | 585 o.kind = "foo"; |
| 586 o.managedZones = 42; | 586 o.managedZones = 42; |
| 587 o.resourceRecordsPerRrset = 42; | 587 o.resourceRecordsPerRrset = 42; |
| 588 o.rrsetAdditionsPerChange = 42; | 588 o.rrsetAdditionsPerChange = 42; |
| 589 o.rrsetDeletionsPerChange = 42; | 589 o.rrsetDeletionsPerChange = 42; |
| 590 o.rrsetsPerManagedZone = 42; | 590 o.rrsetsPerManagedZone = 42; |
| 591 o.totalRrdataSizePerChange = 42; | 591 o.totalRrdataSizePerChange = 42; |
| 592 o.whitelistedKeySpecs = buildUnnamed3847(); | 592 o.whitelistedKeySpecs = buildUnnamed3321(); |
| 593 } | 593 } |
| 594 buildCounterQuota--; | 594 buildCounterQuota--; |
| 595 return o; | 595 return o; |
| 596 } | 596 } |
| 597 | 597 |
| 598 checkQuota(api.Quota o) { | 598 checkQuota(api.Quota o) { |
| 599 buildCounterQuota++; | 599 buildCounterQuota++; |
| 600 if (buildCounterQuota < 3) { | 600 if (buildCounterQuota < 3) { |
| 601 unittest.expect(o.dnsKeysPerManagedZone, unittest.equals(42)); | 601 unittest.expect(o.dnsKeysPerManagedZone, unittest.equals(42)); |
| 602 unittest.expect(o.kind, unittest.equals('foo')); | 602 unittest.expect(o.kind, unittest.equals('foo')); |
| 603 unittest.expect(o.managedZones, unittest.equals(42)); | 603 unittest.expect(o.managedZones, unittest.equals(42)); |
| 604 unittest.expect(o.resourceRecordsPerRrset, unittest.equals(42)); | 604 unittest.expect(o.resourceRecordsPerRrset, unittest.equals(42)); |
| 605 unittest.expect(o.rrsetAdditionsPerChange, unittest.equals(42)); | 605 unittest.expect(o.rrsetAdditionsPerChange, unittest.equals(42)); |
| 606 unittest.expect(o.rrsetDeletionsPerChange, unittest.equals(42)); | 606 unittest.expect(o.rrsetDeletionsPerChange, unittest.equals(42)); |
| 607 unittest.expect(o.rrsetsPerManagedZone, unittest.equals(42)); | 607 unittest.expect(o.rrsetsPerManagedZone, unittest.equals(42)); |
| 608 unittest.expect(o.totalRrdataSizePerChange, unittest.equals(42)); | 608 unittest.expect(o.totalRrdataSizePerChange, unittest.equals(42)); |
| 609 checkUnnamed3847(o.whitelistedKeySpecs); | 609 checkUnnamed3321(o.whitelistedKeySpecs); |
| 610 } | 610 } |
| 611 buildCounterQuota--; | 611 buildCounterQuota--; |
| 612 } | 612 } |
| 613 | 613 |
| 614 buildUnnamed3848() { | 614 buildUnnamed3322() { |
| 615 var o = new core.List<core.String>(); | 615 var o = new core.List<core.String>(); |
| 616 o.add("foo"); | 616 o.add("foo"); |
| 617 o.add("foo"); | 617 o.add("foo"); |
| 618 return o; | 618 return o; |
| 619 } | 619 } |
| 620 | 620 |
| 621 checkUnnamed3848(core.List<core.String> o) { | 621 checkUnnamed3322(core.List<core.String> o) { |
| 622 unittest.expect(o, unittest.hasLength(2)); | 622 unittest.expect(o, unittest.hasLength(2)); |
| 623 unittest.expect(o[0], unittest.equals('foo')); | 623 unittest.expect(o[0], unittest.equals('foo')); |
| 624 unittest.expect(o[1], unittest.equals('foo')); | 624 unittest.expect(o[1], unittest.equals('foo')); |
| 625 } | 625 } |
| 626 | 626 |
| 627 buildUnnamed3849() { | 627 buildUnnamed3323() { |
| 628 var o = new core.List<core.String>(); | 628 var o = new core.List<core.String>(); |
| 629 o.add("foo"); | 629 o.add("foo"); |
| 630 o.add("foo"); | 630 o.add("foo"); |
| 631 return o; | 631 return o; |
| 632 } | 632 } |
| 633 | 633 |
| 634 checkUnnamed3849(core.List<core.String> o) { | 634 checkUnnamed3323(core.List<core.String> o) { |
| 635 unittest.expect(o, unittest.hasLength(2)); | 635 unittest.expect(o, unittest.hasLength(2)); |
| 636 unittest.expect(o[0], unittest.equals('foo')); | 636 unittest.expect(o[0], unittest.equals('foo')); |
| 637 unittest.expect(o[1], unittest.equals('foo')); | 637 unittest.expect(o[1], unittest.equals('foo')); |
| 638 } | 638 } |
| 639 | 639 |
| 640 core.int buildCounterResourceRecordSet = 0; | 640 core.int buildCounterResourceRecordSet = 0; |
| 641 buildResourceRecordSet() { | 641 buildResourceRecordSet() { |
| 642 var o = new api.ResourceRecordSet(); | 642 var o = new api.ResourceRecordSet(); |
| 643 buildCounterResourceRecordSet++; | 643 buildCounterResourceRecordSet++; |
| 644 if (buildCounterResourceRecordSet < 3) { | 644 if (buildCounterResourceRecordSet < 3) { |
| 645 o.kind = "foo"; | 645 o.kind = "foo"; |
| 646 o.name = "foo"; | 646 o.name = "foo"; |
| 647 o.rrdatas = buildUnnamed3848(); | 647 o.rrdatas = buildUnnamed3322(); |
| 648 o.signatureRrdatas = buildUnnamed3849(); | 648 o.signatureRrdatas = buildUnnamed3323(); |
| 649 o.ttl = 42; | 649 o.ttl = 42; |
| 650 o.type = "foo"; | 650 o.type = "foo"; |
| 651 } | 651 } |
| 652 buildCounterResourceRecordSet--; | 652 buildCounterResourceRecordSet--; |
| 653 return o; | 653 return o; |
| 654 } | 654 } |
| 655 | 655 |
| 656 checkResourceRecordSet(api.ResourceRecordSet o) { | 656 checkResourceRecordSet(api.ResourceRecordSet o) { |
| 657 buildCounterResourceRecordSet++; | 657 buildCounterResourceRecordSet++; |
| 658 if (buildCounterResourceRecordSet < 3) { | 658 if (buildCounterResourceRecordSet < 3) { |
| 659 unittest.expect(o.kind, unittest.equals('foo')); | 659 unittest.expect(o.kind, unittest.equals('foo')); |
| 660 unittest.expect(o.name, unittest.equals('foo')); | 660 unittest.expect(o.name, unittest.equals('foo')); |
| 661 checkUnnamed3848(o.rrdatas); | 661 checkUnnamed3322(o.rrdatas); |
| 662 checkUnnamed3849(o.signatureRrdatas); | 662 checkUnnamed3323(o.signatureRrdatas); |
| 663 unittest.expect(o.ttl, unittest.equals(42)); | 663 unittest.expect(o.ttl, unittest.equals(42)); |
| 664 unittest.expect(o.type, unittest.equals('foo')); | 664 unittest.expect(o.type, unittest.equals('foo')); |
| 665 } | 665 } |
| 666 buildCounterResourceRecordSet--; | 666 buildCounterResourceRecordSet--; |
| 667 } | 667 } |
| 668 | 668 |
| 669 buildUnnamed3850() { | 669 buildUnnamed3324() { |
| 670 var o = new core.List<api.ResourceRecordSet>(); | 670 var o = new core.List<api.ResourceRecordSet>(); |
| 671 o.add(buildResourceRecordSet()); | 671 o.add(buildResourceRecordSet()); |
| 672 o.add(buildResourceRecordSet()); | 672 o.add(buildResourceRecordSet()); |
| 673 return o; | 673 return o; |
| 674 } | 674 } |
| 675 | 675 |
| 676 checkUnnamed3850(core.List<api.ResourceRecordSet> o) { | 676 checkUnnamed3324(core.List<api.ResourceRecordSet> o) { |
| 677 unittest.expect(o, unittest.hasLength(2)); | 677 unittest.expect(o, unittest.hasLength(2)); |
| 678 checkResourceRecordSet(o[0]); | 678 checkResourceRecordSet(o[0]); |
| 679 checkResourceRecordSet(o[1]); | 679 checkResourceRecordSet(o[1]); |
| 680 } | 680 } |
| 681 | 681 |
| 682 core.int buildCounterResourceRecordSetsListResponse = 0; | 682 core.int buildCounterResourceRecordSetsListResponse = 0; |
| 683 buildResourceRecordSetsListResponse() { | 683 buildResourceRecordSetsListResponse() { |
| 684 var o = new api.ResourceRecordSetsListResponse(); | 684 var o = new api.ResourceRecordSetsListResponse(); |
| 685 buildCounterResourceRecordSetsListResponse++; | 685 buildCounterResourceRecordSetsListResponse++; |
| 686 if (buildCounterResourceRecordSetsListResponse < 3) { | 686 if (buildCounterResourceRecordSetsListResponse < 3) { |
| 687 o.header = buildResponseHeader(); | 687 o.header = buildResponseHeader(); |
| 688 o.kind = "foo"; | 688 o.kind = "foo"; |
| 689 o.nextPageToken = "foo"; | 689 o.nextPageToken = "foo"; |
| 690 o.rrsets = buildUnnamed3850(); | 690 o.rrsets = buildUnnamed3324(); |
| 691 } | 691 } |
| 692 buildCounterResourceRecordSetsListResponse--; | 692 buildCounterResourceRecordSetsListResponse--; |
| 693 return o; | 693 return o; |
| 694 } | 694 } |
| 695 | 695 |
| 696 checkResourceRecordSetsListResponse(api.ResourceRecordSetsListResponse o) { | 696 checkResourceRecordSetsListResponse(api.ResourceRecordSetsListResponse o) { |
| 697 buildCounterResourceRecordSetsListResponse++; | 697 buildCounterResourceRecordSetsListResponse++; |
| 698 if (buildCounterResourceRecordSetsListResponse < 3) { | 698 if (buildCounterResourceRecordSetsListResponse < 3) { |
| 699 checkResponseHeader(o.header); | 699 checkResponseHeader(o.header); |
| 700 unittest.expect(o.kind, unittest.equals('foo')); | 700 unittest.expect(o.kind, unittest.equals('foo')); |
| 701 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 701 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 702 checkUnnamed3850(o.rrsets); | 702 checkUnnamed3324(o.rrsets); |
| 703 } | 703 } |
| 704 buildCounterResourceRecordSetsListResponse--; | 704 buildCounterResourceRecordSetsListResponse--; |
| 705 } | 705 } |
| 706 | 706 |
| 707 core.int buildCounterResponseHeader = 0; | 707 core.int buildCounterResponseHeader = 0; |
| 708 buildResponseHeader() { | 708 buildResponseHeader() { |
| 709 var o = new api.ResponseHeader(); | 709 var o = new api.ResponseHeader(); |
| 710 buildCounterResponseHeader++; | 710 buildCounterResponseHeader++; |
| 711 if (buildCounterResponseHeader < 3) { | 711 if (buildCounterResponseHeader < 3) { |
| 712 o.operationId = "foo"; | 712 o.operationId = "foo"; |
| (...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 898 | 898 |
| 899 unittest.group("resource-ChangesResourceApi", () { | 899 unittest.group("resource-ChangesResourceApi", () { |
| 900 unittest.test("method--create", () { | 900 unittest.test("method--create", () { |
| 901 | 901 |
| 902 var mock = new HttpServerMock(); | 902 var mock = new HttpServerMock(); |
| 903 api.ChangesResourceApi res = new api.DnsApi(mock).changes; | 903 api.ChangesResourceApi res = new api.DnsApi(mock).changes; |
| 904 var arg_request = buildChange(); | 904 var arg_request = buildChange(); |
| 905 var arg_project = "foo"; | 905 var arg_project = "foo"; |
| 906 var arg_managedZone = "foo"; | 906 var arg_managedZone = "foo"; |
| 907 var arg_clientOperationId = "foo"; | 907 var arg_clientOperationId = "foo"; |
| 908 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 908 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 909 var obj = new api.Change.fromJson(json); | 909 var obj = new api.Change.fromJson(json); |
| 910 checkChange(obj); | 910 checkChange(obj); |
| 911 | 911 |
| 912 var path = (req.url).path; | 912 var path = (req.url).path; |
| 913 var pathOffset = 0; | 913 var pathOffset = 0; |
| 914 var index; | 914 var index; |
| 915 var subPart; | 915 var subPart; |
| 916 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 916 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 917 pathOffset += 1; | 917 pathOffset += 1; |
| 918 | 918 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 934 } | 934 } |
| 935 unittest.expect(queryMap["clientOperationId"].first, unittest.equals(arg
_clientOperationId)); | 935 unittest.expect(queryMap["clientOperationId"].first, unittest.equals(arg
_clientOperationId)); |
| 936 | 936 |
| 937 | 937 |
| 938 var h = { | 938 var h = { |
| 939 "content-type" : "application/json; charset=utf-8", | 939 "content-type" : "application/json; charset=utf-8", |
| 940 }; | 940 }; |
| 941 var resp = convert.JSON.encode(buildChange()); | 941 var resp = convert.JSON.encode(buildChange()); |
| 942 return new async.Future.value(stringResponse(200, h, resp)); | 942 return new async.Future.value(stringResponse(200, h, resp)); |
| 943 }), true); | 943 }), true); |
| 944 res.create(arg_request, arg_project, arg_managedZone, clientOperationId: a
rg_clientOperationId).then(unittest.expectAsync(((api.Change response) { | 944 res.create(arg_request, arg_project, arg_managedZone, clientOperationId: a
rg_clientOperationId).then(unittest.expectAsync1(((api.Change response) { |
| 945 checkChange(response); | 945 checkChange(response); |
| 946 }))); | 946 }))); |
| 947 }); | 947 }); |
| 948 | 948 |
| 949 unittest.test("method--get", () { | 949 unittest.test("method--get", () { |
| 950 | 950 |
| 951 var mock = new HttpServerMock(); | 951 var mock = new HttpServerMock(); |
| 952 api.ChangesResourceApi res = new api.DnsApi(mock).changes; | 952 api.ChangesResourceApi res = new api.DnsApi(mock).changes; |
| 953 var arg_project = "foo"; | 953 var arg_project = "foo"; |
| 954 var arg_managedZone = "foo"; | 954 var arg_managedZone = "foo"; |
| 955 var arg_changeId = "foo"; | 955 var arg_changeId = "foo"; |
| 956 var arg_clientOperationId = "foo"; | 956 var arg_clientOperationId = "foo"; |
| 957 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 957 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 958 var path = (req.url).path; | 958 var path = (req.url).path; |
| 959 var pathOffset = 0; | 959 var pathOffset = 0; |
| 960 var index; | 960 var index; |
| 961 var subPart; | 961 var subPart; |
| 962 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 962 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 963 pathOffset += 1; | 963 pathOffset += 1; |
| 964 | 964 |
| 965 var query = (req.url).query; | 965 var query = (req.url).query; |
| 966 var queryOffset = 0; | 966 var queryOffset = 0; |
| 967 var queryMap = {}; | 967 var queryMap = {}; |
| (...skipping 12 matching lines...) Expand all Loading... |
| 980 } | 980 } |
| 981 unittest.expect(queryMap["clientOperationId"].first, unittest.equals(arg
_clientOperationId)); | 981 unittest.expect(queryMap["clientOperationId"].first, unittest.equals(arg
_clientOperationId)); |
| 982 | 982 |
| 983 | 983 |
| 984 var h = { | 984 var h = { |
| 985 "content-type" : "application/json; charset=utf-8", | 985 "content-type" : "application/json; charset=utf-8", |
| 986 }; | 986 }; |
| 987 var resp = convert.JSON.encode(buildChange()); | 987 var resp = convert.JSON.encode(buildChange()); |
| 988 return new async.Future.value(stringResponse(200, h, resp)); | 988 return new async.Future.value(stringResponse(200, h, resp)); |
| 989 }), true); | 989 }), true); |
| 990 res.get(arg_project, arg_managedZone, arg_changeId, clientOperationId: arg
_clientOperationId).then(unittest.expectAsync(((api.Change response) { | 990 res.get(arg_project, arg_managedZone, arg_changeId, clientOperationId: arg
_clientOperationId).then(unittest.expectAsync1(((api.Change response) { |
| 991 checkChange(response); | 991 checkChange(response); |
| 992 }))); | 992 }))); |
| 993 }); | 993 }); |
| 994 | 994 |
| 995 unittest.test("method--list", () { | 995 unittest.test("method--list", () { |
| 996 | 996 |
| 997 var mock = new HttpServerMock(); | 997 var mock = new HttpServerMock(); |
| 998 api.ChangesResourceApi res = new api.DnsApi(mock).changes; | 998 api.ChangesResourceApi res = new api.DnsApi(mock).changes; |
| 999 var arg_project = "foo"; | 999 var arg_project = "foo"; |
| 1000 var arg_managedZone = "foo"; | 1000 var arg_managedZone = "foo"; |
| 1001 var arg_maxResults = 42; | 1001 var arg_maxResults = 42; |
| 1002 var arg_pageToken = "foo"; | 1002 var arg_pageToken = "foo"; |
| 1003 var arg_sortBy = "foo"; | 1003 var arg_sortBy = "foo"; |
| 1004 var arg_sortOrder = "foo"; | 1004 var arg_sortOrder = "foo"; |
| 1005 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1005 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 1006 var path = (req.url).path; | 1006 var path = (req.url).path; |
| 1007 var pathOffset = 0; | 1007 var pathOffset = 0; |
| 1008 var index; | 1008 var index; |
| 1009 var subPart; | 1009 var subPart; |
| 1010 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 1010 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 1011 pathOffset += 1; | 1011 pathOffset += 1; |
| 1012 | 1012 |
| 1013 var query = (req.url).query; | 1013 var query = (req.url).query; |
| 1014 var queryOffset = 0; | 1014 var queryOffset = 0; |
| 1015 var queryMap = {}; | 1015 var queryMap = {}; |
| (...skipping 15 matching lines...) Expand all Loading... |
| 1031 unittest.expect(queryMap["sortBy"].first, unittest.equals(arg_sortBy)); | 1031 unittest.expect(queryMap["sortBy"].first, unittest.equals(arg_sortBy)); |
| 1032 unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrd
er)); | 1032 unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrd
er)); |
| 1033 | 1033 |
| 1034 | 1034 |
| 1035 var h = { | 1035 var h = { |
| 1036 "content-type" : "application/json; charset=utf-8", | 1036 "content-type" : "application/json; charset=utf-8", |
| 1037 }; | 1037 }; |
| 1038 var resp = convert.JSON.encode(buildChangesListResponse()); | 1038 var resp = convert.JSON.encode(buildChangesListResponse()); |
| 1039 return new async.Future.value(stringResponse(200, h, resp)); | 1039 return new async.Future.value(stringResponse(200, h, resp)); |
| 1040 }), true); | 1040 }), true); |
| 1041 res.list(arg_project, arg_managedZone, maxResults: arg_maxResults, pageTok
en: arg_pageToken, sortBy: arg_sortBy, sortOrder: arg_sortOrder).then(unittest.e
xpectAsync(((api.ChangesListResponse response) { | 1041 res.list(arg_project, arg_managedZone, maxResults: arg_maxResults, pageTok
en: arg_pageToken, sortBy: arg_sortBy, sortOrder: arg_sortOrder).then(unittest.e
xpectAsync1(((api.ChangesListResponse response) { |
| 1042 checkChangesListResponse(response); | 1042 checkChangesListResponse(response); |
| 1043 }))); | 1043 }))); |
| 1044 }); | 1044 }); |
| 1045 | 1045 |
| 1046 }); | 1046 }); |
| 1047 | 1047 |
| 1048 | 1048 |
| 1049 unittest.group("resource-DnsKeysResourceApi", () { | 1049 unittest.group("resource-DnsKeysResourceApi", () { |
| 1050 unittest.test("method--get", () { | 1050 unittest.test("method--get", () { |
| 1051 | 1051 |
| 1052 var mock = new HttpServerMock(); | 1052 var mock = new HttpServerMock(); |
| 1053 api.DnsKeysResourceApi res = new api.DnsApi(mock).dnsKeys; | 1053 api.DnsKeysResourceApi res = new api.DnsApi(mock).dnsKeys; |
| 1054 var arg_project = "foo"; | 1054 var arg_project = "foo"; |
| 1055 var arg_managedZone = "foo"; | 1055 var arg_managedZone = "foo"; |
| 1056 var arg_dnsKeyId = "foo"; | 1056 var arg_dnsKeyId = "foo"; |
| 1057 var arg_clientOperationId = "foo"; | 1057 var arg_clientOperationId = "foo"; |
| 1058 var arg_digestType = "foo"; | 1058 var arg_digestType = "foo"; |
| 1059 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1059 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 1060 var path = (req.url).path; | 1060 var path = (req.url).path; |
| 1061 var pathOffset = 0; | 1061 var pathOffset = 0; |
| 1062 var index; | 1062 var index; |
| 1063 var subPart; | 1063 var subPart; |
| 1064 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 1064 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 1065 pathOffset += 1; | 1065 pathOffset += 1; |
| 1066 | 1066 |
| 1067 var query = (req.url).query; | 1067 var query = (req.url).query; |
| 1068 var queryOffset = 0; | 1068 var queryOffset = 0; |
| 1069 var queryMap = {}; | 1069 var queryMap = {}; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 1083 unittest.expect(queryMap["clientOperationId"].first, unittest.equals(arg
_clientOperationId)); | 1083 unittest.expect(queryMap["clientOperationId"].first, unittest.equals(arg
_clientOperationId)); |
| 1084 unittest.expect(queryMap["digestType"].first, unittest.equals(arg_digest
Type)); | 1084 unittest.expect(queryMap["digestType"].first, unittest.equals(arg_digest
Type)); |
| 1085 | 1085 |
| 1086 | 1086 |
| 1087 var h = { | 1087 var h = { |
| 1088 "content-type" : "application/json; charset=utf-8", | 1088 "content-type" : "application/json; charset=utf-8", |
| 1089 }; | 1089 }; |
| 1090 var resp = convert.JSON.encode(buildDnsKey()); | 1090 var resp = convert.JSON.encode(buildDnsKey()); |
| 1091 return new async.Future.value(stringResponse(200, h, resp)); | 1091 return new async.Future.value(stringResponse(200, h, resp)); |
| 1092 }), true); | 1092 }), true); |
| 1093 res.get(arg_project, arg_managedZone, arg_dnsKeyId, clientOperationId: arg
_clientOperationId, digestType: arg_digestType).then(unittest.expectAsync(((api.
DnsKey response) { | 1093 res.get(arg_project, arg_managedZone, arg_dnsKeyId, clientOperationId: arg
_clientOperationId, digestType: arg_digestType).then(unittest.expectAsync1(((api
.DnsKey response) { |
| 1094 checkDnsKey(response); | 1094 checkDnsKey(response); |
| 1095 }))); | 1095 }))); |
| 1096 }); | 1096 }); |
| 1097 | 1097 |
| 1098 unittest.test("method--list", () { | 1098 unittest.test("method--list", () { |
| 1099 | 1099 |
| 1100 var mock = new HttpServerMock(); | 1100 var mock = new HttpServerMock(); |
| 1101 api.DnsKeysResourceApi res = new api.DnsApi(mock).dnsKeys; | 1101 api.DnsKeysResourceApi res = new api.DnsApi(mock).dnsKeys; |
| 1102 var arg_project = "foo"; | 1102 var arg_project = "foo"; |
| 1103 var arg_managedZone = "foo"; | 1103 var arg_managedZone = "foo"; |
| 1104 var arg_digestType = "foo"; | 1104 var arg_digestType = "foo"; |
| 1105 var arg_maxResults = 42; | 1105 var arg_maxResults = 42; |
| 1106 var arg_pageToken = "foo"; | 1106 var arg_pageToken = "foo"; |
| 1107 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1107 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 1108 var path = (req.url).path; | 1108 var path = (req.url).path; |
| 1109 var pathOffset = 0; | 1109 var pathOffset = 0; |
| 1110 var index; | 1110 var index; |
| 1111 var subPart; | 1111 var subPart; |
| 1112 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 1112 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 1113 pathOffset += 1; | 1113 pathOffset += 1; |
| 1114 | 1114 |
| 1115 var query = (req.url).query; | 1115 var query = (req.url).query; |
| 1116 var queryOffset = 0; | 1116 var queryOffset = 0; |
| 1117 var queryMap = {}; | 1117 var queryMap = {}; |
| (...skipping 14 matching lines...) Expand all Loading... |
| 1132 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); | 1132 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
| 1133 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 1133 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 1134 | 1134 |
| 1135 | 1135 |
| 1136 var h = { | 1136 var h = { |
| 1137 "content-type" : "application/json; charset=utf-8", | 1137 "content-type" : "application/json; charset=utf-8", |
| 1138 }; | 1138 }; |
| 1139 var resp = convert.JSON.encode(buildDnsKeysListResponse()); | 1139 var resp = convert.JSON.encode(buildDnsKeysListResponse()); |
| 1140 return new async.Future.value(stringResponse(200, h, resp)); | 1140 return new async.Future.value(stringResponse(200, h, resp)); |
| 1141 }), true); | 1141 }), true); |
| 1142 res.list(arg_project, arg_managedZone, digestType: arg_digestType, maxResu
lts: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.D
nsKeysListResponse response) { | 1142 res.list(arg_project, arg_managedZone, digestType: arg_digestType, maxResu
lts: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.
DnsKeysListResponse response) { |
| 1143 checkDnsKeysListResponse(response); | 1143 checkDnsKeysListResponse(response); |
| 1144 }))); | 1144 }))); |
| 1145 }); | 1145 }); |
| 1146 | 1146 |
| 1147 }); | 1147 }); |
| 1148 | 1148 |
| 1149 | 1149 |
| 1150 unittest.group("resource-ManagedZoneOperationsResourceApi", () { | 1150 unittest.group("resource-ManagedZoneOperationsResourceApi", () { |
| 1151 unittest.test("method--get", () { | 1151 unittest.test("method--get", () { |
| 1152 | 1152 |
| 1153 var mock = new HttpServerMock(); | 1153 var mock = new HttpServerMock(); |
| 1154 api.ManagedZoneOperationsResourceApi res = new api.DnsApi(mock).managedZon
eOperations; | 1154 api.ManagedZoneOperationsResourceApi res = new api.DnsApi(mock).managedZon
eOperations; |
| 1155 var arg_project = "foo"; | 1155 var arg_project = "foo"; |
| 1156 var arg_managedZone = "foo"; | 1156 var arg_managedZone = "foo"; |
| 1157 var arg_operation = "foo"; | 1157 var arg_operation = "foo"; |
| 1158 var arg_clientOperationId = "foo"; | 1158 var arg_clientOperationId = "foo"; |
| 1159 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1159 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 1160 var path = (req.url).path; | 1160 var path = (req.url).path; |
| 1161 var pathOffset = 0; | 1161 var pathOffset = 0; |
| 1162 var index; | 1162 var index; |
| 1163 var subPart; | 1163 var subPart; |
| 1164 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 1164 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 1165 pathOffset += 1; | 1165 pathOffset += 1; |
| 1166 | 1166 |
| 1167 var query = (req.url).query; | 1167 var query = (req.url).query; |
| 1168 var queryOffset = 0; | 1168 var queryOffset = 0; |
| 1169 var queryMap = {}; | 1169 var queryMap = {}; |
| (...skipping 12 matching lines...) Expand all Loading... |
| 1182 } | 1182 } |
| 1183 unittest.expect(queryMap["clientOperationId"].first, unittest.equals(arg
_clientOperationId)); | 1183 unittest.expect(queryMap["clientOperationId"].first, unittest.equals(arg
_clientOperationId)); |
| 1184 | 1184 |
| 1185 | 1185 |
| 1186 var h = { | 1186 var h = { |
| 1187 "content-type" : "application/json; charset=utf-8", | 1187 "content-type" : "application/json; charset=utf-8", |
| 1188 }; | 1188 }; |
| 1189 var resp = convert.JSON.encode(buildOperation()); | 1189 var resp = convert.JSON.encode(buildOperation()); |
| 1190 return new async.Future.value(stringResponse(200, h, resp)); | 1190 return new async.Future.value(stringResponse(200, h, resp)); |
| 1191 }), true); | 1191 }), true); |
| 1192 res.get(arg_project, arg_managedZone, arg_operation, clientOperationId: ar
g_clientOperationId).then(unittest.expectAsync(((api.Operation response) { | 1192 res.get(arg_project, arg_managedZone, arg_operation, clientOperationId: ar
g_clientOperationId).then(unittest.expectAsync1(((api.Operation response) { |
| 1193 checkOperation(response); | 1193 checkOperation(response); |
| 1194 }))); | 1194 }))); |
| 1195 }); | 1195 }); |
| 1196 | 1196 |
| 1197 unittest.test("method--list", () { | 1197 unittest.test("method--list", () { |
| 1198 | 1198 |
| 1199 var mock = new HttpServerMock(); | 1199 var mock = new HttpServerMock(); |
| 1200 api.ManagedZoneOperationsResourceApi res = new api.DnsApi(mock).managedZon
eOperations; | 1200 api.ManagedZoneOperationsResourceApi res = new api.DnsApi(mock).managedZon
eOperations; |
| 1201 var arg_project = "foo"; | 1201 var arg_project = "foo"; |
| 1202 var arg_managedZone = "foo"; | 1202 var arg_managedZone = "foo"; |
| 1203 var arg_maxResults = 42; | 1203 var arg_maxResults = 42; |
| 1204 var arg_pageToken = "foo"; | 1204 var arg_pageToken = "foo"; |
| 1205 var arg_sortBy = "foo"; | 1205 var arg_sortBy = "foo"; |
| 1206 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1206 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 1207 var path = (req.url).path; | 1207 var path = (req.url).path; |
| 1208 var pathOffset = 0; | 1208 var pathOffset = 0; |
| 1209 var index; | 1209 var index; |
| 1210 var subPart; | 1210 var subPart; |
| 1211 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 1211 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 1212 pathOffset += 1; | 1212 pathOffset += 1; |
| 1213 | 1213 |
| 1214 var query = (req.url).query; | 1214 var query = (req.url).query; |
| 1215 var queryOffset = 0; | 1215 var queryOffset = 0; |
| 1216 var queryMap = {}; | 1216 var queryMap = {}; |
| (...skipping 14 matching lines...) Expand all Loading... |
| 1231 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 1231 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 1232 unittest.expect(queryMap["sortBy"].first, unittest.equals(arg_sortBy)); | 1232 unittest.expect(queryMap["sortBy"].first, unittest.equals(arg_sortBy)); |
| 1233 | 1233 |
| 1234 | 1234 |
| 1235 var h = { | 1235 var h = { |
| 1236 "content-type" : "application/json; charset=utf-8", | 1236 "content-type" : "application/json; charset=utf-8", |
| 1237 }; | 1237 }; |
| 1238 var resp = convert.JSON.encode(buildManagedZoneOperationsListResponse())
; | 1238 var resp = convert.JSON.encode(buildManagedZoneOperationsListResponse())
; |
| 1239 return new async.Future.value(stringResponse(200, h, resp)); | 1239 return new async.Future.value(stringResponse(200, h, resp)); |
| 1240 }), true); | 1240 }), true); |
| 1241 res.list(arg_project, arg_managedZone, maxResults: arg_maxResults, pageTok
en: arg_pageToken, sortBy: arg_sortBy).then(unittest.expectAsync(((api.ManagedZo
neOperationsListResponse response) { | 1241 res.list(arg_project, arg_managedZone, maxResults: arg_maxResults, pageTok
en: arg_pageToken, sortBy: arg_sortBy).then(unittest.expectAsync1(((api.ManagedZ
oneOperationsListResponse response) { |
| 1242 checkManagedZoneOperationsListResponse(response); | 1242 checkManagedZoneOperationsListResponse(response); |
| 1243 }))); | 1243 }))); |
| 1244 }); | 1244 }); |
| 1245 | 1245 |
| 1246 }); | 1246 }); |
| 1247 | 1247 |
| 1248 | 1248 |
| 1249 unittest.group("resource-ManagedZonesResourceApi", () { | 1249 unittest.group("resource-ManagedZonesResourceApi", () { |
| 1250 unittest.test("method--create", () { | 1250 unittest.test("method--create", () { |
| 1251 | 1251 |
| 1252 var mock = new HttpServerMock(); | 1252 var mock = new HttpServerMock(); |
| 1253 api.ManagedZonesResourceApi res = new api.DnsApi(mock).managedZones; | 1253 api.ManagedZonesResourceApi res = new api.DnsApi(mock).managedZones; |
| 1254 var arg_request = buildManagedZone(); | 1254 var arg_request = buildManagedZone(); |
| 1255 var arg_project = "foo"; | 1255 var arg_project = "foo"; |
| 1256 var arg_clientOperationId = "foo"; | 1256 var arg_clientOperationId = "foo"; |
| 1257 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1257 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 1258 var obj = new api.ManagedZone.fromJson(json); | 1258 var obj = new api.ManagedZone.fromJson(json); |
| 1259 checkManagedZone(obj); | 1259 checkManagedZone(obj); |
| 1260 | 1260 |
| 1261 var path = (req.url).path; | 1261 var path = (req.url).path; |
| 1262 var pathOffset = 0; | 1262 var pathOffset = 0; |
| 1263 var index; | 1263 var index; |
| 1264 var subPart; | 1264 var subPart; |
| 1265 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 1265 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 1266 pathOffset += 1; | 1266 pathOffset += 1; |
| 1267 | 1267 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 1283 } | 1283 } |
| 1284 unittest.expect(queryMap["clientOperationId"].first, unittest.equals(arg
_clientOperationId)); | 1284 unittest.expect(queryMap["clientOperationId"].first, unittest.equals(arg
_clientOperationId)); |
| 1285 | 1285 |
| 1286 | 1286 |
| 1287 var h = { | 1287 var h = { |
| 1288 "content-type" : "application/json; charset=utf-8", | 1288 "content-type" : "application/json; charset=utf-8", |
| 1289 }; | 1289 }; |
| 1290 var resp = convert.JSON.encode(buildManagedZone()); | 1290 var resp = convert.JSON.encode(buildManagedZone()); |
| 1291 return new async.Future.value(stringResponse(200, h, resp)); | 1291 return new async.Future.value(stringResponse(200, h, resp)); |
| 1292 }), true); | 1292 }), true); |
| 1293 res.create(arg_request, arg_project, clientOperationId: arg_clientOperatio
nId).then(unittest.expectAsync(((api.ManagedZone response) { | 1293 res.create(arg_request, arg_project, clientOperationId: arg_clientOperatio
nId).then(unittest.expectAsync1(((api.ManagedZone response) { |
| 1294 checkManagedZone(response); | 1294 checkManagedZone(response); |
| 1295 }))); | 1295 }))); |
| 1296 }); | 1296 }); |
| 1297 | 1297 |
| 1298 unittest.test("method--delete", () { | 1298 unittest.test("method--delete", () { |
| 1299 | 1299 |
| 1300 var mock = new HttpServerMock(); | 1300 var mock = new HttpServerMock(); |
| 1301 api.ManagedZonesResourceApi res = new api.DnsApi(mock).managedZones; | 1301 api.ManagedZonesResourceApi res = new api.DnsApi(mock).managedZones; |
| 1302 var arg_project = "foo"; | 1302 var arg_project = "foo"; |
| 1303 var arg_managedZone = "foo"; | 1303 var arg_managedZone = "foo"; |
| 1304 var arg_clientOperationId = "foo"; | 1304 var arg_clientOperationId = "foo"; |
| 1305 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1305 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 1306 var path = (req.url).path; | 1306 var path = (req.url).path; |
| 1307 var pathOffset = 0; | 1307 var pathOffset = 0; |
| 1308 var index; | 1308 var index; |
| 1309 var subPart; | 1309 var subPart; |
| 1310 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 1310 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 1311 pathOffset += 1; | 1311 pathOffset += 1; |
| 1312 | 1312 |
| 1313 var query = (req.url).query; | 1313 var query = (req.url).query; |
| 1314 var queryOffset = 0; | 1314 var queryOffset = 0; |
| 1315 var queryMap = {}; | 1315 var queryMap = {}; |
| (...skipping 12 matching lines...) Expand all Loading... |
| 1328 } | 1328 } |
| 1329 unittest.expect(queryMap["clientOperationId"].first, unittest.equals(arg
_clientOperationId)); | 1329 unittest.expect(queryMap["clientOperationId"].first, unittest.equals(arg
_clientOperationId)); |
| 1330 | 1330 |
| 1331 | 1331 |
| 1332 var h = { | 1332 var h = { |
| 1333 "content-type" : "application/json; charset=utf-8", | 1333 "content-type" : "application/json; charset=utf-8", |
| 1334 }; | 1334 }; |
| 1335 var resp = convert.JSON.encode(buildManagedZonesDeleteResponse()); | 1335 var resp = convert.JSON.encode(buildManagedZonesDeleteResponse()); |
| 1336 return new async.Future.value(stringResponse(200, h, resp)); | 1336 return new async.Future.value(stringResponse(200, h, resp)); |
| 1337 }), true); | 1337 }), true); |
| 1338 res.delete(arg_project, arg_managedZone, clientOperationId: arg_clientOper
ationId).then(unittest.expectAsync(((api.ManagedZonesDeleteResponse response) { | 1338 res.delete(arg_project, arg_managedZone, clientOperationId: arg_clientOper
ationId).then(unittest.expectAsync1(((api.ManagedZonesDeleteResponse response) { |
| 1339 checkManagedZonesDeleteResponse(response); | 1339 checkManagedZonesDeleteResponse(response); |
| 1340 }))); | 1340 }))); |
| 1341 }); | 1341 }); |
| 1342 | 1342 |
| 1343 unittest.test("method--get", () { | 1343 unittest.test("method--get", () { |
| 1344 | 1344 |
| 1345 var mock = new HttpServerMock(); | 1345 var mock = new HttpServerMock(); |
| 1346 api.ManagedZonesResourceApi res = new api.DnsApi(mock).managedZones; | 1346 api.ManagedZonesResourceApi res = new api.DnsApi(mock).managedZones; |
| 1347 var arg_project = "foo"; | 1347 var arg_project = "foo"; |
| 1348 var arg_managedZone = "foo"; | 1348 var arg_managedZone = "foo"; |
| 1349 var arg_clientOperationId = "foo"; | 1349 var arg_clientOperationId = "foo"; |
| 1350 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1350 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 1351 var path = (req.url).path; | 1351 var path = (req.url).path; |
| 1352 var pathOffset = 0; | 1352 var pathOffset = 0; |
| 1353 var index; | 1353 var index; |
| 1354 var subPart; | 1354 var subPart; |
| 1355 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 1355 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 1356 pathOffset += 1; | 1356 pathOffset += 1; |
| 1357 | 1357 |
| 1358 var query = (req.url).query; | 1358 var query = (req.url).query; |
| 1359 var queryOffset = 0; | 1359 var queryOffset = 0; |
| 1360 var queryMap = {}; | 1360 var queryMap = {}; |
| (...skipping 12 matching lines...) Expand all Loading... |
| 1373 } | 1373 } |
| 1374 unittest.expect(queryMap["clientOperationId"].first, unittest.equals(arg
_clientOperationId)); | 1374 unittest.expect(queryMap["clientOperationId"].first, unittest.equals(arg
_clientOperationId)); |
| 1375 | 1375 |
| 1376 | 1376 |
| 1377 var h = { | 1377 var h = { |
| 1378 "content-type" : "application/json; charset=utf-8", | 1378 "content-type" : "application/json; charset=utf-8", |
| 1379 }; | 1379 }; |
| 1380 var resp = convert.JSON.encode(buildManagedZone()); | 1380 var resp = convert.JSON.encode(buildManagedZone()); |
| 1381 return new async.Future.value(stringResponse(200, h, resp)); | 1381 return new async.Future.value(stringResponse(200, h, resp)); |
| 1382 }), true); | 1382 }), true); |
| 1383 res.get(arg_project, arg_managedZone, clientOperationId: arg_clientOperati
onId).then(unittest.expectAsync(((api.ManagedZone response) { | 1383 res.get(arg_project, arg_managedZone, clientOperationId: arg_clientOperati
onId).then(unittest.expectAsync1(((api.ManagedZone response) { |
| 1384 checkManagedZone(response); | 1384 checkManagedZone(response); |
| 1385 }))); | 1385 }))); |
| 1386 }); | 1386 }); |
| 1387 | 1387 |
| 1388 unittest.test("method--list", () { | 1388 unittest.test("method--list", () { |
| 1389 | 1389 |
| 1390 var mock = new HttpServerMock(); | 1390 var mock = new HttpServerMock(); |
| 1391 api.ManagedZonesResourceApi res = new api.DnsApi(mock).managedZones; | 1391 api.ManagedZonesResourceApi res = new api.DnsApi(mock).managedZones; |
| 1392 var arg_project = "foo"; | 1392 var arg_project = "foo"; |
| 1393 var arg_dnsName = "foo"; | 1393 var arg_dnsName = "foo"; |
| 1394 var arg_maxResults = 42; | 1394 var arg_maxResults = 42; |
| 1395 var arg_pageToken = "foo"; | 1395 var arg_pageToken = "foo"; |
| 1396 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1396 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 1397 var path = (req.url).path; | 1397 var path = (req.url).path; |
| 1398 var pathOffset = 0; | 1398 var pathOffset = 0; |
| 1399 var index; | 1399 var index; |
| 1400 var subPart; | 1400 var subPart; |
| 1401 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 1401 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 1402 pathOffset += 1; | 1402 pathOffset += 1; |
| 1403 | 1403 |
| 1404 var query = (req.url).query; | 1404 var query = (req.url).query; |
| 1405 var queryOffset = 0; | 1405 var queryOffset = 0; |
| 1406 var queryMap = {}; | 1406 var queryMap = {}; |
| (...skipping 14 matching lines...) Expand all Loading... |
| 1421 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); | 1421 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
| 1422 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 1422 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 1423 | 1423 |
| 1424 | 1424 |
| 1425 var h = { | 1425 var h = { |
| 1426 "content-type" : "application/json; charset=utf-8", | 1426 "content-type" : "application/json; charset=utf-8", |
| 1427 }; | 1427 }; |
| 1428 var resp = convert.JSON.encode(buildManagedZonesListResponse()); | 1428 var resp = convert.JSON.encode(buildManagedZonesListResponse()); |
| 1429 return new async.Future.value(stringResponse(200, h, resp)); | 1429 return new async.Future.value(stringResponse(200, h, resp)); |
| 1430 }), true); | 1430 }), true); |
| 1431 res.list(arg_project, dnsName: arg_dnsName, maxResults: arg_maxResults, pa
geToken: arg_pageToken).then(unittest.expectAsync(((api.ManagedZonesListResponse
response) { | 1431 res.list(arg_project, dnsName: arg_dnsName, maxResults: arg_maxResults, pa
geToken: arg_pageToken).then(unittest.expectAsync1(((api.ManagedZonesListRespons
e response) { |
| 1432 checkManagedZonesListResponse(response); | 1432 checkManagedZonesListResponse(response); |
| 1433 }))); | 1433 }))); |
| 1434 }); | 1434 }); |
| 1435 | 1435 |
| 1436 unittest.test("method--patch", () { | 1436 unittest.test("method--patch", () { |
| 1437 | 1437 |
| 1438 var mock = new HttpServerMock(); | 1438 var mock = new HttpServerMock(); |
| 1439 api.ManagedZonesResourceApi res = new api.DnsApi(mock).managedZones; | 1439 api.ManagedZonesResourceApi res = new api.DnsApi(mock).managedZones; |
| 1440 var arg_request = buildManagedZone(); | 1440 var arg_request = buildManagedZone(); |
| 1441 var arg_project = "foo"; | 1441 var arg_project = "foo"; |
| 1442 var arg_managedZone = "foo"; | 1442 var arg_managedZone = "foo"; |
| 1443 var arg_clientOperationId = "foo"; | 1443 var arg_clientOperationId = "foo"; |
| 1444 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1444 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 1445 var obj = new api.ManagedZone.fromJson(json); | 1445 var obj = new api.ManagedZone.fromJson(json); |
| 1446 checkManagedZone(obj); | 1446 checkManagedZone(obj); |
| 1447 | 1447 |
| 1448 var path = (req.url).path; | 1448 var path = (req.url).path; |
| 1449 var pathOffset = 0; | 1449 var pathOffset = 0; |
| 1450 var index; | 1450 var index; |
| 1451 var subPart; | 1451 var subPart; |
| 1452 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 1452 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 1453 pathOffset += 1; | 1453 pathOffset += 1; |
| 1454 | 1454 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 1470 } | 1470 } |
| 1471 unittest.expect(queryMap["clientOperationId"].first, unittest.equals(arg
_clientOperationId)); | 1471 unittest.expect(queryMap["clientOperationId"].first, unittest.equals(arg
_clientOperationId)); |
| 1472 | 1472 |
| 1473 | 1473 |
| 1474 var h = { | 1474 var h = { |
| 1475 "content-type" : "application/json; charset=utf-8", | 1475 "content-type" : "application/json; charset=utf-8", |
| 1476 }; | 1476 }; |
| 1477 var resp = convert.JSON.encode(buildOperation()); | 1477 var resp = convert.JSON.encode(buildOperation()); |
| 1478 return new async.Future.value(stringResponse(200, h, resp)); | 1478 return new async.Future.value(stringResponse(200, h, resp)); |
| 1479 }), true); | 1479 }), true); |
| 1480 res.patch(arg_request, arg_project, arg_managedZone, clientOperationId: ar
g_clientOperationId).then(unittest.expectAsync(((api.Operation response) { | 1480 res.patch(arg_request, arg_project, arg_managedZone, clientOperationId: ar
g_clientOperationId).then(unittest.expectAsync1(((api.Operation response) { |
| 1481 checkOperation(response); | 1481 checkOperation(response); |
| 1482 }))); | 1482 }))); |
| 1483 }); | 1483 }); |
| 1484 | 1484 |
| 1485 unittest.test("method--update", () { | 1485 unittest.test("method--update", () { |
| 1486 | 1486 |
| 1487 var mock = new HttpServerMock(); | 1487 var mock = new HttpServerMock(); |
| 1488 api.ManagedZonesResourceApi res = new api.DnsApi(mock).managedZones; | 1488 api.ManagedZonesResourceApi res = new api.DnsApi(mock).managedZones; |
| 1489 var arg_request = buildManagedZone(); | 1489 var arg_request = buildManagedZone(); |
| 1490 var arg_project = "foo"; | 1490 var arg_project = "foo"; |
| 1491 var arg_managedZone = "foo"; | 1491 var arg_managedZone = "foo"; |
| 1492 var arg_clientOperationId = "foo"; | 1492 var arg_clientOperationId = "foo"; |
| 1493 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1493 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 1494 var obj = new api.ManagedZone.fromJson(json); | 1494 var obj = new api.ManagedZone.fromJson(json); |
| 1495 checkManagedZone(obj); | 1495 checkManagedZone(obj); |
| 1496 | 1496 |
| 1497 var path = (req.url).path; | 1497 var path = (req.url).path; |
| 1498 var pathOffset = 0; | 1498 var pathOffset = 0; |
| 1499 var index; | 1499 var index; |
| 1500 var subPart; | 1500 var subPart; |
| 1501 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 1501 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 1502 pathOffset += 1; | 1502 pathOffset += 1; |
| 1503 | 1503 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 1519 } | 1519 } |
| 1520 unittest.expect(queryMap["clientOperationId"].first, unittest.equals(arg
_clientOperationId)); | 1520 unittest.expect(queryMap["clientOperationId"].first, unittest.equals(arg
_clientOperationId)); |
| 1521 | 1521 |
| 1522 | 1522 |
| 1523 var h = { | 1523 var h = { |
| 1524 "content-type" : "application/json; charset=utf-8", | 1524 "content-type" : "application/json; charset=utf-8", |
| 1525 }; | 1525 }; |
| 1526 var resp = convert.JSON.encode(buildOperation()); | 1526 var resp = convert.JSON.encode(buildOperation()); |
| 1527 return new async.Future.value(stringResponse(200, h, resp)); | 1527 return new async.Future.value(stringResponse(200, h, resp)); |
| 1528 }), true); | 1528 }), true); |
| 1529 res.update(arg_request, arg_project, arg_managedZone, clientOperationId: a
rg_clientOperationId).then(unittest.expectAsync(((api.Operation response) { | 1529 res.update(arg_request, arg_project, arg_managedZone, clientOperationId: a
rg_clientOperationId).then(unittest.expectAsync1(((api.Operation response) { |
| 1530 checkOperation(response); | 1530 checkOperation(response); |
| 1531 }))); | 1531 }))); |
| 1532 }); | 1532 }); |
| 1533 | 1533 |
| 1534 }); | 1534 }); |
| 1535 | 1535 |
| 1536 | 1536 |
| 1537 unittest.group("resource-ProjectsResourceApi", () { | 1537 unittest.group("resource-ProjectsResourceApi", () { |
| 1538 unittest.test("method--get", () { | 1538 unittest.test("method--get", () { |
| 1539 | 1539 |
| 1540 var mock = new HttpServerMock(); | 1540 var mock = new HttpServerMock(); |
| 1541 api.ProjectsResourceApi res = new api.DnsApi(mock).projects; | 1541 api.ProjectsResourceApi res = new api.DnsApi(mock).projects; |
| 1542 var arg_project = "foo"; | 1542 var arg_project = "foo"; |
| 1543 var arg_clientOperationId = "foo"; | 1543 var arg_clientOperationId = "foo"; |
| 1544 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1544 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 1545 var path = (req.url).path; | 1545 var path = (req.url).path; |
| 1546 var pathOffset = 0; | 1546 var pathOffset = 0; |
| 1547 var index; | 1547 var index; |
| 1548 var subPart; | 1548 var subPart; |
| 1549 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 1549 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 1550 pathOffset += 1; | 1550 pathOffset += 1; |
| 1551 | 1551 |
| 1552 var query = (req.url).query; | 1552 var query = (req.url).query; |
| 1553 var queryOffset = 0; | 1553 var queryOffset = 0; |
| 1554 var queryMap = {}; | 1554 var queryMap = {}; |
| (...skipping 12 matching lines...) Expand all Loading... |
| 1567 } | 1567 } |
| 1568 unittest.expect(queryMap["clientOperationId"].first, unittest.equals(arg
_clientOperationId)); | 1568 unittest.expect(queryMap["clientOperationId"].first, unittest.equals(arg
_clientOperationId)); |
| 1569 | 1569 |
| 1570 | 1570 |
| 1571 var h = { | 1571 var h = { |
| 1572 "content-type" : "application/json; charset=utf-8", | 1572 "content-type" : "application/json; charset=utf-8", |
| 1573 }; | 1573 }; |
| 1574 var resp = convert.JSON.encode(buildProject()); | 1574 var resp = convert.JSON.encode(buildProject()); |
| 1575 return new async.Future.value(stringResponse(200, h, resp)); | 1575 return new async.Future.value(stringResponse(200, h, resp)); |
| 1576 }), true); | 1576 }), true); |
| 1577 res.get(arg_project, clientOperationId: arg_clientOperationId).then(unitte
st.expectAsync(((api.Project response) { | 1577 res.get(arg_project, clientOperationId: arg_clientOperationId).then(unitte
st.expectAsync1(((api.Project response) { |
| 1578 checkProject(response); | 1578 checkProject(response); |
| 1579 }))); | 1579 }))); |
| 1580 }); | 1580 }); |
| 1581 | 1581 |
| 1582 }); | 1582 }); |
| 1583 | 1583 |
| 1584 | 1584 |
| 1585 unittest.group("resource-ResourceRecordSetsResourceApi", () { | 1585 unittest.group("resource-ResourceRecordSetsResourceApi", () { |
| 1586 unittest.test("method--list", () { | 1586 unittest.test("method--list", () { |
| 1587 | 1587 |
| 1588 var mock = new HttpServerMock(); | 1588 var mock = new HttpServerMock(); |
| 1589 api.ResourceRecordSetsResourceApi res = new api.DnsApi(mock).resourceRecor
dSets; | 1589 api.ResourceRecordSetsResourceApi res = new api.DnsApi(mock).resourceRecor
dSets; |
| 1590 var arg_project = "foo"; | 1590 var arg_project = "foo"; |
| 1591 var arg_managedZone = "foo"; | 1591 var arg_managedZone = "foo"; |
| 1592 var arg_maxResults = 42; | 1592 var arg_maxResults = 42; |
| 1593 var arg_name = "foo"; | 1593 var arg_name = "foo"; |
| 1594 var arg_pageToken = "foo"; | 1594 var arg_pageToken = "foo"; |
| 1595 var arg_type = "foo"; | 1595 var arg_type = "foo"; |
| 1596 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1596 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 1597 var path = (req.url).path; | 1597 var path = (req.url).path; |
| 1598 var pathOffset = 0; | 1598 var pathOffset = 0; |
| 1599 var index; | 1599 var index; |
| 1600 var subPart; | 1600 var subPart; |
| 1601 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 1601 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 1602 pathOffset += 1; | 1602 pathOffset += 1; |
| 1603 | 1603 |
| 1604 var query = (req.url).query; | 1604 var query = (req.url).query; |
| 1605 var queryOffset = 0; | 1605 var queryOffset = 0; |
| 1606 var queryMap = {}; | 1606 var queryMap = {}; |
| (...skipping 15 matching lines...) Expand all Loading... |
| 1622 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 1622 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 1623 unittest.expect(queryMap["type"].first, unittest.equals(arg_type)); | 1623 unittest.expect(queryMap["type"].first, unittest.equals(arg_type)); |
| 1624 | 1624 |
| 1625 | 1625 |
| 1626 var h = { | 1626 var h = { |
| 1627 "content-type" : "application/json; charset=utf-8", | 1627 "content-type" : "application/json; charset=utf-8", |
| 1628 }; | 1628 }; |
| 1629 var resp = convert.JSON.encode(buildResourceRecordSetsListResponse()); | 1629 var resp = convert.JSON.encode(buildResourceRecordSetsListResponse()); |
| 1630 return new async.Future.value(stringResponse(200, h, resp)); | 1630 return new async.Future.value(stringResponse(200, h, resp)); |
| 1631 }), true); | 1631 }), true); |
| 1632 res.list(arg_project, arg_managedZone, maxResults: arg_maxResults, name: a
rg_name, pageToken: arg_pageToken, type: arg_type).then(unittest.expectAsync(((a
pi.ResourceRecordSetsListResponse response) { | 1632 res.list(arg_project, arg_managedZone, maxResults: arg_maxResults, name: a
rg_name, pageToken: arg_pageToken, type: arg_type).then(unittest.expectAsync1(((
api.ResourceRecordSetsListResponse response) { |
| 1633 checkResourceRecordSetsListResponse(response); | 1633 checkResourceRecordSetsListResponse(response); |
| 1634 }))); | 1634 }))); |
| 1635 }); | 1635 }); |
| 1636 | 1636 |
| 1637 }); | 1637 }); |
| 1638 | 1638 |
| 1639 | 1639 |
| 1640 } | 1640 } |
| 1641 | 1641 |
| OLD | NEW |