| OLD | NEW |
| 1 library googleapis_beta.replicapoolupdater.v1beta1.test; | 1 library googleapis_beta.replicapoolupdater.v1beta1.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; |
| 11 import 'package:googleapis_beta/common/common.dart' as common; | |
| 12 import 'package:googleapis_beta/src/common_internal.dart' as common_internal; | |
| 13 import '../common/common_internal_test.dart' as common_test; | |
| 14 | 11 |
| 15 import 'package:googleapis_beta/replicapoolupdater/v1beta1.dart' as api; | 12 import 'package:googleapis_beta/replicapoolupdater/v1beta1.dart' as api; |
| 16 | 13 |
| 14 class HttpServerMock extends http.BaseClient { |
| 15 core.Function _callback; |
| 16 core.bool _expectJson; |
| 17 | 17 |
| 18 void register(core.Function callback, core.bool expectJson) { |
| 19 _callback = callback; |
| 20 _expectJson = expectJson; |
| 21 } |
| 22 |
| 23 async.Future<http.StreamedResponse> send(http.BaseRequest request) { |
| 24 if (_expectJson) { |
| 25 return request.finalize() |
| 26 .transform(convert.UTF8.decoder) |
| 27 .join('') |
| 28 .then((core.String jsonString) { |
| 29 if (jsonString.isEmpty) { |
| 30 return _callback(request, null); |
| 31 } else { |
| 32 return _callback(request, convert.JSON.decode(jsonString)); |
| 33 } |
| 34 }); |
| 35 } else { |
| 36 var stream = request.finalize(); |
| 37 if (stream == null) { |
| 38 return _callback(request, []); |
| 39 } else { |
| 40 return stream.toBytes().then((data) { |
| 41 return _callback(request, data); |
| 42 }); |
| 43 } |
| 44 } |
| 45 } |
| 46 } |
| 47 |
| 48 http.StreamedResponse stringResponse( |
| 49 core.int status, core.Map headers, core.String body) { |
| 50 var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); |
| 51 return new http.StreamedResponse(stream, status, headers: headers); |
| 52 } |
| 18 | 53 |
| 19 core.int buildCounterInstanceUpdateErrorErrors = 0; | 54 core.int buildCounterInstanceUpdateErrorErrors = 0; |
| 20 buildInstanceUpdateErrorErrors() { | 55 buildInstanceUpdateErrorErrors() { |
| 21 var o = new api.InstanceUpdateErrorErrors(); | 56 var o = new api.InstanceUpdateErrorErrors(); |
| 22 buildCounterInstanceUpdateErrorErrors++; | 57 buildCounterInstanceUpdateErrorErrors++; |
| 23 if (buildCounterInstanceUpdateErrorErrors < 3) { | 58 if (buildCounterInstanceUpdateErrorErrors < 3) { |
| 24 o.code = "foo"; | 59 o.code = "foo"; |
| 25 o.location = "foo"; | 60 o.location = "foo"; |
| 26 o.message = "foo"; | 61 o.message = "foo"; |
| 27 } | 62 } |
| 28 buildCounterInstanceUpdateErrorErrors--; | 63 buildCounterInstanceUpdateErrorErrors--; |
| 29 return o; | 64 return o; |
| 30 } | 65 } |
| 31 | 66 |
| 32 checkInstanceUpdateErrorErrors(api.InstanceUpdateErrorErrors o) { | 67 checkInstanceUpdateErrorErrors(api.InstanceUpdateErrorErrors o) { |
| 33 buildCounterInstanceUpdateErrorErrors++; | 68 buildCounterInstanceUpdateErrorErrors++; |
| 34 if (buildCounterInstanceUpdateErrorErrors < 3) { | 69 if (buildCounterInstanceUpdateErrorErrors < 3) { |
| 35 unittest.expect(o.code, unittest.equals('foo')); | 70 unittest.expect(o.code, unittest.equals('foo')); |
| 36 unittest.expect(o.location, unittest.equals('foo')); | 71 unittest.expect(o.location, unittest.equals('foo')); |
| 37 unittest.expect(o.message, unittest.equals('foo')); | 72 unittest.expect(o.message, unittest.equals('foo')); |
| 38 } | 73 } |
| 39 buildCounterInstanceUpdateErrorErrors--; | 74 buildCounterInstanceUpdateErrorErrors--; |
| 40 } | 75 } |
| 41 | 76 |
| 42 buildUnnamed1612() { | 77 buildUnnamed1744() { |
| 43 var o = new core.List<api.InstanceUpdateErrorErrors>(); | 78 var o = new core.List<api.InstanceUpdateErrorErrors>(); |
| 44 o.add(buildInstanceUpdateErrorErrors()); | 79 o.add(buildInstanceUpdateErrorErrors()); |
| 45 o.add(buildInstanceUpdateErrorErrors()); | 80 o.add(buildInstanceUpdateErrorErrors()); |
| 46 return o; | 81 return o; |
| 47 } | 82 } |
| 48 | 83 |
| 49 checkUnnamed1612(core.List<api.InstanceUpdateErrorErrors> o) { | 84 checkUnnamed1744(core.List<api.InstanceUpdateErrorErrors> o) { |
| 50 unittest.expect(o, unittest.hasLength(2)); | 85 unittest.expect(o, unittest.hasLength(2)); |
| 51 checkInstanceUpdateErrorErrors(o[0]); | 86 checkInstanceUpdateErrorErrors(o[0]); |
| 52 checkInstanceUpdateErrorErrors(o[1]); | 87 checkInstanceUpdateErrorErrors(o[1]); |
| 53 } | 88 } |
| 54 | 89 |
| 55 core.int buildCounterInstanceUpdateError = 0; | 90 core.int buildCounterInstanceUpdateError = 0; |
| 56 buildInstanceUpdateError() { | 91 buildInstanceUpdateError() { |
| 57 var o = new api.InstanceUpdateError(); | 92 var o = new api.InstanceUpdateError(); |
| 58 buildCounterInstanceUpdateError++; | 93 buildCounterInstanceUpdateError++; |
| 59 if (buildCounterInstanceUpdateError < 3) { | 94 if (buildCounterInstanceUpdateError < 3) { |
| 60 o.errors = buildUnnamed1612(); | 95 o.errors = buildUnnamed1744(); |
| 61 } | 96 } |
| 62 buildCounterInstanceUpdateError--; | 97 buildCounterInstanceUpdateError--; |
| 63 return o; | 98 return o; |
| 64 } | 99 } |
| 65 | 100 |
| 66 checkInstanceUpdateError(api.InstanceUpdateError o) { | 101 checkInstanceUpdateError(api.InstanceUpdateError o) { |
| 67 buildCounterInstanceUpdateError++; | 102 buildCounterInstanceUpdateError++; |
| 68 if (buildCounterInstanceUpdateError < 3) { | 103 if (buildCounterInstanceUpdateError < 3) { |
| 69 checkUnnamed1612(o.errors); | 104 checkUnnamed1744(o.errors); |
| 70 } | 105 } |
| 71 buildCounterInstanceUpdateError--; | 106 buildCounterInstanceUpdateError--; |
| 72 } | 107 } |
| 73 | 108 |
| 74 core.int buildCounterInstanceUpdate = 0; | 109 core.int buildCounterInstanceUpdate = 0; |
| 75 buildInstanceUpdate() { | 110 buildInstanceUpdate() { |
| 76 var o = new api.InstanceUpdate(); | 111 var o = new api.InstanceUpdate(); |
| 77 buildCounterInstanceUpdate++; | 112 buildCounterInstanceUpdate++; |
| 78 if (buildCounterInstanceUpdate < 3) { | 113 if (buildCounterInstanceUpdate < 3) { |
| 79 o.error = buildInstanceUpdateError(); | 114 o.error = buildInstanceUpdateError(); |
| 80 o.instance = "foo"; | 115 o.instance = "foo"; |
| 81 o.status = "foo"; | 116 o.status = "foo"; |
| 82 } | 117 } |
| 83 buildCounterInstanceUpdate--; | 118 buildCounterInstanceUpdate--; |
| 84 return o; | 119 return o; |
| 85 } | 120 } |
| 86 | 121 |
| 87 checkInstanceUpdate(api.InstanceUpdate o) { | 122 checkInstanceUpdate(api.InstanceUpdate o) { |
| 88 buildCounterInstanceUpdate++; | 123 buildCounterInstanceUpdate++; |
| 89 if (buildCounterInstanceUpdate < 3) { | 124 if (buildCounterInstanceUpdate < 3) { |
| 90 checkInstanceUpdateError(o.error); | 125 checkInstanceUpdateError(o.error); |
| 91 unittest.expect(o.instance, unittest.equals('foo')); | 126 unittest.expect(o.instance, unittest.equals('foo')); |
| 92 unittest.expect(o.status, unittest.equals('foo')); | 127 unittest.expect(o.status, unittest.equals('foo')); |
| 93 } | 128 } |
| 94 buildCounterInstanceUpdate--; | 129 buildCounterInstanceUpdate--; |
| 95 } | 130 } |
| 96 | 131 |
| 97 buildUnnamed1613() { | 132 buildUnnamed1745() { |
| 98 var o = new core.List<api.InstanceUpdate>(); | 133 var o = new core.List<api.InstanceUpdate>(); |
| 99 o.add(buildInstanceUpdate()); | 134 o.add(buildInstanceUpdate()); |
| 100 o.add(buildInstanceUpdate()); | 135 o.add(buildInstanceUpdate()); |
| 101 return o; | 136 return o; |
| 102 } | 137 } |
| 103 | 138 |
| 104 checkUnnamed1613(core.List<api.InstanceUpdate> o) { | 139 checkUnnamed1745(core.List<api.InstanceUpdate> o) { |
| 105 unittest.expect(o, unittest.hasLength(2)); | 140 unittest.expect(o, unittest.hasLength(2)); |
| 106 checkInstanceUpdate(o[0]); | 141 checkInstanceUpdate(o[0]); |
| 107 checkInstanceUpdate(o[1]); | 142 checkInstanceUpdate(o[1]); |
| 108 } | 143 } |
| 109 | 144 |
| 110 core.int buildCounterInstanceUpdateList = 0; | 145 core.int buildCounterInstanceUpdateList = 0; |
| 111 buildInstanceUpdateList() { | 146 buildInstanceUpdateList() { |
| 112 var o = new api.InstanceUpdateList(); | 147 var o = new api.InstanceUpdateList(); |
| 113 buildCounterInstanceUpdateList++; | 148 buildCounterInstanceUpdateList++; |
| 114 if (buildCounterInstanceUpdateList < 3) { | 149 if (buildCounterInstanceUpdateList < 3) { |
| 115 o.items = buildUnnamed1613(); | 150 o.items = buildUnnamed1745(); |
| 116 o.kind = "foo"; | 151 o.kind = "foo"; |
| 117 o.nextPageToken = "foo"; | 152 o.nextPageToken = "foo"; |
| 118 o.selfLink = "foo"; | 153 o.selfLink = "foo"; |
| 119 } | 154 } |
| 120 buildCounterInstanceUpdateList--; | 155 buildCounterInstanceUpdateList--; |
| 121 return o; | 156 return o; |
| 122 } | 157 } |
| 123 | 158 |
| 124 checkInstanceUpdateList(api.InstanceUpdateList o) { | 159 checkInstanceUpdateList(api.InstanceUpdateList o) { |
| 125 buildCounterInstanceUpdateList++; | 160 buildCounterInstanceUpdateList++; |
| 126 if (buildCounterInstanceUpdateList < 3) { | 161 if (buildCounterInstanceUpdateList < 3) { |
| 127 checkUnnamed1613(o.items); | 162 checkUnnamed1745(o.items); |
| 128 unittest.expect(o.kind, unittest.equals('foo')); | 163 unittest.expect(o.kind, unittest.equals('foo')); |
| 129 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 164 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 130 unittest.expect(o.selfLink, unittest.equals('foo')); | 165 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 131 } | 166 } |
| 132 buildCounterInstanceUpdateList--; | 167 buildCounterInstanceUpdateList--; |
| 133 } | 168 } |
| 134 | 169 |
| 135 core.int buildCounterOperationErrorErrors = 0; | 170 core.int buildCounterOperationErrorErrors = 0; |
| 136 buildOperationErrorErrors() { | 171 buildOperationErrorErrors() { |
| 137 var o = new api.OperationErrorErrors(); | 172 var o = new api.OperationErrorErrors(); |
| (...skipping 10 matching lines...) Expand all Loading... |
| 148 checkOperationErrorErrors(api.OperationErrorErrors o) { | 183 checkOperationErrorErrors(api.OperationErrorErrors o) { |
| 149 buildCounterOperationErrorErrors++; | 184 buildCounterOperationErrorErrors++; |
| 150 if (buildCounterOperationErrorErrors < 3) { | 185 if (buildCounterOperationErrorErrors < 3) { |
| 151 unittest.expect(o.code, unittest.equals('foo')); | 186 unittest.expect(o.code, unittest.equals('foo')); |
| 152 unittest.expect(o.location, unittest.equals('foo')); | 187 unittest.expect(o.location, unittest.equals('foo')); |
| 153 unittest.expect(o.message, unittest.equals('foo')); | 188 unittest.expect(o.message, unittest.equals('foo')); |
| 154 } | 189 } |
| 155 buildCounterOperationErrorErrors--; | 190 buildCounterOperationErrorErrors--; |
| 156 } | 191 } |
| 157 | 192 |
| 158 buildUnnamed1614() { | 193 buildUnnamed1746() { |
| 159 var o = new core.List<api.OperationErrorErrors>(); | 194 var o = new core.List<api.OperationErrorErrors>(); |
| 160 o.add(buildOperationErrorErrors()); | 195 o.add(buildOperationErrorErrors()); |
| 161 o.add(buildOperationErrorErrors()); | 196 o.add(buildOperationErrorErrors()); |
| 162 return o; | 197 return o; |
| 163 } | 198 } |
| 164 | 199 |
| 165 checkUnnamed1614(core.List<api.OperationErrorErrors> o) { | 200 checkUnnamed1746(core.List<api.OperationErrorErrors> o) { |
| 166 unittest.expect(o, unittest.hasLength(2)); | 201 unittest.expect(o, unittest.hasLength(2)); |
| 167 checkOperationErrorErrors(o[0]); | 202 checkOperationErrorErrors(o[0]); |
| 168 checkOperationErrorErrors(o[1]); | 203 checkOperationErrorErrors(o[1]); |
| 169 } | 204 } |
| 170 | 205 |
| 171 core.int buildCounterOperationError = 0; | 206 core.int buildCounterOperationError = 0; |
| 172 buildOperationError() { | 207 buildOperationError() { |
| 173 var o = new api.OperationError(); | 208 var o = new api.OperationError(); |
| 174 buildCounterOperationError++; | 209 buildCounterOperationError++; |
| 175 if (buildCounterOperationError < 3) { | 210 if (buildCounterOperationError < 3) { |
| 176 o.errors = buildUnnamed1614(); | 211 o.errors = buildUnnamed1746(); |
| 177 } | 212 } |
| 178 buildCounterOperationError--; | 213 buildCounterOperationError--; |
| 179 return o; | 214 return o; |
| 180 } | 215 } |
| 181 | 216 |
| 182 checkOperationError(api.OperationError o) { | 217 checkOperationError(api.OperationError o) { |
| 183 buildCounterOperationError++; | 218 buildCounterOperationError++; |
| 184 if (buildCounterOperationError < 3) { | 219 if (buildCounterOperationError < 3) { |
| 185 checkUnnamed1614(o.errors); | 220 checkUnnamed1746(o.errors); |
| 186 } | 221 } |
| 187 buildCounterOperationError--; | 222 buildCounterOperationError--; |
| 188 } | 223 } |
| 189 | 224 |
| 190 core.int buildCounterOperationWarningsData = 0; | 225 core.int buildCounterOperationWarningsData = 0; |
| 191 buildOperationWarningsData() { | 226 buildOperationWarningsData() { |
| 192 var o = new api.OperationWarningsData(); | 227 var o = new api.OperationWarningsData(); |
| 193 buildCounterOperationWarningsData++; | 228 buildCounterOperationWarningsData++; |
| 194 if (buildCounterOperationWarningsData < 3) { | 229 if (buildCounterOperationWarningsData < 3) { |
| 195 o.key = "foo"; | 230 o.key = "foo"; |
| 196 o.value = "foo"; | 231 o.value = "foo"; |
| 197 } | 232 } |
| 198 buildCounterOperationWarningsData--; | 233 buildCounterOperationWarningsData--; |
| 199 return o; | 234 return o; |
| 200 } | 235 } |
| 201 | 236 |
| 202 checkOperationWarningsData(api.OperationWarningsData o) { | 237 checkOperationWarningsData(api.OperationWarningsData o) { |
| 203 buildCounterOperationWarningsData++; | 238 buildCounterOperationWarningsData++; |
| 204 if (buildCounterOperationWarningsData < 3) { | 239 if (buildCounterOperationWarningsData < 3) { |
| 205 unittest.expect(o.key, unittest.equals('foo')); | 240 unittest.expect(o.key, unittest.equals('foo')); |
| 206 unittest.expect(o.value, unittest.equals('foo')); | 241 unittest.expect(o.value, unittest.equals('foo')); |
| 207 } | 242 } |
| 208 buildCounterOperationWarningsData--; | 243 buildCounterOperationWarningsData--; |
| 209 } | 244 } |
| 210 | 245 |
| 211 buildUnnamed1615() { | 246 buildUnnamed1747() { |
| 212 var o = new core.List<api.OperationWarningsData>(); | 247 var o = new core.List<api.OperationWarningsData>(); |
| 213 o.add(buildOperationWarningsData()); | 248 o.add(buildOperationWarningsData()); |
| 214 o.add(buildOperationWarningsData()); | 249 o.add(buildOperationWarningsData()); |
| 215 return o; | 250 return o; |
| 216 } | 251 } |
| 217 | 252 |
| 218 checkUnnamed1615(core.List<api.OperationWarningsData> o) { | 253 checkUnnamed1747(core.List<api.OperationWarningsData> o) { |
| 219 unittest.expect(o, unittest.hasLength(2)); | 254 unittest.expect(o, unittest.hasLength(2)); |
| 220 checkOperationWarningsData(o[0]); | 255 checkOperationWarningsData(o[0]); |
| 221 checkOperationWarningsData(o[1]); | 256 checkOperationWarningsData(o[1]); |
| 222 } | 257 } |
| 223 | 258 |
| 224 core.int buildCounterOperationWarnings = 0; | 259 core.int buildCounterOperationWarnings = 0; |
| 225 buildOperationWarnings() { | 260 buildOperationWarnings() { |
| 226 var o = new api.OperationWarnings(); | 261 var o = new api.OperationWarnings(); |
| 227 buildCounterOperationWarnings++; | 262 buildCounterOperationWarnings++; |
| 228 if (buildCounterOperationWarnings < 3) { | 263 if (buildCounterOperationWarnings < 3) { |
| 229 o.code = "foo"; | 264 o.code = "foo"; |
| 230 o.data = buildUnnamed1615(); | 265 o.data = buildUnnamed1747(); |
| 231 o.message = "foo"; | 266 o.message = "foo"; |
| 232 } | 267 } |
| 233 buildCounterOperationWarnings--; | 268 buildCounterOperationWarnings--; |
| 234 return o; | 269 return o; |
| 235 } | 270 } |
| 236 | 271 |
| 237 checkOperationWarnings(api.OperationWarnings o) { | 272 checkOperationWarnings(api.OperationWarnings o) { |
| 238 buildCounterOperationWarnings++; | 273 buildCounterOperationWarnings++; |
| 239 if (buildCounterOperationWarnings < 3) { | 274 if (buildCounterOperationWarnings < 3) { |
| 240 unittest.expect(o.code, unittest.equals('foo')); | 275 unittest.expect(o.code, unittest.equals('foo')); |
| 241 checkUnnamed1615(o.data); | 276 checkUnnamed1747(o.data); |
| 242 unittest.expect(o.message, unittest.equals('foo')); | 277 unittest.expect(o.message, unittest.equals('foo')); |
| 243 } | 278 } |
| 244 buildCounterOperationWarnings--; | 279 buildCounterOperationWarnings--; |
| 245 } | 280 } |
| 246 | 281 |
| 247 buildUnnamed1616() { | 282 buildUnnamed1748() { |
| 248 var o = new core.List<api.OperationWarnings>(); | 283 var o = new core.List<api.OperationWarnings>(); |
| 249 o.add(buildOperationWarnings()); | 284 o.add(buildOperationWarnings()); |
| 250 o.add(buildOperationWarnings()); | 285 o.add(buildOperationWarnings()); |
| 251 return o; | 286 return o; |
| 252 } | 287 } |
| 253 | 288 |
| 254 checkUnnamed1616(core.List<api.OperationWarnings> o) { | 289 checkUnnamed1748(core.List<api.OperationWarnings> o) { |
| 255 unittest.expect(o, unittest.hasLength(2)); | 290 unittest.expect(o, unittest.hasLength(2)); |
| 256 checkOperationWarnings(o[0]); | 291 checkOperationWarnings(o[0]); |
| 257 checkOperationWarnings(o[1]); | 292 checkOperationWarnings(o[1]); |
| 258 } | 293 } |
| 259 | 294 |
| 260 core.int buildCounterOperation = 0; | 295 core.int buildCounterOperation = 0; |
| 261 buildOperation() { | 296 buildOperation() { |
| 262 var o = new api.Operation(); | 297 var o = new api.Operation(); |
| 263 buildCounterOperation++; | 298 buildCounterOperation++; |
| 264 if (buildCounterOperation < 3) { | 299 if (buildCounterOperation < 3) { |
| (...skipping 10 matching lines...) Expand all Loading... |
| 275 o.operationType = "foo"; | 310 o.operationType = "foo"; |
| 276 o.progress = 42; | 311 o.progress = 42; |
| 277 o.region = "foo"; | 312 o.region = "foo"; |
| 278 o.selfLink = "foo"; | 313 o.selfLink = "foo"; |
| 279 o.startTime = "foo"; | 314 o.startTime = "foo"; |
| 280 o.status = "foo"; | 315 o.status = "foo"; |
| 281 o.statusMessage = "foo"; | 316 o.statusMessage = "foo"; |
| 282 o.targetId = "foo"; | 317 o.targetId = "foo"; |
| 283 o.targetLink = "foo"; | 318 o.targetLink = "foo"; |
| 284 o.user = "foo"; | 319 o.user = "foo"; |
| 285 o.warnings = buildUnnamed1616(); | 320 o.warnings = buildUnnamed1748(); |
| 286 o.zone = "foo"; | 321 o.zone = "foo"; |
| 287 } | 322 } |
| 288 buildCounterOperation--; | 323 buildCounterOperation--; |
| 289 return o; | 324 return o; |
| 290 } | 325 } |
| 291 | 326 |
| 292 checkOperation(api.Operation o) { | 327 checkOperation(api.Operation o) { |
| 293 buildCounterOperation++; | 328 buildCounterOperation++; |
| 294 if (buildCounterOperation < 3) { | 329 if (buildCounterOperation < 3) { |
| 295 unittest.expect(o.clientOperationId, unittest.equals('foo')); | 330 unittest.expect(o.clientOperationId, unittest.equals('foo')); |
| 296 unittest.expect(o.creationTimestamp, unittest.equals('foo')); | 331 unittest.expect(o.creationTimestamp, unittest.equals('foo')); |
| 297 unittest.expect(o.endTime, unittest.equals('foo')); | 332 unittest.expect(o.endTime, unittest.equals('foo')); |
| 298 checkOperationError(o.error); | 333 checkOperationError(o.error); |
| 299 unittest.expect(o.httpErrorMessage, unittest.equals('foo')); | 334 unittest.expect(o.httpErrorMessage, unittest.equals('foo')); |
| 300 unittest.expect(o.httpErrorStatusCode, unittest.equals(42)); | 335 unittest.expect(o.httpErrorStatusCode, unittest.equals(42)); |
| 301 unittest.expect(o.id, unittest.equals('foo')); | 336 unittest.expect(o.id, unittest.equals('foo')); |
| 302 unittest.expect(o.insertTime, unittest.equals('foo')); | 337 unittest.expect(o.insertTime, unittest.equals('foo')); |
| 303 unittest.expect(o.kind, unittest.equals('foo')); | 338 unittest.expect(o.kind, unittest.equals('foo')); |
| 304 unittest.expect(o.name, unittest.equals('foo')); | 339 unittest.expect(o.name, unittest.equals('foo')); |
| 305 unittest.expect(o.operationType, unittest.equals('foo')); | 340 unittest.expect(o.operationType, unittest.equals('foo')); |
| 306 unittest.expect(o.progress, unittest.equals(42)); | 341 unittest.expect(o.progress, unittest.equals(42)); |
| 307 unittest.expect(o.region, unittest.equals('foo')); | 342 unittest.expect(o.region, unittest.equals('foo')); |
| 308 unittest.expect(o.selfLink, unittest.equals('foo')); | 343 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 309 unittest.expect(o.startTime, unittest.equals('foo')); | 344 unittest.expect(o.startTime, unittest.equals('foo')); |
| 310 unittest.expect(o.status, unittest.equals('foo')); | 345 unittest.expect(o.status, unittest.equals('foo')); |
| 311 unittest.expect(o.statusMessage, unittest.equals('foo')); | 346 unittest.expect(o.statusMessage, unittest.equals('foo')); |
| 312 unittest.expect(o.targetId, unittest.equals('foo')); | 347 unittest.expect(o.targetId, unittest.equals('foo')); |
| 313 unittest.expect(o.targetLink, unittest.equals('foo')); | 348 unittest.expect(o.targetLink, unittest.equals('foo')); |
| 314 unittest.expect(o.user, unittest.equals('foo')); | 349 unittest.expect(o.user, unittest.equals('foo')); |
| 315 checkUnnamed1616(o.warnings); | 350 checkUnnamed1748(o.warnings); |
| 316 unittest.expect(o.zone, unittest.equals('foo')); | 351 unittest.expect(o.zone, unittest.equals('foo')); |
| 317 } | 352 } |
| 318 buildCounterOperation--; | 353 buildCounterOperation--; |
| 319 } | 354 } |
| 320 | 355 |
| 321 core.int buildCounterRollingUpdateErrorErrors = 0; | 356 core.int buildCounterRollingUpdateErrorErrors = 0; |
| 322 buildRollingUpdateErrorErrors() { | 357 buildRollingUpdateErrorErrors() { |
| 323 var o = new api.RollingUpdateErrorErrors(); | 358 var o = new api.RollingUpdateErrorErrors(); |
| 324 buildCounterRollingUpdateErrorErrors++; | 359 buildCounterRollingUpdateErrorErrors++; |
| 325 if (buildCounterRollingUpdateErrorErrors < 3) { | 360 if (buildCounterRollingUpdateErrorErrors < 3) { |
| 326 o.code = "foo"; | 361 o.code = "foo"; |
| 327 o.location = "foo"; | 362 o.location = "foo"; |
| 328 o.message = "foo"; | 363 o.message = "foo"; |
| 329 } | 364 } |
| 330 buildCounterRollingUpdateErrorErrors--; | 365 buildCounterRollingUpdateErrorErrors--; |
| 331 return o; | 366 return o; |
| 332 } | 367 } |
| 333 | 368 |
| 334 checkRollingUpdateErrorErrors(api.RollingUpdateErrorErrors o) { | 369 checkRollingUpdateErrorErrors(api.RollingUpdateErrorErrors o) { |
| 335 buildCounterRollingUpdateErrorErrors++; | 370 buildCounterRollingUpdateErrorErrors++; |
| 336 if (buildCounterRollingUpdateErrorErrors < 3) { | 371 if (buildCounterRollingUpdateErrorErrors < 3) { |
| 337 unittest.expect(o.code, unittest.equals('foo')); | 372 unittest.expect(o.code, unittest.equals('foo')); |
| 338 unittest.expect(o.location, unittest.equals('foo')); | 373 unittest.expect(o.location, unittest.equals('foo')); |
| 339 unittest.expect(o.message, unittest.equals('foo')); | 374 unittest.expect(o.message, unittest.equals('foo')); |
| 340 } | 375 } |
| 341 buildCounterRollingUpdateErrorErrors--; | 376 buildCounterRollingUpdateErrorErrors--; |
| 342 } | 377 } |
| 343 | 378 |
| 344 buildUnnamed1617() { | 379 buildUnnamed1749() { |
| 345 var o = new core.List<api.RollingUpdateErrorErrors>(); | 380 var o = new core.List<api.RollingUpdateErrorErrors>(); |
| 346 o.add(buildRollingUpdateErrorErrors()); | 381 o.add(buildRollingUpdateErrorErrors()); |
| 347 o.add(buildRollingUpdateErrorErrors()); | 382 o.add(buildRollingUpdateErrorErrors()); |
| 348 return o; | 383 return o; |
| 349 } | 384 } |
| 350 | 385 |
| 351 checkUnnamed1617(core.List<api.RollingUpdateErrorErrors> o) { | 386 checkUnnamed1749(core.List<api.RollingUpdateErrorErrors> o) { |
| 352 unittest.expect(o, unittest.hasLength(2)); | 387 unittest.expect(o, unittest.hasLength(2)); |
| 353 checkRollingUpdateErrorErrors(o[0]); | 388 checkRollingUpdateErrorErrors(o[0]); |
| 354 checkRollingUpdateErrorErrors(o[1]); | 389 checkRollingUpdateErrorErrors(o[1]); |
| 355 } | 390 } |
| 356 | 391 |
| 357 core.int buildCounterRollingUpdateError = 0; | 392 core.int buildCounterRollingUpdateError = 0; |
| 358 buildRollingUpdateError() { | 393 buildRollingUpdateError() { |
| 359 var o = new api.RollingUpdateError(); | 394 var o = new api.RollingUpdateError(); |
| 360 buildCounterRollingUpdateError++; | 395 buildCounterRollingUpdateError++; |
| 361 if (buildCounterRollingUpdateError < 3) { | 396 if (buildCounterRollingUpdateError < 3) { |
| 362 o.errors = buildUnnamed1617(); | 397 o.errors = buildUnnamed1749(); |
| 363 } | 398 } |
| 364 buildCounterRollingUpdateError--; | 399 buildCounterRollingUpdateError--; |
| 365 return o; | 400 return o; |
| 366 } | 401 } |
| 367 | 402 |
| 368 checkRollingUpdateError(api.RollingUpdateError o) { | 403 checkRollingUpdateError(api.RollingUpdateError o) { |
| 369 buildCounterRollingUpdateError++; | 404 buildCounterRollingUpdateError++; |
| 370 if (buildCounterRollingUpdateError < 3) { | 405 if (buildCounterRollingUpdateError < 3) { |
| 371 checkUnnamed1617(o.errors); | 406 checkUnnamed1749(o.errors); |
| 372 } | 407 } |
| 373 buildCounterRollingUpdateError--; | 408 buildCounterRollingUpdateError--; |
| 374 } | 409 } |
| 375 | 410 |
| 376 core.int buildCounterRollingUpdatePolicyCanary = 0; | 411 buildUnnamed1750() { |
| 377 buildRollingUpdatePolicyCanary() { | 412 var o = new core.List<core.String>(); |
| 378 var o = new api.RollingUpdatePolicyCanary(); | 413 o.add("foo"); |
| 379 buildCounterRollingUpdatePolicyCanary++; | 414 o.add("foo"); |
| 380 if (buildCounterRollingUpdatePolicyCanary < 3) { | |
| 381 o.numInstances = 42; | |
| 382 } | |
| 383 buildCounterRollingUpdatePolicyCanary--; | |
| 384 return o; | 415 return o; |
| 385 } | 416 } |
| 386 | 417 |
| 387 checkRollingUpdatePolicyCanary(api.RollingUpdatePolicyCanary o) { | 418 checkUnnamed1750(core.List<core.String> o) { |
| 388 buildCounterRollingUpdatePolicyCanary++; | 419 unittest.expect(o, unittest.hasLength(2)); |
| 389 if (buildCounterRollingUpdatePolicyCanary < 3) { | 420 unittest.expect(o[0], unittest.equals('foo')); |
| 390 unittest.expect(o.numInstances, unittest.equals(42)); | 421 unittest.expect(o[1], unittest.equals('foo')); |
| 391 } | |
| 392 buildCounterRollingUpdatePolicyCanary--; | |
| 393 } | 422 } |
| 394 | 423 |
| 395 core.int buildCounterRollingUpdatePolicy = 0; | 424 core.int buildCounterRollingUpdatePolicy = 0; |
| 396 buildRollingUpdatePolicy() { | 425 buildRollingUpdatePolicy() { |
| 397 var o = new api.RollingUpdatePolicy(); | 426 var o = new api.RollingUpdatePolicy(); |
| 398 buildCounterRollingUpdatePolicy++; | 427 buildCounterRollingUpdatePolicy++; |
| 399 if (buildCounterRollingUpdatePolicy < 3) { | 428 if (buildCounterRollingUpdatePolicy < 3) { |
| 400 o.autoPauseAfterInstances = 42; | 429 o.autoPauseAfterInstances = 42; |
| 401 o.canary = buildRollingUpdatePolicyCanary(); | |
| 402 o.instanceStartupTimeoutSec = 42; | 430 o.instanceStartupTimeoutSec = 42; |
| 403 o.maxNumConcurrentInstances = 42; | 431 o.maxNumConcurrentInstances = 42; |
| 404 o.maxNumFailedInstances = 42; | 432 o.maxNumFailedInstances = 42; |
| 405 o.minInstanceUpdateTimeSec = 42; | 433 o.minInstanceUpdateTimeSec = 42; |
| 406 o.sleepAfterInstanceRestartSec = 42; | 434 o.sleepAfterInstanceRestartSec = 42; |
| 407 } | 435 } |
| 408 buildCounterRollingUpdatePolicy--; | 436 buildCounterRollingUpdatePolicy--; |
| 409 return o; | 437 return o; |
| 410 } | 438 } |
| 411 | 439 |
| 412 checkRollingUpdatePolicy(api.RollingUpdatePolicy o) { | 440 checkRollingUpdatePolicy(api.RollingUpdatePolicy o) { |
| 413 buildCounterRollingUpdatePolicy++; | 441 buildCounterRollingUpdatePolicy++; |
| 414 if (buildCounterRollingUpdatePolicy < 3) { | 442 if (buildCounterRollingUpdatePolicy < 3) { |
| 415 unittest.expect(o.autoPauseAfterInstances, unittest.equals(42)); | 443 unittest.expect(o.autoPauseAfterInstances, unittest.equals(42)); |
| 416 checkRollingUpdatePolicyCanary(o.canary); | |
| 417 unittest.expect(o.instanceStartupTimeoutSec, unittest.equals(42)); | 444 unittest.expect(o.instanceStartupTimeoutSec, unittest.equals(42)); |
| 418 unittest.expect(o.maxNumConcurrentInstances, unittest.equals(42)); | 445 unittest.expect(o.maxNumConcurrentInstances, unittest.equals(42)); |
| 419 unittest.expect(o.maxNumFailedInstances, unittest.equals(42)); | 446 unittest.expect(o.maxNumFailedInstances, unittest.equals(42)); |
| 420 unittest.expect(o.minInstanceUpdateTimeSec, unittest.equals(42)); | 447 unittest.expect(o.minInstanceUpdateTimeSec, unittest.equals(42)); |
| 421 unittest.expect(o.sleepAfterInstanceRestartSec, unittest.equals(42)); | 448 unittest.expect(o.sleepAfterInstanceRestartSec, unittest.equals(42)); |
| 422 } | 449 } |
| 423 buildCounterRollingUpdatePolicy--; | 450 buildCounterRollingUpdatePolicy--; |
| 424 } | 451 } |
| 425 | 452 |
| 426 core.int buildCounterRollingUpdate = 0; | 453 core.int buildCounterRollingUpdate = 0; |
| 427 buildRollingUpdate() { | 454 buildRollingUpdate() { |
| 428 var o = new api.RollingUpdate(); | 455 var o = new api.RollingUpdate(); |
| 429 buildCounterRollingUpdate++; | 456 buildCounterRollingUpdate++; |
| 430 if (buildCounterRollingUpdate < 3) { | 457 if (buildCounterRollingUpdate < 3) { |
| 431 o.actionType = "foo"; | 458 o.actionType = "foo"; |
| 432 o.creationTimestamp = "foo"; | 459 o.creationTimestamp = "foo"; |
| 433 o.description = "foo"; | 460 o.description = "foo"; |
| 434 o.error = buildRollingUpdateError(); | 461 o.error = buildRollingUpdateError(); |
| 435 o.id = "foo"; | 462 o.id = "foo"; |
| 436 o.instanceGroup = "foo"; | 463 o.instanceGroup = "foo"; |
| 437 o.instanceGroupManager = "foo"; | 464 o.instanceGroupManager = "foo"; |
| 438 o.instanceTemplate = "foo"; | 465 o.instanceTemplate = "foo"; |
| 466 o.instances = buildUnnamed1750(); |
| 439 o.kind = "foo"; | 467 o.kind = "foo"; |
| 440 o.policy = buildRollingUpdatePolicy(); | 468 o.policy = buildRollingUpdatePolicy(); |
| 441 o.progress = 42; | 469 o.progress = 42; |
| 442 o.selfLink = "foo"; | 470 o.selfLink = "foo"; |
| 443 o.status = "foo"; | 471 o.status = "foo"; |
| 444 o.statusMessage = "foo"; | 472 o.statusMessage = "foo"; |
| 445 o.user = "foo"; | 473 o.user = "foo"; |
| 446 } | 474 } |
| 447 buildCounterRollingUpdate--; | 475 buildCounterRollingUpdate--; |
| 448 return o; | 476 return o; |
| 449 } | 477 } |
| 450 | 478 |
| 451 checkRollingUpdate(api.RollingUpdate o) { | 479 checkRollingUpdate(api.RollingUpdate o) { |
| 452 buildCounterRollingUpdate++; | 480 buildCounterRollingUpdate++; |
| 453 if (buildCounterRollingUpdate < 3) { | 481 if (buildCounterRollingUpdate < 3) { |
| 454 unittest.expect(o.actionType, unittest.equals('foo')); | 482 unittest.expect(o.actionType, unittest.equals('foo')); |
| 455 unittest.expect(o.creationTimestamp, unittest.equals('foo')); | 483 unittest.expect(o.creationTimestamp, unittest.equals('foo')); |
| 456 unittest.expect(o.description, unittest.equals('foo')); | 484 unittest.expect(o.description, unittest.equals('foo')); |
| 457 checkRollingUpdateError(o.error); | 485 checkRollingUpdateError(o.error); |
| 458 unittest.expect(o.id, unittest.equals('foo')); | 486 unittest.expect(o.id, unittest.equals('foo')); |
| 459 unittest.expect(o.instanceGroup, unittest.equals('foo')); | 487 unittest.expect(o.instanceGroup, unittest.equals('foo')); |
| 460 unittest.expect(o.instanceGroupManager, unittest.equals('foo')); | 488 unittest.expect(o.instanceGroupManager, unittest.equals('foo')); |
| 461 unittest.expect(o.instanceTemplate, unittest.equals('foo')); | 489 unittest.expect(o.instanceTemplate, unittest.equals('foo')); |
| 490 checkUnnamed1750(o.instances); |
| 462 unittest.expect(o.kind, unittest.equals('foo')); | 491 unittest.expect(o.kind, unittest.equals('foo')); |
| 463 checkRollingUpdatePolicy(o.policy); | 492 checkRollingUpdatePolicy(o.policy); |
| 464 unittest.expect(o.progress, unittest.equals(42)); | 493 unittest.expect(o.progress, unittest.equals(42)); |
| 465 unittest.expect(o.selfLink, unittest.equals('foo')); | 494 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 466 unittest.expect(o.status, unittest.equals('foo')); | 495 unittest.expect(o.status, unittest.equals('foo')); |
| 467 unittest.expect(o.statusMessage, unittest.equals('foo')); | 496 unittest.expect(o.statusMessage, unittest.equals('foo')); |
| 468 unittest.expect(o.user, unittest.equals('foo')); | 497 unittest.expect(o.user, unittest.equals('foo')); |
| 469 } | 498 } |
| 470 buildCounterRollingUpdate--; | 499 buildCounterRollingUpdate--; |
| 471 } | 500 } |
| 472 | 501 |
| 473 buildUnnamed1618() { | 502 buildUnnamed1751() { |
| 474 var o = new core.List<api.RollingUpdate>(); | 503 var o = new core.List<api.RollingUpdate>(); |
| 475 o.add(buildRollingUpdate()); | 504 o.add(buildRollingUpdate()); |
| 476 o.add(buildRollingUpdate()); | 505 o.add(buildRollingUpdate()); |
| 477 return o; | 506 return o; |
| 478 } | 507 } |
| 479 | 508 |
| 480 checkUnnamed1618(core.List<api.RollingUpdate> o) { | 509 checkUnnamed1751(core.List<api.RollingUpdate> o) { |
| 481 unittest.expect(o, unittest.hasLength(2)); | 510 unittest.expect(o, unittest.hasLength(2)); |
| 482 checkRollingUpdate(o[0]); | 511 checkRollingUpdate(o[0]); |
| 483 checkRollingUpdate(o[1]); | 512 checkRollingUpdate(o[1]); |
| 484 } | 513 } |
| 485 | 514 |
| 486 core.int buildCounterRollingUpdateList = 0; | 515 core.int buildCounterRollingUpdateList = 0; |
| 487 buildRollingUpdateList() { | 516 buildRollingUpdateList() { |
| 488 var o = new api.RollingUpdateList(); | 517 var o = new api.RollingUpdateList(); |
| 489 buildCounterRollingUpdateList++; | 518 buildCounterRollingUpdateList++; |
| 490 if (buildCounterRollingUpdateList < 3) { | 519 if (buildCounterRollingUpdateList < 3) { |
| 491 o.items = buildUnnamed1618(); | 520 o.items = buildUnnamed1751(); |
| 492 o.kind = "foo"; | 521 o.kind = "foo"; |
| 493 o.nextPageToken = "foo"; | 522 o.nextPageToken = "foo"; |
| 494 o.selfLink = "foo"; | 523 o.selfLink = "foo"; |
| 495 } | 524 } |
| 496 buildCounterRollingUpdateList--; | 525 buildCounterRollingUpdateList--; |
| 497 return o; | 526 return o; |
| 498 } | 527 } |
| 499 | 528 |
| 500 checkRollingUpdateList(api.RollingUpdateList o) { | 529 checkRollingUpdateList(api.RollingUpdateList o) { |
| 501 buildCounterRollingUpdateList++; | 530 buildCounterRollingUpdateList++; |
| 502 if (buildCounterRollingUpdateList < 3) { | 531 if (buildCounterRollingUpdateList < 3) { |
| 503 checkUnnamed1618(o.items); | 532 checkUnnamed1751(o.items); |
| 504 unittest.expect(o.kind, unittest.equals('foo')); | 533 unittest.expect(o.kind, unittest.equals('foo')); |
| 505 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 534 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 506 unittest.expect(o.selfLink, unittest.equals('foo')); | 535 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 507 } | 536 } |
| 508 buildCounterRollingUpdateList--; | 537 buildCounterRollingUpdateList--; |
| 509 } | 538 } |
| 510 | 539 |
| 511 | 540 |
| 512 main() { | 541 main() { |
| 513 unittest.group("obj-schema-InstanceUpdateErrorErrors", () { | 542 unittest.group("obj-schema-InstanceUpdateErrorErrors", () { |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 602 | 631 |
| 603 unittest.group("obj-schema-RollingUpdateError", () { | 632 unittest.group("obj-schema-RollingUpdateError", () { |
| 604 unittest.test("to-json--from-json", () { | 633 unittest.test("to-json--from-json", () { |
| 605 var o = buildRollingUpdateError(); | 634 var o = buildRollingUpdateError(); |
| 606 var od = new api.RollingUpdateError.fromJson(o.toJson()); | 635 var od = new api.RollingUpdateError.fromJson(o.toJson()); |
| 607 checkRollingUpdateError(od); | 636 checkRollingUpdateError(od); |
| 608 }); | 637 }); |
| 609 }); | 638 }); |
| 610 | 639 |
| 611 | 640 |
| 612 unittest.group("obj-schema-RollingUpdatePolicyCanary", () { | |
| 613 unittest.test("to-json--from-json", () { | |
| 614 var o = buildRollingUpdatePolicyCanary(); | |
| 615 var od = new api.RollingUpdatePolicyCanary.fromJson(o.toJson()); | |
| 616 checkRollingUpdatePolicyCanary(od); | |
| 617 }); | |
| 618 }); | |
| 619 | |
| 620 | |
| 621 unittest.group("obj-schema-RollingUpdatePolicy", () { | 641 unittest.group("obj-schema-RollingUpdatePolicy", () { |
| 622 unittest.test("to-json--from-json", () { | 642 unittest.test("to-json--from-json", () { |
| 623 var o = buildRollingUpdatePolicy(); | 643 var o = buildRollingUpdatePolicy(); |
| 624 var od = new api.RollingUpdatePolicy.fromJson(o.toJson()); | 644 var od = new api.RollingUpdatePolicy.fromJson(o.toJson()); |
| 625 checkRollingUpdatePolicy(od); | 645 checkRollingUpdatePolicy(od); |
| 626 }); | 646 }); |
| 627 }); | 647 }); |
| 628 | 648 |
| 629 | 649 |
| 630 unittest.group("obj-schema-RollingUpdate", () { | 650 unittest.group("obj-schema-RollingUpdate", () { |
| (...skipping 10 matching lines...) Expand all Loading... |
| 641 var o = buildRollingUpdateList(); | 661 var o = buildRollingUpdateList(); |
| 642 var od = new api.RollingUpdateList.fromJson(o.toJson()); | 662 var od = new api.RollingUpdateList.fromJson(o.toJson()); |
| 643 checkRollingUpdateList(od); | 663 checkRollingUpdateList(od); |
| 644 }); | 664 }); |
| 645 }); | 665 }); |
| 646 | 666 |
| 647 | 667 |
| 648 unittest.group("resource-RollingUpdatesResourceApi", () { | 668 unittest.group("resource-RollingUpdatesResourceApi", () { |
| 649 unittest.test("method--cancel", () { | 669 unittest.test("method--cancel", () { |
| 650 | 670 |
| 651 var mock = new common_test.HttpServerMock(); | 671 var mock = new HttpServerMock(); |
| 652 api.RollingUpdatesResourceApi res = new api.ReplicapoolupdaterApi(mock).ro
llingUpdates; | 672 api.RollingUpdatesResourceApi res = new api.ReplicapoolupdaterApi(mock).ro
llingUpdates; |
| 653 var arg_project = "foo"; | 673 var arg_project = "foo"; |
| 654 var arg_zone = "foo"; | 674 var arg_zone = "foo"; |
| 655 var arg_rollingUpdate = "foo"; | 675 var arg_rollingUpdate = "foo"; |
| 656 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 676 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 657 var path = (req.url).path; | 677 var path = (req.url).path; |
| 658 var pathOffset = 0; | 678 var pathOffset = 0; |
| 659 var index; | 679 var index; |
| 660 var subPart; | 680 var subPart; |
| 661 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 681 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| (...skipping 14 matching lines...) Expand all Loading... |
| 676 var keyvalue = part.split("="); | 696 var keyvalue = part.split("="); |
| 677 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 697 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 678 } | 698 } |
| 679 } | 699 } |
| 680 | 700 |
| 681 | 701 |
| 682 var h = { | 702 var h = { |
| 683 "content-type" : "application/json; charset=utf-8", | 703 "content-type" : "application/json; charset=utf-8", |
| 684 }; | 704 }; |
| 685 var resp = convert.JSON.encode(buildOperation()); | 705 var resp = convert.JSON.encode(buildOperation()); |
| 686 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 706 return new async.Future.value(stringResponse(200, h, resp)); |
| 687 }), true); | 707 }), true); |
| 688 res.cancel(arg_project, arg_zone, arg_rollingUpdate).then(unittest.expectA
sync(((api.Operation response) { | 708 res.cancel(arg_project, arg_zone, arg_rollingUpdate).then(unittest.expectA
sync(((api.Operation response) { |
| 689 checkOperation(response); | 709 checkOperation(response); |
| 690 }))); | 710 }))); |
| 691 }); | 711 }); |
| 692 | 712 |
| 693 unittest.test("method--get", () { | 713 unittest.test("method--get", () { |
| 694 | 714 |
| 695 var mock = new common_test.HttpServerMock(); | 715 var mock = new HttpServerMock(); |
| 696 api.RollingUpdatesResourceApi res = new api.ReplicapoolupdaterApi(mock).ro
llingUpdates; | 716 api.RollingUpdatesResourceApi res = new api.ReplicapoolupdaterApi(mock).ro
llingUpdates; |
| 697 var arg_project = "foo"; | 717 var arg_project = "foo"; |
| 698 var arg_zone = "foo"; | 718 var arg_zone = "foo"; |
| 699 var arg_rollingUpdate = "foo"; | 719 var arg_rollingUpdate = "foo"; |
| 700 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 720 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 701 var path = (req.url).path; | 721 var path = (req.url).path; |
| 702 var pathOffset = 0; | 722 var pathOffset = 0; |
| 703 var index; | 723 var index; |
| 704 var subPart; | 724 var subPart; |
| 705 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 725 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| (...skipping 14 matching lines...) Expand all Loading... |
| 720 var keyvalue = part.split("="); | 740 var keyvalue = part.split("="); |
| 721 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 741 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 722 } | 742 } |
| 723 } | 743 } |
| 724 | 744 |
| 725 | 745 |
| 726 var h = { | 746 var h = { |
| 727 "content-type" : "application/json; charset=utf-8", | 747 "content-type" : "application/json; charset=utf-8", |
| 728 }; | 748 }; |
| 729 var resp = convert.JSON.encode(buildRollingUpdate()); | 749 var resp = convert.JSON.encode(buildRollingUpdate()); |
| 730 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 750 return new async.Future.value(stringResponse(200, h, resp)); |
| 731 }), true); | 751 }), true); |
| 732 res.get(arg_project, arg_zone, arg_rollingUpdate).then(unittest.expectAsyn
c(((api.RollingUpdate response) { | 752 res.get(arg_project, arg_zone, arg_rollingUpdate).then(unittest.expectAsyn
c(((api.RollingUpdate response) { |
| 733 checkRollingUpdate(response); | 753 checkRollingUpdate(response); |
| 734 }))); | 754 }))); |
| 735 }); | 755 }); |
| 736 | 756 |
| 737 unittest.test("method--insert", () { | 757 unittest.test("method--insert", () { |
| 738 | 758 |
| 739 var mock = new common_test.HttpServerMock(); | 759 var mock = new HttpServerMock(); |
| 740 api.RollingUpdatesResourceApi res = new api.ReplicapoolupdaterApi(mock).ro
llingUpdates; | 760 api.RollingUpdatesResourceApi res = new api.ReplicapoolupdaterApi(mock).ro
llingUpdates; |
| 741 var arg_request = buildRollingUpdate(); | 761 var arg_request = buildRollingUpdate(); |
| 742 var arg_project = "foo"; | 762 var arg_project = "foo"; |
| 743 var arg_zone = "foo"; | 763 var arg_zone = "foo"; |
| 744 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 764 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 745 var obj = new api.RollingUpdate.fromJson(json); | 765 var obj = new api.RollingUpdate.fromJson(json); |
| 746 checkRollingUpdate(obj); | 766 checkRollingUpdate(obj); |
| 747 | 767 |
| 748 var path = (req.url).path; | 768 var path = (req.url).path; |
| 749 var pathOffset = 0; | 769 var pathOffset = 0; |
| (...skipping 17 matching lines...) Expand all Loading... |
| 767 var keyvalue = part.split("="); | 787 var keyvalue = part.split("="); |
| 768 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 788 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 769 } | 789 } |
| 770 } | 790 } |
| 771 | 791 |
| 772 | 792 |
| 773 var h = { | 793 var h = { |
| 774 "content-type" : "application/json; charset=utf-8", | 794 "content-type" : "application/json; charset=utf-8", |
| 775 }; | 795 }; |
| 776 var resp = convert.JSON.encode(buildOperation()); | 796 var resp = convert.JSON.encode(buildOperation()); |
| 777 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 797 return new async.Future.value(stringResponse(200, h, resp)); |
| 778 }), true); | 798 }), true); |
| 779 res.insert(arg_request, arg_project, arg_zone).then(unittest.expectAsync((
(api.Operation response) { | 799 res.insert(arg_request, arg_project, arg_zone).then(unittest.expectAsync((
(api.Operation response) { |
| 780 checkOperation(response); | 800 checkOperation(response); |
| 781 }))); | 801 }))); |
| 782 }); | 802 }); |
| 783 | 803 |
| 784 unittest.test("method--list", () { | 804 unittest.test("method--list", () { |
| 785 | 805 |
| 786 var mock = new common_test.HttpServerMock(); | 806 var mock = new HttpServerMock(); |
| 787 api.RollingUpdatesResourceApi res = new api.ReplicapoolupdaterApi(mock).ro
llingUpdates; | 807 api.RollingUpdatesResourceApi res = new api.ReplicapoolupdaterApi(mock).ro
llingUpdates; |
| 788 var arg_project = "foo"; | 808 var arg_project = "foo"; |
| 789 var arg_zone = "foo"; | 809 var arg_zone = "foo"; |
| 790 var arg_filter = "foo"; | 810 var arg_filter = "foo"; |
| 791 var arg_instanceGroupManager = "foo"; | 811 var arg_instanceGroupManager = "foo"; |
| 792 var arg_maxResults = 42; | 812 var arg_maxResults = 42; |
| 793 var arg_pageToken = "foo"; | 813 var arg_pageToken = "foo"; |
| 794 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 814 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 795 var path = (req.url).path; | 815 var path = (req.url).path; |
| 796 var pathOffset = 0; | 816 var pathOffset = 0; |
| (...skipping 21 matching lines...) Expand all Loading... |
| 818 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); | 838 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); |
| 819 unittest.expect(queryMap["instanceGroupManager"].first, unittest.equals(
arg_instanceGroupManager)); | 839 unittest.expect(queryMap["instanceGroupManager"].first, unittest.equals(
arg_instanceGroupManager)); |
| 820 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); | 840 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
| 821 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 841 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 822 | 842 |
| 823 | 843 |
| 824 var h = { | 844 var h = { |
| 825 "content-type" : "application/json; charset=utf-8", | 845 "content-type" : "application/json; charset=utf-8", |
| 826 }; | 846 }; |
| 827 var resp = convert.JSON.encode(buildRollingUpdateList()); | 847 var resp = convert.JSON.encode(buildRollingUpdateList()); |
| 828 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 848 return new async.Future.value(stringResponse(200, h, resp)); |
| 829 }), true); | 849 }), true); |
| 830 res.list(arg_project, arg_zone, filter: arg_filter, instanceGroupManager:
arg_instanceGroupManager, maxResults: arg_maxResults, pageToken: arg_pageToken).
then(unittest.expectAsync(((api.RollingUpdateList response) { | 850 res.list(arg_project, arg_zone, filter: arg_filter, instanceGroupManager:
arg_instanceGroupManager, maxResults: arg_maxResults, pageToken: arg_pageToken).
then(unittest.expectAsync(((api.RollingUpdateList response) { |
| 831 checkRollingUpdateList(response); | 851 checkRollingUpdateList(response); |
| 832 }))); | 852 }))); |
| 833 }); | 853 }); |
| 834 | 854 |
| 835 unittest.test("method--listInstanceUpdates", () { | 855 unittest.test("method--listInstanceUpdates", () { |
| 836 | 856 |
| 837 var mock = new common_test.HttpServerMock(); | 857 var mock = new HttpServerMock(); |
| 838 api.RollingUpdatesResourceApi res = new api.ReplicapoolupdaterApi(mock).ro
llingUpdates; | 858 api.RollingUpdatesResourceApi res = new api.ReplicapoolupdaterApi(mock).ro
llingUpdates; |
| 839 var arg_project = "foo"; | 859 var arg_project = "foo"; |
| 840 var arg_zone = "foo"; | 860 var arg_zone = "foo"; |
| 841 var arg_rollingUpdate = "foo"; | 861 var arg_rollingUpdate = "foo"; |
| 842 var arg_filter = "foo"; | 862 var arg_filter = "foo"; |
| 843 var arg_maxResults = 42; | 863 var arg_maxResults = 42; |
| 844 var arg_pageToken = "foo"; | 864 var arg_pageToken = "foo"; |
| 845 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 865 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 846 var path = (req.url).path; | 866 var path = (req.url).path; |
| 847 var pathOffset = 0; | 867 var pathOffset = 0; |
| (...skipping 20 matching lines...) Expand all Loading... |
| 868 } | 888 } |
| 869 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); | 889 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); |
| 870 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); | 890 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
| 871 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 891 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 872 | 892 |
| 873 | 893 |
| 874 var h = { | 894 var h = { |
| 875 "content-type" : "application/json; charset=utf-8", | 895 "content-type" : "application/json; charset=utf-8", |
| 876 }; | 896 }; |
| 877 var resp = convert.JSON.encode(buildInstanceUpdateList()); | 897 var resp = convert.JSON.encode(buildInstanceUpdateList()); |
| 878 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 898 return new async.Future.value(stringResponse(200, h, resp)); |
| 879 }), true); | 899 }), true); |
| 880 res.listInstanceUpdates(arg_project, arg_zone, arg_rollingUpdate, filter:
arg_filter, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.
expectAsync(((api.InstanceUpdateList response) { | 900 res.listInstanceUpdates(arg_project, arg_zone, arg_rollingUpdate, filter:
arg_filter, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.
expectAsync(((api.InstanceUpdateList response) { |
| 881 checkInstanceUpdateList(response); | 901 checkInstanceUpdateList(response); |
| 882 }))); | 902 }))); |
| 883 }); | 903 }); |
| 884 | 904 |
| 885 unittest.test("method--pause", () { | 905 unittest.test("method--pause", () { |
| 886 | 906 |
| 887 var mock = new common_test.HttpServerMock(); | 907 var mock = new HttpServerMock(); |
| 888 api.RollingUpdatesResourceApi res = new api.ReplicapoolupdaterApi(mock).ro
llingUpdates; | 908 api.RollingUpdatesResourceApi res = new api.ReplicapoolupdaterApi(mock).ro
llingUpdates; |
| 889 var arg_project = "foo"; | 909 var arg_project = "foo"; |
| 890 var arg_zone = "foo"; | 910 var arg_zone = "foo"; |
| 891 var arg_rollingUpdate = "foo"; | 911 var arg_rollingUpdate = "foo"; |
| 892 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 912 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 893 var path = (req.url).path; | 913 var path = (req.url).path; |
| 894 var pathOffset = 0; | 914 var pathOffset = 0; |
| 895 var index; | 915 var index; |
| 896 var subPart; | 916 var subPart; |
| 897 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 917 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| (...skipping 14 matching lines...) Expand all Loading... |
| 912 var keyvalue = part.split("="); | 932 var keyvalue = part.split("="); |
| 913 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 933 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 914 } | 934 } |
| 915 } | 935 } |
| 916 | 936 |
| 917 | 937 |
| 918 var h = { | 938 var h = { |
| 919 "content-type" : "application/json; charset=utf-8", | 939 "content-type" : "application/json; charset=utf-8", |
| 920 }; | 940 }; |
| 921 var resp = convert.JSON.encode(buildOperation()); | 941 var resp = convert.JSON.encode(buildOperation()); |
| 922 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 942 return new async.Future.value(stringResponse(200, h, resp)); |
| 923 }), true); | 943 }), true); |
| 924 res.pause(arg_project, arg_zone, arg_rollingUpdate).then(unittest.expectAs
ync(((api.Operation response) { | 944 res.pause(arg_project, arg_zone, arg_rollingUpdate).then(unittest.expectAs
ync(((api.Operation response) { |
| 925 checkOperation(response); | 945 checkOperation(response); |
| 926 }))); | 946 }))); |
| 927 }); | 947 }); |
| 928 | 948 |
| 929 unittest.test("method--resume", () { | 949 unittest.test("method--resume", () { |
| 930 | 950 |
| 931 var mock = new common_test.HttpServerMock(); | 951 var mock = new HttpServerMock(); |
| 932 api.RollingUpdatesResourceApi res = new api.ReplicapoolupdaterApi(mock).ro
llingUpdates; | 952 api.RollingUpdatesResourceApi res = new api.ReplicapoolupdaterApi(mock).ro
llingUpdates; |
| 933 var arg_project = "foo"; | 953 var arg_project = "foo"; |
| 934 var arg_zone = "foo"; | 954 var arg_zone = "foo"; |
| 935 var arg_rollingUpdate = "foo"; | 955 var arg_rollingUpdate = "foo"; |
| 936 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 956 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 937 var path = (req.url).path; | 957 var path = (req.url).path; |
| 938 var pathOffset = 0; | 958 var pathOffset = 0; |
| 939 var index; | 959 var index; |
| 940 var subPart; | 960 var subPart; |
| 941 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 961 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| (...skipping 14 matching lines...) Expand all Loading... |
| 956 var keyvalue = part.split("="); | 976 var keyvalue = part.split("="); |
| 957 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 977 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 958 } | 978 } |
| 959 } | 979 } |
| 960 | 980 |
| 961 | 981 |
| 962 var h = { | 982 var h = { |
| 963 "content-type" : "application/json; charset=utf-8", | 983 "content-type" : "application/json; charset=utf-8", |
| 964 }; | 984 }; |
| 965 var resp = convert.JSON.encode(buildOperation()); | 985 var resp = convert.JSON.encode(buildOperation()); |
| 966 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 986 return new async.Future.value(stringResponse(200, h, resp)); |
| 967 }), true); | 987 }), true); |
| 968 res.resume(arg_project, arg_zone, arg_rollingUpdate).then(unittest.expectA
sync(((api.Operation response) { | 988 res.resume(arg_project, arg_zone, arg_rollingUpdate).then(unittest.expectA
sync(((api.Operation response) { |
| 969 checkOperation(response); | 989 checkOperation(response); |
| 970 }))); | 990 }))); |
| 971 }); | 991 }); |
| 972 | 992 |
| 973 unittest.test("method--rollback", () { | 993 unittest.test("method--rollback", () { |
| 974 | 994 |
| 975 var mock = new common_test.HttpServerMock(); | 995 var mock = new HttpServerMock(); |
| 976 api.RollingUpdatesResourceApi res = new api.ReplicapoolupdaterApi(mock).ro
llingUpdates; | 996 api.RollingUpdatesResourceApi res = new api.ReplicapoolupdaterApi(mock).ro
llingUpdates; |
| 977 var arg_project = "foo"; | 997 var arg_project = "foo"; |
| 978 var arg_zone = "foo"; | 998 var arg_zone = "foo"; |
| 979 var arg_rollingUpdate = "foo"; | 999 var arg_rollingUpdate = "foo"; |
| 980 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1000 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 981 var path = (req.url).path; | 1001 var path = (req.url).path; |
| 982 var pathOffset = 0; | 1002 var pathOffset = 0; |
| 983 var index; | 1003 var index; |
| 984 var subPart; | 1004 var subPart; |
| 985 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 1005 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| (...skipping 14 matching lines...) Expand all Loading... |
| 1000 var keyvalue = part.split("="); | 1020 var keyvalue = part.split("="); |
| 1001 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 1021 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 1002 } | 1022 } |
| 1003 } | 1023 } |
| 1004 | 1024 |
| 1005 | 1025 |
| 1006 var h = { | 1026 var h = { |
| 1007 "content-type" : "application/json; charset=utf-8", | 1027 "content-type" : "application/json; charset=utf-8", |
| 1008 }; | 1028 }; |
| 1009 var resp = convert.JSON.encode(buildOperation()); | 1029 var resp = convert.JSON.encode(buildOperation()); |
| 1010 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 1030 return new async.Future.value(stringResponse(200, h, resp)); |
| 1011 }), true); | 1031 }), true); |
| 1012 res.rollback(arg_project, arg_zone, arg_rollingUpdate).then(unittest.expec
tAsync(((api.Operation response) { | 1032 res.rollback(arg_project, arg_zone, arg_rollingUpdate).then(unittest.expec
tAsync(((api.Operation response) { |
| 1013 checkOperation(response); | 1033 checkOperation(response); |
| 1014 }))); | 1034 }))); |
| 1015 }); | 1035 }); |
| 1016 | 1036 |
| 1017 }); | 1037 }); |
| 1018 | 1038 |
| 1019 | 1039 |
| 1020 unittest.group("resource-ZoneOperationsResourceApi", () { | 1040 unittest.group("resource-ZoneOperationsResourceApi", () { |
| 1021 unittest.test("method--get", () { | 1041 unittest.test("method--get", () { |
| 1022 | 1042 |
| 1023 var mock = new common_test.HttpServerMock(); | 1043 var mock = new HttpServerMock(); |
| 1024 api.ZoneOperationsResourceApi res = new api.ReplicapoolupdaterApi(mock).zo
neOperations; | 1044 api.ZoneOperationsResourceApi res = new api.ReplicapoolupdaterApi(mock).zo
neOperations; |
| 1025 var arg_project = "foo"; | 1045 var arg_project = "foo"; |
| 1026 var arg_zone = "foo"; | 1046 var arg_zone = "foo"; |
| 1027 var arg_operation = "foo"; | 1047 var arg_operation = "foo"; |
| 1028 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1048 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 1029 var path = (req.url).path; | 1049 var path = (req.url).path; |
| 1030 var pathOffset = 0; | 1050 var pathOffset = 0; |
| 1031 var index; | 1051 var index; |
| 1032 var subPart; | 1052 var subPart; |
| 1033 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 1053 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| (...skipping 14 matching lines...) Expand all Loading... |
| 1048 var keyvalue = part.split("="); | 1068 var keyvalue = part.split("="); |
| 1049 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 1069 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 1050 } | 1070 } |
| 1051 } | 1071 } |
| 1052 | 1072 |
| 1053 | 1073 |
| 1054 var h = { | 1074 var h = { |
| 1055 "content-type" : "application/json; charset=utf-8", | 1075 "content-type" : "application/json; charset=utf-8", |
| 1056 }; | 1076 }; |
| 1057 var resp = convert.JSON.encode(buildOperation()); | 1077 var resp = convert.JSON.encode(buildOperation()); |
| 1058 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 1078 return new async.Future.value(stringResponse(200, h, resp)); |
| 1059 }), true); | 1079 }), true); |
| 1060 res.get(arg_project, arg_zone, arg_operation).then(unittest.expectAsync(((
api.Operation response) { | 1080 res.get(arg_project, arg_zone, arg_operation).then(unittest.expectAsync(((
api.Operation response) { |
| 1061 checkOperation(response); | 1081 checkOperation(response); |
| 1062 }))); | 1082 }))); |
| 1063 }); | 1083 }); |
| 1064 | 1084 |
| 1065 }); | 1085 }); |
| 1066 | 1086 |
| 1067 | 1087 |
| 1068 } | 1088 } |
| 1069 | 1089 |
| OLD | NEW |