| OLD | NEW |
| 1 library googleapis_beta.container.v1beta1.test; | 1 library googleapis_beta.container.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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 headers, core.String body) { |
| 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 buildUnnamed1587() { | 54 buildUnnamed2314() { |
| 55 var o = new core.List<core.String>(); | 55 var o = new core.List<core.String>(); |
| 56 o.add("foo"); | 56 o.add("foo"); |
| 57 o.add("foo"); | 57 o.add("foo"); |
| 58 return o; | 58 return o; |
| 59 } | 59 } |
| 60 | 60 |
| 61 checkUnnamed1587(core.List<core.String> o) { | 61 checkUnnamed2314(core.List<core.String> o) { |
| 62 unittest.expect(o, unittest.hasLength(2)); | 62 unittest.expect(o, unittest.hasLength(2)); |
| 63 unittest.expect(o[0], unittest.equals('foo')); | 63 unittest.expect(o[0], unittest.equals('foo')); |
| 64 unittest.expect(o[1], unittest.equals('foo')); | 64 unittest.expect(o[1], unittest.equals('foo')); |
| 65 } | 65 } |
| 66 | 66 |
| 67 core.int buildCounterCluster = 0; | 67 core.int buildCounterCluster = 0; |
| 68 buildCluster() { | 68 buildCluster() { |
| 69 var o = new api.Cluster(); | 69 var o = new api.Cluster(); |
| 70 buildCounterCluster++; | 70 buildCounterCluster++; |
| 71 if (buildCounterCluster < 3) { | 71 if (buildCounterCluster < 3) { |
| 72 o.clusterApiVersion = "foo"; | 72 o.clusterApiVersion = "foo"; |
| 73 o.containerIpv4Cidr = "foo"; | 73 o.containerIpv4Cidr = "foo"; |
| 74 o.creationTimestamp = "foo"; | 74 o.creationTimestamp = "foo"; |
| 75 o.description = "foo"; | 75 o.description = "foo"; |
| 76 o.enableCloudLogging = true; | 76 o.enableCloudLogging = true; |
| 77 o.enableCloudMonitoring = true; | 77 o.enableCloudMonitoring = true; |
| 78 o.endpoint = "foo"; | 78 o.endpoint = "foo"; |
| 79 o.instanceGroupUrls = buildUnnamed1587(); | 79 o.instanceGroupUrls = buildUnnamed2314(); |
| 80 o.masterAuth = buildMasterAuth(); | 80 o.masterAuth = buildMasterAuth(); |
| 81 o.name = "foo"; | 81 o.name = "foo"; |
| 82 o.network = "foo"; | 82 o.network = "foo"; |
| 83 o.nodeConfig = buildNodeConfig(); | 83 o.nodeConfig = buildNodeConfig(); |
| 84 o.nodeRoutingPrefixSize = 42; | 84 o.nodeRoutingPrefixSize = 42; |
| 85 o.numNodes = 42; | 85 o.numNodes = 42; |
| 86 o.selfLink = "foo"; | 86 o.selfLink = "foo"; |
| 87 o.servicesIpv4Cidr = "foo"; | 87 o.servicesIpv4Cidr = "foo"; |
| 88 o.status = "foo"; | 88 o.status = "foo"; |
| 89 o.statusMessage = "foo"; | 89 o.statusMessage = "foo"; |
| 90 o.zone = "foo"; | 90 o.zone = "foo"; |
| 91 } | 91 } |
| 92 buildCounterCluster--; | 92 buildCounterCluster--; |
| 93 return o; | 93 return o; |
| 94 } | 94 } |
| 95 | 95 |
| 96 checkCluster(api.Cluster o) { | 96 checkCluster(api.Cluster o) { |
| 97 buildCounterCluster++; | 97 buildCounterCluster++; |
| 98 if (buildCounterCluster < 3) { | 98 if (buildCounterCluster < 3) { |
| 99 unittest.expect(o.clusterApiVersion, unittest.equals('foo')); | 99 unittest.expect(o.clusterApiVersion, unittest.equals('foo')); |
| 100 unittest.expect(o.containerIpv4Cidr, unittest.equals('foo')); | 100 unittest.expect(o.containerIpv4Cidr, unittest.equals('foo')); |
| 101 unittest.expect(o.creationTimestamp, unittest.equals('foo')); | 101 unittest.expect(o.creationTimestamp, unittest.equals('foo')); |
| 102 unittest.expect(o.description, unittest.equals('foo')); | 102 unittest.expect(o.description, unittest.equals('foo')); |
| 103 unittest.expect(o.enableCloudLogging, unittest.isTrue); | 103 unittest.expect(o.enableCloudLogging, unittest.isTrue); |
| 104 unittest.expect(o.enableCloudMonitoring, unittest.isTrue); | 104 unittest.expect(o.enableCloudMonitoring, unittest.isTrue); |
| 105 unittest.expect(o.endpoint, unittest.equals('foo')); | 105 unittest.expect(o.endpoint, unittest.equals('foo')); |
| 106 checkUnnamed1587(o.instanceGroupUrls); | 106 checkUnnamed2314(o.instanceGroupUrls); |
| 107 checkMasterAuth(o.masterAuth); | 107 checkMasterAuth(o.masterAuth); |
| 108 unittest.expect(o.name, unittest.equals('foo')); | 108 unittest.expect(o.name, unittest.equals('foo')); |
| 109 unittest.expect(o.network, unittest.equals('foo')); | 109 unittest.expect(o.network, unittest.equals('foo')); |
| 110 checkNodeConfig(o.nodeConfig); | 110 checkNodeConfig(o.nodeConfig); |
| 111 unittest.expect(o.nodeRoutingPrefixSize, unittest.equals(42)); | 111 unittest.expect(o.nodeRoutingPrefixSize, unittest.equals(42)); |
| 112 unittest.expect(o.numNodes, unittest.equals(42)); | 112 unittest.expect(o.numNodes, unittest.equals(42)); |
| 113 unittest.expect(o.selfLink, unittest.equals('foo')); | 113 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 114 unittest.expect(o.servicesIpv4Cidr, unittest.equals('foo')); | 114 unittest.expect(o.servicesIpv4Cidr, unittest.equals('foo')); |
| 115 unittest.expect(o.status, unittest.equals('foo')); | 115 unittest.expect(o.status, unittest.equals('foo')); |
| 116 unittest.expect(o.statusMessage, unittest.equals('foo')); | 116 unittest.expect(o.statusMessage, unittest.equals('foo')); |
| (...skipping 14 matching lines...) Expand all Loading... |
| 131 } | 131 } |
| 132 | 132 |
| 133 checkCreateClusterRequest(api.CreateClusterRequest o) { | 133 checkCreateClusterRequest(api.CreateClusterRequest o) { |
| 134 buildCounterCreateClusterRequest++; | 134 buildCounterCreateClusterRequest++; |
| 135 if (buildCounterCreateClusterRequest < 3) { | 135 if (buildCounterCreateClusterRequest < 3) { |
| 136 checkCluster(o.cluster); | 136 checkCluster(o.cluster); |
| 137 } | 137 } |
| 138 buildCounterCreateClusterRequest--; | 138 buildCounterCreateClusterRequest--; |
| 139 } | 139 } |
| 140 | 140 |
| 141 buildUnnamed1588() { | 141 buildUnnamed2315() { |
| 142 var o = new core.List<api.Cluster>(); | 142 var o = new core.List<api.Cluster>(); |
| 143 o.add(buildCluster()); | 143 o.add(buildCluster()); |
| 144 o.add(buildCluster()); | 144 o.add(buildCluster()); |
| 145 return o; | 145 return o; |
| 146 } | 146 } |
| 147 | 147 |
| 148 checkUnnamed1588(core.List<api.Cluster> o) { | 148 checkUnnamed2315(core.List<api.Cluster> o) { |
| 149 unittest.expect(o, unittest.hasLength(2)); | 149 unittest.expect(o, unittest.hasLength(2)); |
| 150 checkCluster(o[0]); | 150 checkCluster(o[0]); |
| 151 checkCluster(o[1]); | 151 checkCluster(o[1]); |
| 152 } | 152 } |
| 153 | 153 |
| 154 core.int buildCounterListAggregatedClustersResponse = 0; | 154 core.int buildCounterListAggregatedClustersResponse = 0; |
| 155 buildListAggregatedClustersResponse() { | 155 buildListAggregatedClustersResponse() { |
| 156 var o = new api.ListAggregatedClustersResponse(); | 156 var o = new api.ListAggregatedClustersResponse(); |
| 157 buildCounterListAggregatedClustersResponse++; | 157 buildCounterListAggregatedClustersResponse++; |
| 158 if (buildCounterListAggregatedClustersResponse < 3) { | 158 if (buildCounterListAggregatedClustersResponse < 3) { |
| 159 o.clusters = buildUnnamed1588(); | 159 o.clusters = buildUnnamed2315(); |
| 160 } | 160 } |
| 161 buildCounterListAggregatedClustersResponse--; | 161 buildCounterListAggregatedClustersResponse--; |
| 162 return o; | 162 return o; |
| 163 } | 163 } |
| 164 | 164 |
| 165 checkListAggregatedClustersResponse(api.ListAggregatedClustersResponse o) { | 165 checkListAggregatedClustersResponse(api.ListAggregatedClustersResponse o) { |
| 166 buildCounterListAggregatedClustersResponse++; | 166 buildCounterListAggregatedClustersResponse++; |
| 167 if (buildCounterListAggregatedClustersResponse < 3) { | 167 if (buildCounterListAggregatedClustersResponse < 3) { |
| 168 checkUnnamed1588(o.clusters); | 168 checkUnnamed2315(o.clusters); |
| 169 } | 169 } |
| 170 buildCounterListAggregatedClustersResponse--; | 170 buildCounterListAggregatedClustersResponse--; |
| 171 } | 171 } |
| 172 | 172 |
| 173 buildUnnamed1589() { | 173 buildUnnamed2316() { |
| 174 var o = new core.List<api.Operation>(); | 174 var o = new core.List<api.Operation>(); |
| 175 o.add(buildOperation()); | 175 o.add(buildOperation()); |
| 176 o.add(buildOperation()); | 176 o.add(buildOperation()); |
| 177 return o; | 177 return o; |
| 178 } | 178 } |
| 179 | 179 |
| 180 checkUnnamed1589(core.List<api.Operation> o) { | 180 checkUnnamed2316(core.List<api.Operation> o) { |
| 181 unittest.expect(o, unittest.hasLength(2)); | 181 unittest.expect(o, unittest.hasLength(2)); |
| 182 checkOperation(o[0]); | 182 checkOperation(o[0]); |
| 183 checkOperation(o[1]); | 183 checkOperation(o[1]); |
| 184 } | 184 } |
| 185 | 185 |
| 186 core.int buildCounterListAggregatedOperationsResponse = 0; | 186 core.int buildCounterListAggregatedOperationsResponse = 0; |
| 187 buildListAggregatedOperationsResponse() { | 187 buildListAggregatedOperationsResponse() { |
| 188 var o = new api.ListAggregatedOperationsResponse(); | 188 var o = new api.ListAggregatedOperationsResponse(); |
| 189 buildCounterListAggregatedOperationsResponse++; | 189 buildCounterListAggregatedOperationsResponse++; |
| 190 if (buildCounterListAggregatedOperationsResponse < 3) { | 190 if (buildCounterListAggregatedOperationsResponse < 3) { |
| 191 o.operations = buildUnnamed1589(); | 191 o.operations = buildUnnamed2316(); |
| 192 } | 192 } |
| 193 buildCounterListAggregatedOperationsResponse--; | 193 buildCounterListAggregatedOperationsResponse--; |
| 194 return o; | 194 return o; |
| 195 } | 195 } |
| 196 | 196 |
| 197 checkListAggregatedOperationsResponse(api.ListAggregatedOperationsResponse o) { | 197 checkListAggregatedOperationsResponse(api.ListAggregatedOperationsResponse o) { |
| 198 buildCounterListAggregatedOperationsResponse++; | 198 buildCounterListAggregatedOperationsResponse++; |
| 199 if (buildCounterListAggregatedOperationsResponse < 3) { | 199 if (buildCounterListAggregatedOperationsResponse < 3) { |
| 200 checkUnnamed1589(o.operations); | 200 checkUnnamed2316(o.operations); |
| 201 } | 201 } |
| 202 buildCounterListAggregatedOperationsResponse--; | 202 buildCounterListAggregatedOperationsResponse--; |
| 203 } | 203 } |
| 204 | 204 |
| 205 buildUnnamed1590() { | 205 buildUnnamed2317() { |
| 206 var o = new core.List<api.Cluster>(); | 206 var o = new core.List<api.Cluster>(); |
| 207 o.add(buildCluster()); | 207 o.add(buildCluster()); |
| 208 o.add(buildCluster()); | 208 o.add(buildCluster()); |
| 209 return o; | 209 return o; |
| 210 } | 210 } |
| 211 | 211 |
| 212 checkUnnamed1590(core.List<api.Cluster> o) { | 212 checkUnnamed2317(core.List<api.Cluster> o) { |
| 213 unittest.expect(o, unittest.hasLength(2)); | 213 unittest.expect(o, unittest.hasLength(2)); |
| 214 checkCluster(o[0]); | 214 checkCluster(o[0]); |
| 215 checkCluster(o[1]); | 215 checkCluster(o[1]); |
| 216 } | 216 } |
| 217 | 217 |
| 218 core.int buildCounterListClustersResponse = 0; | 218 core.int buildCounterListClustersResponse = 0; |
| 219 buildListClustersResponse() { | 219 buildListClustersResponse() { |
| 220 var o = new api.ListClustersResponse(); | 220 var o = new api.ListClustersResponse(); |
| 221 buildCounterListClustersResponse++; | 221 buildCounterListClustersResponse++; |
| 222 if (buildCounterListClustersResponse < 3) { | 222 if (buildCounterListClustersResponse < 3) { |
| 223 o.clusters = buildUnnamed1590(); | 223 o.clusters = buildUnnamed2317(); |
| 224 } | 224 } |
| 225 buildCounterListClustersResponse--; | 225 buildCounterListClustersResponse--; |
| 226 return o; | 226 return o; |
| 227 } | 227 } |
| 228 | 228 |
| 229 checkListClustersResponse(api.ListClustersResponse o) { | 229 checkListClustersResponse(api.ListClustersResponse o) { |
| 230 buildCounterListClustersResponse++; | 230 buildCounterListClustersResponse++; |
| 231 if (buildCounterListClustersResponse < 3) { | 231 if (buildCounterListClustersResponse < 3) { |
| 232 checkUnnamed1590(o.clusters); | 232 checkUnnamed2317(o.clusters); |
| 233 } | 233 } |
| 234 buildCounterListClustersResponse--; | 234 buildCounterListClustersResponse--; |
| 235 } | 235 } |
| 236 | 236 |
| 237 buildUnnamed1591() { | 237 buildUnnamed2318() { |
| 238 var o = new core.List<api.Operation>(); | 238 var o = new core.List<api.Operation>(); |
| 239 o.add(buildOperation()); | 239 o.add(buildOperation()); |
| 240 o.add(buildOperation()); | 240 o.add(buildOperation()); |
| 241 return o; | 241 return o; |
| 242 } | 242 } |
| 243 | 243 |
| 244 checkUnnamed1591(core.List<api.Operation> o) { | 244 checkUnnamed2318(core.List<api.Operation> o) { |
| 245 unittest.expect(o, unittest.hasLength(2)); | 245 unittest.expect(o, unittest.hasLength(2)); |
| 246 checkOperation(o[0]); | 246 checkOperation(o[0]); |
| 247 checkOperation(o[1]); | 247 checkOperation(o[1]); |
| 248 } | 248 } |
| 249 | 249 |
| 250 core.int buildCounterListOperationsResponse = 0; | 250 core.int buildCounterListOperationsResponse = 0; |
| 251 buildListOperationsResponse() { | 251 buildListOperationsResponse() { |
| 252 var o = new api.ListOperationsResponse(); | 252 var o = new api.ListOperationsResponse(); |
| 253 buildCounterListOperationsResponse++; | 253 buildCounterListOperationsResponse++; |
| 254 if (buildCounterListOperationsResponse < 3) { | 254 if (buildCounterListOperationsResponse < 3) { |
| 255 o.operations = buildUnnamed1591(); | 255 o.operations = buildUnnamed2318(); |
| 256 } | 256 } |
| 257 buildCounterListOperationsResponse--; | 257 buildCounterListOperationsResponse--; |
| 258 return o; | 258 return o; |
| 259 } | 259 } |
| 260 | 260 |
| 261 checkListOperationsResponse(api.ListOperationsResponse o) { | 261 checkListOperationsResponse(api.ListOperationsResponse o) { |
| 262 buildCounterListOperationsResponse++; | 262 buildCounterListOperationsResponse++; |
| 263 if (buildCounterListOperationsResponse < 3) { | 263 if (buildCounterListOperationsResponse < 3) { |
| 264 checkUnnamed1591(o.operations); | 264 checkUnnamed2318(o.operations); |
| 265 } | 265 } |
| 266 buildCounterListOperationsResponse--; | 266 buildCounterListOperationsResponse--; |
| 267 } | 267 } |
| 268 | 268 |
| 269 core.int buildCounterMasterAuth = 0; | 269 core.int buildCounterMasterAuth = 0; |
| 270 buildMasterAuth() { | 270 buildMasterAuth() { |
| 271 var o = new api.MasterAuth(); | 271 var o = new api.MasterAuth(); |
| 272 buildCounterMasterAuth++; | 272 buildCounterMasterAuth++; |
| 273 if (buildCounterMasterAuth < 3) { | 273 if (buildCounterMasterAuth < 3) { |
| 274 o.bearerToken = "foo"; | 274 o.bearerToken = "foo"; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 288 unittest.expect(o.bearerToken, unittest.equals('foo')); | 288 unittest.expect(o.bearerToken, unittest.equals('foo')); |
| 289 unittest.expect(o.clientCertificate, unittest.equals('foo')); | 289 unittest.expect(o.clientCertificate, unittest.equals('foo')); |
| 290 unittest.expect(o.clientKey, unittest.equals('foo')); | 290 unittest.expect(o.clientKey, unittest.equals('foo')); |
| 291 unittest.expect(o.clusterCaCertificate, unittest.equals('foo')); | 291 unittest.expect(o.clusterCaCertificate, unittest.equals('foo')); |
| 292 unittest.expect(o.password, unittest.equals('foo')); | 292 unittest.expect(o.password, unittest.equals('foo')); |
| 293 unittest.expect(o.user, unittest.equals('foo')); | 293 unittest.expect(o.user, unittest.equals('foo')); |
| 294 } | 294 } |
| 295 buildCounterMasterAuth--; | 295 buildCounterMasterAuth--; |
| 296 } | 296 } |
| 297 | 297 |
| 298 buildUnnamed1592() { | 298 buildUnnamed2319() { |
| 299 var o = new core.List<api.ServiceAccount>(); | 299 var o = new core.List<api.ServiceAccount>(); |
| 300 o.add(buildServiceAccount()); | 300 o.add(buildServiceAccount()); |
| 301 o.add(buildServiceAccount()); | 301 o.add(buildServiceAccount()); |
| 302 return o; | 302 return o; |
| 303 } | 303 } |
| 304 | 304 |
| 305 checkUnnamed1592(core.List<api.ServiceAccount> o) { | 305 checkUnnamed2319(core.List<api.ServiceAccount> o) { |
| 306 unittest.expect(o, unittest.hasLength(2)); | 306 unittest.expect(o, unittest.hasLength(2)); |
| 307 checkServiceAccount(o[0]); | 307 checkServiceAccount(o[0]); |
| 308 checkServiceAccount(o[1]); | 308 checkServiceAccount(o[1]); |
| 309 } | 309 } |
| 310 | 310 |
| 311 core.int buildCounterNodeConfig = 0; | 311 core.int buildCounterNodeConfig = 0; |
| 312 buildNodeConfig() { | 312 buildNodeConfig() { |
| 313 var o = new api.NodeConfig(); | 313 var o = new api.NodeConfig(); |
| 314 buildCounterNodeConfig++; | 314 buildCounterNodeConfig++; |
| 315 if (buildCounterNodeConfig < 3) { | 315 if (buildCounterNodeConfig < 3) { |
| 316 o.machineType = "foo"; | 316 o.machineType = "foo"; |
| 317 o.serviceAccounts = buildUnnamed1592(); | 317 o.serviceAccounts = buildUnnamed2319(); |
| 318 o.sourceImage = "foo"; | 318 o.sourceImage = "foo"; |
| 319 } | 319 } |
| 320 buildCounterNodeConfig--; | 320 buildCounterNodeConfig--; |
| 321 return o; | 321 return o; |
| 322 } | 322 } |
| 323 | 323 |
| 324 checkNodeConfig(api.NodeConfig o) { | 324 checkNodeConfig(api.NodeConfig o) { |
| 325 buildCounterNodeConfig++; | 325 buildCounterNodeConfig++; |
| 326 if (buildCounterNodeConfig < 3) { | 326 if (buildCounterNodeConfig < 3) { |
| 327 unittest.expect(o.machineType, unittest.equals('foo')); | 327 unittest.expect(o.machineType, unittest.equals('foo')); |
| 328 checkUnnamed1592(o.serviceAccounts); | 328 checkUnnamed2319(o.serviceAccounts); |
| 329 unittest.expect(o.sourceImage, unittest.equals('foo')); | 329 unittest.expect(o.sourceImage, unittest.equals('foo')); |
| 330 } | 330 } |
| 331 buildCounterNodeConfig--; | 331 buildCounterNodeConfig--; |
| 332 } | 332 } |
| 333 | 333 |
| 334 core.int buildCounterOperation = 0; | 334 core.int buildCounterOperation = 0; |
| 335 buildOperation() { | 335 buildOperation() { |
| 336 var o = new api.Operation(); | 336 var o = new api.Operation(); |
| 337 buildCounterOperation++; | 337 buildCounterOperation++; |
| 338 if (buildCounterOperation < 3) { | 338 if (buildCounterOperation < 3) { |
| (...skipping 18 matching lines...) Expand all Loading... |
| 357 unittest.expect(o.operationType, unittest.equals('foo')); | 357 unittest.expect(o.operationType, unittest.equals('foo')); |
| 358 unittest.expect(o.selfLink, unittest.equals('foo')); | 358 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 359 unittest.expect(o.status, unittest.equals('foo')); | 359 unittest.expect(o.status, unittest.equals('foo')); |
| 360 unittest.expect(o.target, unittest.equals('foo')); | 360 unittest.expect(o.target, unittest.equals('foo')); |
| 361 unittest.expect(o.targetLink, unittest.equals('foo')); | 361 unittest.expect(o.targetLink, unittest.equals('foo')); |
| 362 unittest.expect(o.zone, unittest.equals('foo')); | 362 unittest.expect(o.zone, unittest.equals('foo')); |
| 363 } | 363 } |
| 364 buildCounterOperation--; | 364 buildCounterOperation--; |
| 365 } | 365 } |
| 366 | 366 |
| 367 buildUnnamed1593() { | 367 buildUnnamed2320() { |
| 368 var o = new core.List<core.String>(); | 368 var o = new core.List<core.String>(); |
| 369 o.add("foo"); | 369 o.add("foo"); |
| 370 o.add("foo"); | 370 o.add("foo"); |
| 371 return o; | 371 return o; |
| 372 } | 372 } |
| 373 | 373 |
| 374 checkUnnamed1593(core.List<core.String> o) { | 374 checkUnnamed2320(core.List<core.String> o) { |
| 375 unittest.expect(o, unittest.hasLength(2)); | 375 unittest.expect(o, unittest.hasLength(2)); |
| 376 unittest.expect(o[0], unittest.equals('foo')); | 376 unittest.expect(o[0], unittest.equals('foo')); |
| 377 unittest.expect(o[1], unittest.equals('foo')); | 377 unittest.expect(o[1], unittest.equals('foo')); |
| 378 } | 378 } |
| 379 | 379 |
| 380 core.int buildCounterServiceAccount = 0; | 380 core.int buildCounterServiceAccount = 0; |
| 381 buildServiceAccount() { | 381 buildServiceAccount() { |
| 382 var o = new api.ServiceAccount(); | 382 var o = new api.ServiceAccount(); |
| 383 buildCounterServiceAccount++; | 383 buildCounterServiceAccount++; |
| 384 if (buildCounterServiceAccount < 3) { | 384 if (buildCounterServiceAccount < 3) { |
| 385 o.email = "foo"; | 385 o.email = "foo"; |
| 386 o.scopes = buildUnnamed1593(); | 386 o.scopes = buildUnnamed2320(); |
| 387 } | 387 } |
| 388 buildCounterServiceAccount--; | 388 buildCounterServiceAccount--; |
| 389 return o; | 389 return o; |
| 390 } | 390 } |
| 391 | 391 |
| 392 checkServiceAccount(api.ServiceAccount o) { | 392 checkServiceAccount(api.ServiceAccount o) { |
| 393 buildCounterServiceAccount++; | 393 buildCounterServiceAccount++; |
| 394 if (buildCounterServiceAccount < 3) { | 394 if (buildCounterServiceAccount < 3) { |
| 395 unittest.expect(o.email, unittest.equals('foo')); | 395 unittest.expect(o.email, unittest.equals('foo')); |
| 396 checkUnnamed1593(o.scopes); | 396 checkUnnamed2320(o.scopes); |
| 397 } | 397 } |
| 398 buildCounterServiceAccount--; | 398 buildCounterServiceAccount--; |
| 399 } | 399 } |
| 400 | 400 |
| 401 | 401 |
| 402 main() { | 402 main() { |
| 403 unittest.group("obj-schema-Cluster", () { | 403 unittest.group("obj-schema-Cluster", () { |
| 404 unittest.test("to-json--from-json", () { | 404 unittest.test("to-json--from-json", () { |
| 405 var o = buildCluster(); | 405 var o = buildCluster(); |
| 406 var od = new api.Cluster.fromJson(o.toJson()); | 406 var od = new api.Cluster.fromJson(o.toJson()); |
| (...skipping 443 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 850 res.list(arg_projectId, arg_zoneId).then(unittest.expectAsync(((api.ListOp
erationsResponse response) { | 850 res.list(arg_projectId, arg_zoneId).then(unittest.expectAsync(((api.ListOp
erationsResponse response) { |
| 851 checkListOperationsResponse(response); | 851 checkListOperationsResponse(response); |
| 852 }))); | 852 }))); |
| 853 }); | 853 }); |
| 854 | 854 |
| 855 }); | 855 }); |
| 856 | 856 |
| 857 | 857 |
| 858 } | 858 } |
| 859 | 859 |
| OLD | NEW |