| 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; |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 checkInstanceUpdateErrorErrors(api.InstanceUpdateErrorErrors o) { | 32 checkInstanceUpdateErrorErrors(api.InstanceUpdateErrorErrors o) { |
| 33 buildCounterInstanceUpdateErrorErrors++; | 33 buildCounterInstanceUpdateErrorErrors++; |
| 34 if (buildCounterInstanceUpdateErrorErrors < 3) { | 34 if (buildCounterInstanceUpdateErrorErrors < 3) { |
| 35 unittest.expect(o.code, unittest.equals('foo')); | 35 unittest.expect(o.code, unittest.equals('foo')); |
| 36 unittest.expect(o.location, unittest.equals('foo')); | 36 unittest.expect(o.location, unittest.equals('foo')); |
| 37 unittest.expect(o.message, unittest.equals('foo')); | 37 unittest.expect(o.message, unittest.equals('foo')); |
| 38 } | 38 } |
| 39 buildCounterInstanceUpdateErrorErrors--; | 39 buildCounterInstanceUpdateErrorErrors--; |
| 40 } | 40 } |
| 41 | 41 |
| 42 buildUnnamed1743() { | 42 buildUnnamed1810() { |
| 43 var o = new core.List<api.InstanceUpdateErrorErrors>(); | 43 var o = new core.List<api.InstanceUpdateErrorErrors>(); |
| 44 o.add(buildInstanceUpdateErrorErrors()); | 44 o.add(buildInstanceUpdateErrorErrors()); |
| 45 o.add(buildInstanceUpdateErrorErrors()); | 45 o.add(buildInstanceUpdateErrorErrors()); |
| 46 return o; | 46 return o; |
| 47 } | 47 } |
| 48 | 48 |
| 49 checkUnnamed1743(core.List<api.InstanceUpdateErrorErrors> o) { | 49 checkUnnamed1810(core.List<api.InstanceUpdateErrorErrors> o) { |
| 50 unittest.expect(o, unittest.hasLength(2)); | 50 unittest.expect(o, unittest.hasLength(2)); |
| 51 checkInstanceUpdateErrorErrors(o[0]); | 51 checkInstanceUpdateErrorErrors(o[0]); |
| 52 checkInstanceUpdateErrorErrors(o[1]); | 52 checkInstanceUpdateErrorErrors(o[1]); |
| 53 } | 53 } |
| 54 | 54 |
| 55 core.int buildCounterInstanceUpdateError = 0; | 55 core.int buildCounterInstanceUpdateError = 0; |
| 56 buildInstanceUpdateError() { | 56 buildInstanceUpdateError() { |
| 57 var o = new api.InstanceUpdateError(); | 57 var o = new api.InstanceUpdateError(); |
| 58 buildCounterInstanceUpdateError++; | 58 buildCounterInstanceUpdateError++; |
| 59 if (buildCounterInstanceUpdateError < 3) { | 59 if (buildCounterInstanceUpdateError < 3) { |
| 60 o.errors = buildUnnamed1743(); | 60 o.errors = buildUnnamed1810(); |
| 61 } | 61 } |
| 62 buildCounterInstanceUpdateError--; | 62 buildCounterInstanceUpdateError--; |
| 63 return o; | 63 return o; |
| 64 } | 64 } |
| 65 | 65 |
| 66 checkInstanceUpdateError(api.InstanceUpdateError o) { | 66 checkInstanceUpdateError(api.InstanceUpdateError o) { |
| 67 buildCounterInstanceUpdateError++; | 67 buildCounterInstanceUpdateError++; |
| 68 if (buildCounterInstanceUpdateError < 3) { | 68 if (buildCounterInstanceUpdateError < 3) { |
| 69 checkUnnamed1743(o.errors); | 69 checkUnnamed1810(o.errors); |
| 70 } | 70 } |
| 71 buildCounterInstanceUpdateError--; | 71 buildCounterInstanceUpdateError--; |
| 72 } | 72 } |
| 73 | 73 |
| 74 core.int buildCounterInstanceUpdate = 0; | 74 core.int buildCounterInstanceUpdate = 0; |
| 75 buildInstanceUpdate() { | 75 buildInstanceUpdate() { |
| 76 var o = new api.InstanceUpdate(); | 76 var o = new api.InstanceUpdate(); |
| 77 buildCounterInstanceUpdate++; | 77 buildCounterInstanceUpdate++; |
| 78 if (buildCounterInstanceUpdate < 3) { | 78 if (buildCounterInstanceUpdate < 3) { |
| 79 o.error = buildInstanceUpdateError(); | 79 o.error = buildInstanceUpdateError(); |
| 80 o.instance = "foo"; | 80 o.instance = "foo"; |
| 81 o.status = "foo"; | 81 o.status = "foo"; |
| 82 } | 82 } |
| 83 buildCounterInstanceUpdate--; | 83 buildCounterInstanceUpdate--; |
| 84 return o; | 84 return o; |
| 85 } | 85 } |
| 86 | 86 |
| 87 checkInstanceUpdate(api.InstanceUpdate o) { | 87 checkInstanceUpdate(api.InstanceUpdate o) { |
| 88 buildCounterInstanceUpdate++; | 88 buildCounterInstanceUpdate++; |
| 89 if (buildCounterInstanceUpdate < 3) { | 89 if (buildCounterInstanceUpdate < 3) { |
| 90 checkInstanceUpdateError(o.error); | 90 checkInstanceUpdateError(o.error); |
| 91 unittest.expect(o.instance, unittest.equals('foo')); | 91 unittest.expect(o.instance, unittest.equals('foo')); |
| 92 unittest.expect(o.status, unittest.equals('foo')); | 92 unittest.expect(o.status, unittest.equals('foo')); |
| 93 } | 93 } |
| 94 buildCounterInstanceUpdate--; | 94 buildCounterInstanceUpdate--; |
| 95 } | 95 } |
| 96 | 96 |
| 97 buildUnnamed1744() { | 97 buildUnnamed1811() { |
| 98 var o = new core.List<api.InstanceUpdate>(); | 98 var o = new core.List<api.InstanceUpdate>(); |
| 99 o.add(buildInstanceUpdate()); | 99 o.add(buildInstanceUpdate()); |
| 100 o.add(buildInstanceUpdate()); | 100 o.add(buildInstanceUpdate()); |
| 101 return o; | 101 return o; |
| 102 } | 102 } |
| 103 | 103 |
| 104 checkUnnamed1744(core.List<api.InstanceUpdate> o) { | 104 checkUnnamed1811(core.List<api.InstanceUpdate> o) { |
| 105 unittest.expect(o, unittest.hasLength(2)); | 105 unittest.expect(o, unittest.hasLength(2)); |
| 106 checkInstanceUpdate(o[0]); | 106 checkInstanceUpdate(o[0]); |
| 107 checkInstanceUpdate(o[1]); | 107 checkInstanceUpdate(o[1]); |
| 108 } | 108 } |
| 109 | 109 |
| 110 core.int buildCounterInstanceUpdateList = 0; | 110 core.int buildCounterInstanceUpdateList = 0; |
| 111 buildInstanceUpdateList() { | 111 buildInstanceUpdateList() { |
| 112 var o = new api.InstanceUpdateList(); | 112 var o = new api.InstanceUpdateList(); |
| 113 buildCounterInstanceUpdateList++; | 113 buildCounterInstanceUpdateList++; |
| 114 if (buildCounterInstanceUpdateList < 3) { | 114 if (buildCounterInstanceUpdateList < 3) { |
| 115 o.items = buildUnnamed1744(); | 115 o.items = buildUnnamed1811(); |
| 116 o.kind = "foo"; | 116 o.kind = "foo"; |
| 117 o.nextPageToken = "foo"; | 117 o.nextPageToken = "foo"; |
| 118 o.selfLink = "foo"; | 118 o.selfLink = "foo"; |
| 119 } | 119 } |
| 120 buildCounterInstanceUpdateList--; | 120 buildCounterInstanceUpdateList--; |
| 121 return o; | 121 return o; |
| 122 } | 122 } |
| 123 | 123 |
| 124 checkInstanceUpdateList(api.InstanceUpdateList o) { | 124 checkInstanceUpdateList(api.InstanceUpdateList o) { |
| 125 buildCounterInstanceUpdateList++; | 125 buildCounterInstanceUpdateList++; |
| 126 if (buildCounterInstanceUpdateList < 3) { | 126 if (buildCounterInstanceUpdateList < 3) { |
| 127 checkUnnamed1744(o.items); | 127 checkUnnamed1811(o.items); |
| 128 unittest.expect(o.kind, unittest.equals('foo')); | 128 unittest.expect(o.kind, unittest.equals('foo')); |
| 129 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 129 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 130 unittest.expect(o.selfLink, unittest.equals('foo')); | 130 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 131 } | 131 } |
| 132 buildCounterInstanceUpdateList--; | 132 buildCounterInstanceUpdateList--; |
| 133 } | 133 } |
| 134 | 134 |
| 135 core.int buildCounterOperationErrorErrors = 0; | 135 core.int buildCounterOperationErrorErrors = 0; |
| 136 buildOperationErrorErrors() { | 136 buildOperationErrorErrors() { |
| 137 var o = new api.OperationErrorErrors(); | 137 var o = new api.OperationErrorErrors(); |
| (...skipping 10 matching lines...) Expand all Loading... |
| 148 checkOperationErrorErrors(api.OperationErrorErrors o) { | 148 checkOperationErrorErrors(api.OperationErrorErrors o) { |
| 149 buildCounterOperationErrorErrors++; | 149 buildCounterOperationErrorErrors++; |
| 150 if (buildCounterOperationErrorErrors < 3) { | 150 if (buildCounterOperationErrorErrors < 3) { |
| 151 unittest.expect(o.code, unittest.equals('foo')); | 151 unittest.expect(o.code, unittest.equals('foo')); |
| 152 unittest.expect(o.location, unittest.equals('foo')); | 152 unittest.expect(o.location, unittest.equals('foo')); |
| 153 unittest.expect(o.message, unittest.equals('foo')); | 153 unittest.expect(o.message, unittest.equals('foo')); |
| 154 } | 154 } |
| 155 buildCounterOperationErrorErrors--; | 155 buildCounterOperationErrorErrors--; |
| 156 } | 156 } |
| 157 | 157 |
| 158 buildUnnamed1745() { | 158 buildUnnamed1812() { |
| 159 var o = new core.List<api.OperationErrorErrors>(); | 159 var o = new core.List<api.OperationErrorErrors>(); |
| 160 o.add(buildOperationErrorErrors()); | 160 o.add(buildOperationErrorErrors()); |
| 161 o.add(buildOperationErrorErrors()); | 161 o.add(buildOperationErrorErrors()); |
| 162 return o; | 162 return o; |
| 163 } | 163 } |
| 164 | 164 |
| 165 checkUnnamed1745(core.List<api.OperationErrorErrors> o) { | 165 checkUnnamed1812(core.List<api.OperationErrorErrors> o) { |
| 166 unittest.expect(o, unittest.hasLength(2)); | 166 unittest.expect(o, unittest.hasLength(2)); |
| 167 checkOperationErrorErrors(o[0]); | 167 checkOperationErrorErrors(o[0]); |
| 168 checkOperationErrorErrors(o[1]); | 168 checkOperationErrorErrors(o[1]); |
| 169 } | 169 } |
| 170 | 170 |
| 171 core.int buildCounterOperationError = 0; | 171 core.int buildCounterOperationError = 0; |
| 172 buildOperationError() { | 172 buildOperationError() { |
| 173 var o = new api.OperationError(); | 173 var o = new api.OperationError(); |
| 174 buildCounterOperationError++; | 174 buildCounterOperationError++; |
| 175 if (buildCounterOperationError < 3) { | 175 if (buildCounterOperationError < 3) { |
| 176 o.errors = buildUnnamed1745(); | 176 o.errors = buildUnnamed1812(); |
| 177 } | 177 } |
| 178 buildCounterOperationError--; | 178 buildCounterOperationError--; |
| 179 return o; | 179 return o; |
| 180 } | 180 } |
| 181 | 181 |
| 182 checkOperationError(api.OperationError o) { | 182 checkOperationError(api.OperationError o) { |
| 183 buildCounterOperationError++; | 183 buildCounterOperationError++; |
| 184 if (buildCounterOperationError < 3) { | 184 if (buildCounterOperationError < 3) { |
| 185 checkUnnamed1745(o.errors); | 185 checkUnnamed1812(o.errors); |
| 186 } | 186 } |
| 187 buildCounterOperationError--; | 187 buildCounterOperationError--; |
| 188 } | 188 } |
| 189 | 189 |
| 190 core.int buildCounterOperationWarningsData = 0; | 190 core.int buildCounterOperationWarningsData = 0; |
| 191 buildOperationWarningsData() { | 191 buildOperationWarningsData() { |
| 192 var o = new api.OperationWarningsData(); | 192 var o = new api.OperationWarningsData(); |
| 193 buildCounterOperationWarningsData++; | 193 buildCounterOperationWarningsData++; |
| 194 if (buildCounterOperationWarningsData < 3) { | 194 if (buildCounterOperationWarningsData < 3) { |
| 195 o.key = "foo"; | 195 o.key = "foo"; |
| 196 o.value = "foo"; | 196 o.value = "foo"; |
| 197 } | 197 } |
| 198 buildCounterOperationWarningsData--; | 198 buildCounterOperationWarningsData--; |
| 199 return o; | 199 return o; |
| 200 } | 200 } |
| 201 | 201 |
| 202 checkOperationWarningsData(api.OperationWarningsData o) { | 202 checkOperationWarningsData(api.OperationWarningsData o) { |
| 203 buildCounterOperationWarningsData++; | 203 buildCounterOperationWarningsData++; |
| 204 if (buildCounterOperationWarningsData < 3) { | 204 if (buildCounterOperationWarningsData < 3) { |
| 205 unittest.expect(o.key, unittest.equals('foo')); | 205 unittest.expect(o.key, unittest.equals('foo')); |
| 206 unittest.expect(o.value, unittest.equals('foo')); | 206 unittest.expect(o.value, unittest.equals('foo')); |
| 207 } | 207 } |
| 208 buildCounterOperationWarningsData--; | 208 buildCounterOperationWarningsData--; |
| 209 } | 209 } |
| 210 | 210 |
| 211 buildUnnamed1746() { | 211 buildUnnamed1813() { |
| 212 var o = new core.List<api.OperationWarningsData>(); | 212 var o = new core.List<api.OperationWarningsData>(); |
| 213 o.add(buildOperationWarningsData()); | 213 o.add(buildOperationWarningsData()); |
| 214 o.add(buildOperationWarningsData()); | 214 o.add(buildOperationWarningsData()); |
| 215 return o; | 215 return o; |
| 216 } | 216 } |
| 217 | 217 |
| 218 checkUnnamed1746(core.List<api.OperationWarningsData> o) { | 218 checkUnnamed1813(core.List<api.OperationWarningsData> o) { |
| 219 unittest.expect(o, unittest.hasLength(2)); | 219 unittest.expect(o, unittest.hasLength(2)); |
| 220 checkOperationWarningsData(o[0]); | 220 checkOperationWarningsData(o[0]); |
| 221 checkOperationWarningsData(o[1]); | 221 checkOperationWarningsData(o[1]); |
| 222 } | 222 } |
| 223 | 223 |
| 224 core.int buildCounterOperationWarnings = 0; | 224 core.int buildCounterOperationWarnings = 0; |
| 225 buildOperationWarnings() { | 225 buildOperationWarnings() { |
| 226 var o = new api.OperationWarnings(); | 226 var o = new api.OperationWarnings(); |
| 227 buildCounterOperationWarnings++; | 227 buildCounterOperationWarnings++; |
| 228 if (buildCounterOperationWarnings < 3) { | 228 if (buildCounterOperationWarnings < 3) { |
| 229 o.code = "foo"; | 229 o.code = "foo"; |
| 230 o.data = buildUnnamed1746(); | 230 o.data = buildUnnamed1813(); |
| 231 o.message = "foo"; | 231 o.message = "foo"; |
| 232 } | 232 } |
| 233 buildCounterOperationWarnings--; | 233 buildCounterOperationWarnings--; |
| 234 return o; | 234 return o; |
| 235 } | 235 } |
| 236 | 236 |
| 237 checkOperationWarnings(api.OperationWarnings o) { | 237 checkOperationWarnings(api.OperationWarnings o) { |
| 238 buildCounterOperationWarnings++; | 238 buildCounterOperationWarnings++; |
| 239 if (buildCounterOperationWarnings < 3) { | 239 if (buildCounterOperationWarnings < 3) { |
| 240 unittest.expect(o.code, unittest.equals('foo')); | 240 unittest.expect(o.code, unittest.equals('foo')); |
| 241 checkUnnamed1746(o.data); | 241 checkUnnamed1813(o.data); |
| 242 unittest.expect(o.message, unittest.equals('foo')); | 242 unittest.expect(o.message, unittest.equals('foo')); |
| 243 } | 243 } |
| 244 buildCounterOperationWarnings--; | 244 buildCounterOperationWarnings--; |
| 245 } | 245 } |
| 246 | 246 |
| 247 buildUnnamed1747() { | 247 buildUnnamed1814() { |
| 248 var o = new core.List<api.OperationWarnings>(); | 248 var o = new core.List<api.OperationWarnings>(); |
| 249 o.add(buildOperationWarnings()); | 249 o.add(buildOperationWarnings()); |
| 250 o.add(buildOperationWarnings()); | 250 o.add(buildOperationWarnings()); |
| 251 return o; | 251 return o; |
| 252 } | 252 } |
| 253 | 253 |
| 254 checkUnnamed1747(core.List<api.OperationWarnings> o) { | 254 checkUnnamed1814(core.List<api.OperationWarnings> o) { |
| 255 unittest.expect(o, unittest.hasLength(2)); | 255 unittest.expect(o, unittest.hasLength(2)); |
| 256 checkOperationWarnings(o[0]); | 256 checkOperationWarnings(o[0]); |
| 257 checkOperationWarnings(o[1]); | 257 checkOperationWarnings(o[1]); |
| 258 } | 258 } |
| 259 | 259 |
| 260 core.int buildCounterOperation = 0; | 260 core.int buildCounterOperation = 0; |
| 261 buildOperation() { | 261 buildOperation() { |
| 262 var o = new api.Operation(); | 262 var o = new api.Operation(); |
| 263 buildCounterOperation++; | 263 buildCounterOperation++; |
| 264 if (buildCounterOperation < 3) { | 264 if (buildCounterOperation < 3) { |
| (...skipping 10 matching lines...) Expand all Loading... |
| 275 o.operationType = "foo"; | 275 o.operationType = "foo"; |
| 276 o.progress = 42; | 276 o.progress = 42; |
| 277 o.region = "foo"; | 277 o.region = "foo"; |
| 278 o.selfLink = "foo"; | 278 o.selfLink = "foo"; |
| 279 o.startTime = "foo"; | 279 o.startTime = "foo"; |
| 280 o.status = "foo"; | 280 o.status = "foo"; |
| 281 o.statusMessage = "foo"; | 281 o.statusMessage = "foo"; |
| 282 o.targetId = "foo"; | 282 o.targetId = "foo"; |
| 283 o.targetLink = "foo"; | 283 o.targetLink = "foo"; |
| 284 o.user = "foo"; | 284 o.user = "foo"; |
| 285 o.warnings = buildUnnamed1747(); | 285 o.warnings = buildUnnamed1814(); |
| 286 o.zone = "foo"; | 286 o.zone = "foo"; |
| 287 } | 287 } |
| 288 buildCounterOperation--; | 288 buildCounterOperation--; |
| 289 return o; | 289 return o; |
| 290 } | 290 } |
| 291 | 291 |
| 292 checkOperation(api.Operation o) { | 292 checkOperation(api.Operation o) { |
| 293 buildCounterOperation++; | 293 buildCounterOperation++; |
| 294 if (buildCounterOperation < 3) { | 294 if (buildCounterOperation < 3) { |
| 295 unittest.expect(o.clientOperationId, unittest.equals('foo')); | 295 unittest.expect(o.clientOperationId, unittest.equals('foo')); |
| 296 unittest.expect(o.creationTimestamp, unittest.equals('foo')); | 296 unittest.expect(o.creationTimestamp, unittest.equals('foo')); |
| 297 unittest.expect(o.endTime, unittest.equals('foo')); | 297 unittest.expect(o.endTime, unittest.equals('foo')); |
| 298 checkOperationError(o.error); | 298 checkOperationError(o.error); |
| 299 unittest.expect(o.httpErrorMessage, unittest.equals('foo')); | 299 unittest.expect(o.httpErrorMessage, unittest.equals('foo')); |
| 300 unittest.expect(o.httpErrorStatusCode, unittest.equals(42)); | 300 unittest.expect(o.httpErrorStatusCode, unittest.equals(42)); |
| 301 unittest.expect(o.id, unittest.equals('foo')); | 301 unittest.expect(o.id, unittest.equals('foo')); |
| 302 unittest.expect(o.insertTime, unittest.equals('foo')); | 302 unittest.expect(o.insertTime, unittest.equals('foo')); |
| 303 unittest.expect(o.kind, unittest.equals('foo')); | 303 unittest.expect(o.kind, unittest.equals('foo')); |
| 304 unittest.expect(o.name, unittest.equals('foo')); | 304 unittest.expect(o.name, unittest.equals('foo')); |
| 305 unittest.expect(o.operationType, unittest.equals('foo')); | 305 unittest.expect(o.operationType, unittest.equals('foo')); |
| 306 unittest.expect(o.progress, unittest.equals(42)); | 306 unittest.expect(o.progress, unittest.equals(42)); |
| 307 unittest.expect(o.region, unittest.equals('foo')); | 307 unittest.expect(o.region, unittest.equals('foo')); |
| 308 unittest.expect(o.selfLink, unittest.equals('foo')); | 308 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 309 unittest.expect(o.startTime, unittest.equals('foo')); | 309 unittest.expect(o.startTime, unittest.equals('foo')); |
| 310 unittest.expect(o.status, unittest.equals('foo')); | 310 unittest.expect(o.status, unittest.equals('foo')); |
| 311 unittest.expect(o.statusMessage, unittest.equals('foo')); | 311 unittest.expect(o.statusMessage, unittest.equals('foo')); |
| 312 unittest.expect(o.targetId, unittest.equals('foo')); | 312 unittest.expect(o.targetId, unittest.equals('foo')); |
| 313 unittest.expect(o.targetLink, unittest.equals('foo')); | 313 unittest.expect(o.targetLink, unittest.equals('foo')); |
| 314 unittest.expect(o.user, unittest.equals('foo')); | 314 unittest.expect(o.user, unittest.equals('foo')); |
| 315 checkUnnamed1747(o.warnings); | 315 checkUnnamed1814(o.warnings); |
| 316 unittest.expect(o.zone, unittest.equals('foo')); | 316 unittest.expect(o.zone, unittest.equals('foo')); |
| 317 } | 317 } |
| 318 buildCounterOperation--; | 318 buildCounterOperation--; |
| 319 } | 319 } |
| 320 | 320 |
| 321 core.int buildCounterRollingUpdatePolicyCanary = 0; | 321 core.int buildCounterRollingUpdatePolicyCanary = 0; |
| 322 buildRollingUpdatePolicyCanary() { | 322 buildRollingUpdatePolicyCanary() { |
| 323 var o = new api.RollingUpdatePolicyCanary(); | 323 var o = new api.RollingUpdatePolicyCanary(); |
| 324 buildCounterRollingUpdatePolicyCanary++; | 324 buildCounterRollingUpdatePolicyCanary++; |
| 325 if (buildCounterRollingUpdatePolicyCanary < 3) { | 325 if (buildCounterRollingUpdatePolicyCanary < 3) { |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 398 checkRollingUpdatePolicy(o.policy); | 398 checkRollingUpdatePolicy(o.policy); |
| 399 unittest.expect(o.progress, unittest.equals(42)); | 399 unittest.expect(o.progress, unittest.equals(42)); |
| 400 unittest.expect(o.selfLink, unittest.equals('foo')); | 400 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 401 unittest.expect(o.status, unittest.equals('foo')); | 401 unittest.expect(o.status, unittest.equals('foo')); |
| 402 unittest.expect(o.statusMessage, unittest.equals('foo')); | 402 unittest.expect(o.statusMessage, unittest.equals('foo')); |
| 403 unittest.expect(o.user, unittest.equals('foo')); | 403 unittest.expect(o.user, unittest.equals('foo')); |
| 404 } | 404 } |
| 405 buildCounterRollingUpdate--; | 405 buildCounterRollingUpdate--; |
| 406 } | 406 } |
| 407 | 407 |
| 408 buildUnnamed1748() { | 408 buildUnnamed1815() { |
| 409 var o = new core.List<api.RollingUpdate>(); | 409 var o = new core.List<api.RollingUpdate>(); |
| 410 o.add(buildRollingUpdate()); | 410 o.add(buildRollingUpdate()); |
| 411 o.add(buildRollingUpdate()); | 411 o.add(buildRollingUpdate()); |
| 412 return o; | 412 return o; |
| 413 } | 413 } |
| 414 | 414 |
| 415 checkUnnamed1748(core.List<api.RollingUpdate> o) { | 415 checkUnnamed1815(core.List<api.RollingUpdate> o) { |
| 416 unittest.expect(o, unittest.hasLength(2)); | 416 unittest.expect(o, unittest.hasLength(2)); |
| 417 checkRollingUpdate(o[0]); | 417 checkRollingUpdate(o[0]); |
| 418 checkRollingUpdate(o[1]); | 418 checkRollingUpdate(o[1]); |
| 419 } | 419 } |
| 420 | 420 |
| 421 core.int buildCounterRollingUpdateList = 0; | 421 core.int buildCounterRollingUpdateList = 0; |
| 422 buildRollingUpdateList() { | 422 buildRollingUpdateList() { |
| 423 var o = new api.RollingUpdateList(); | 423 var o = new api.RollingUpdateList(); |
| 424 buildCounterRollingUpdateList++; | 424 buildCounterRollingUpdateList++; |
| 425 if (buildCounterRollingUpdateList < 3) { | 425 if (buildCounterRollingUpdateList < 3) { |
| 426 o.items = buildUnnamed1748(); | 426 o.items = buildUnnamed1815(); |
| 427 o.kind = "foo"; | 427 o.kind = "foo"; |
| 428 o.nextPageToken = "foo"; | 428 o.nextPageToken = "foo"; |
| 429 o.selfLink = "foo"; | 429 o.selfLink = "foo"; |
| 430 } | 430 } |
| 431 buildCounterRollingUpdateList--; | 431 buildCounterRollingUpdateList--; |
| 432 return o; | 432 return o; |
| 433 } | 433 } |
| 434 | 434 |
| 435 checkRollingUpdateList(api.RollingUpdateList o) { | 435 checkRollingUpdateList(api.RollingUpdateList o) { |
| 436 buildCounterRollingUpdateList++; | 436 buildCounterRollingUpdateList++; |
| 437 if (buildCounterRollingUpdateList < 3) { | 437 if (buildCounterRollingUpdateList < 3) { |
| 438 checkUnnamed1748(o.items); | 438 checkUnnamed1815(o.items); |
| 439 unittest.expect(o.kind, unittest.equals('foo')); | 439 unittest.expect(o.kind, unittest.equals('foo')); |
| 440 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 440 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 441 unittest.expect(o.selfLink, unittest.equals('foo')); | 441 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 442 } | 442 } |
| 443 buildCounterRollingUpdateList--; | 443 buildCounterRollingUpdateList--; |
| 444 } | 444 } |
| 445 | 445 |
| 446 | 446 |
| 447 main() { | 447 main() { |
| 448 unittest.group("obj-schema-InstanceUpdateErrorErrors", () { | 448 unittest.group("obj-schema-InstanceUpdateErrorErrors", () { |
| (...skipping 528 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 977 res.get(arg_project, arg_zone, arg_operation).then(unittest.expectAsync(((
api.Operation response) { | 977 res.get(arg_project, arg_zone, arg_operation).then(unittest.expectAsync(((
api.Operation response) { |
| 978 checkOperation(response); | 978 checkOperation(response); |
| 979 }))); | 979 }))); |
| 980 }); | 980 }); |
| 981 | 981 |
| 982 }); | 982 }); |
| 983 | 983 |
| 984 | 984 |
| 985 } | 985 } |
| 986 | 986 |
| OLD | NEW |