| 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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 } | 77 } |
| 78 | 78 |
| 79 checkCreateClusterRequest(api.CreateClusterRequest o) { | 79 checkCreateClusterRequest(api.CreateClusterRequest o) { |
| 80 buildCounterCreateClusterRequest++; | 80 buildCounterCreateClusterRequest++; |
| 81 if (buildCounterCreateClusterRequest < 3) { | 81 if (buildCounterCreateClusterRequest < 3) { |
| 82 checkCluster(o.cluster); | 82 checkCluster(o.cluster); |
| 83 } | 83 } |
| 84 buildCounterCreateClusterRequest--; | 84 buildCounterCreateClusterRequest--; |
| 85 } | 85 } |
| 86 | 86 |
| 87 buildUnnamed1466() { | 87 buildUnnamed1480() { |
| 88 var o = new core.List<api.Cluster>(); | 88 var o = new core.List<api.Cluster>(); |
| 89 o.add(buildCluster()); | 89 o.add(buildCluster()); |
| 90 o.add(buildCluster()); | 90 o.add(buildCluster()); |
| 91 return o; | 91 return o; |
| 92 } | 92 } |
| 93 | 93 |
| 94 checkUnnamed1466(core.List<api.Cluster> o) { | 94 checkUnnamed1480(core.List<api.Cluster> o) { |
| 95 unittest.expect(o, unittest.hasLength(2)); | 95 unittest.expect(o, unittest.hasLength(2)); |
| 96 checkCluster(o[0]); | 96 checkCluster(o[0]); |
| 97 checkCluster(o[1]); | 97 checkCluster(o[1]); |
| 98 } | 98 } |
| 99 | 99 |
| 100 core.int buildCounterListAggregatedClustersResponse = 0; | 100 core.int buildCounterListAggregatedClustersResponse = 0; |
| 101 buildListAggregatedClustersResponse() { | 101 buildListAggregatedClustersResponse() { |
| 102 var o = new api.ListAggregatedClustersResponse(); | 102 var o = new api.ListAggregatedClustersResponse(); |
| 103 buildCounterListAggregatedClustersResponse++; | 103 buildCounterListAggregatedClustersResponse++; |
| 104 if (buildCounterListAggregatedClustersResponse < 3) { | 104 if (buildCounterListAggregatedClustersResponse < 3) { |
| 105 o.clusters = buildUnnamed1466(); | 105 o.clusters = buildUnnamed1480(); |
| 106 } | 106 } |
| 107 buildCounterListAggregatedClustersResponse--; | 107 buildCounterListAggregatedClustersResponse--; |
| 108 return o; | 108 return o; |
| 109 } | 109 } |
| 110 | 110 |
| 111 checkListAggregatedClustersResponse(api.ListAggregatedClustersResponse o) { | 111 checkListAggregatedClustersResponse(api.ListAggregatedClustersResponse o) { |
| 112 buildCounterListAggregatedClustersResponse++; | 112 buildCounterListAggregatedClustersResponse++; |
| 113 if (buildCounterListAggregatedClustersResponse < 3) { | 113 if (buildCounterListAggregatedClustersResponse < 3) { |
| 114 checkUnnamed1466(o.clusters); | 114 checkUnnamed1480(o.clusters); |
| 115 } | 115 } |
| 116 buildCounterListAggregatedClustersResponse--; | 116 buildCounterListAggregatedClustersResponse--; |
| 117 } | 117 } |
| 118 | 118 |
| 119 buildUnnamed1467() { | 119 buildUnnamed1481() { |
| 120 var o = new core.List<api.Operation>(); | 120 var o = new core.List<api.Operation>(); |
| 121 o.add(buildOperation()); | 121 o.add(buildOperation()); |
| 122 o.add(buildOperation()); | 122 o.add(buildOperation()); |
| 123 return o; | 123 return o; |
| 124 } | 124 } |
| 125 | 125 |
| 126 checkUnnamed1467(core.List<api.Operation> o) { | 126 checkUnnamed1481(core.List<api.Operation> o) { |
| 127 unittest.expect(o, unittest.hasLength(2)); | 127 unittest.expect(o, unittest.hasLength(2)); |
| 128 checkOperation(o[0]); | 128 checkOperation(o[0]); |
| 129 checkOperation(o[1]); | 129 checkOperation(o[1]); |
| 130 } | 130 } |
| 131 | 131 |
| 132 core.int buildCounterListAggregatedOperationsResponse = 0; | 132 core.int buildCounterListAggregatedOperationsResponse = 0; |
| 133 buildListAggregatedOperationsResponse() { | 133 buildListAggregatedOperationsResponse() { |
| 134 var o = new api.ListAggregatedOperationsResponse(); | 134 var o = new api.ListAggregatedOperationsResponse(); |
| 135 buildCounterListAggregatedOperationsResponse++; | 135 buildCounterListAggregatedOperationsResponse++; |
| 136 if (buildCounterListAggregatedOperationsResponse < 3) { | 136 if (buildCounterListAggregatedOperationsResponse < 3) { |
| 137 o.operations = buildUnnamed1467(); | 137 o.operations = buildUnnamed1481(); |
| 138 } | 138 } |
| 139 buildCounterListAggregatedOperationsResponse--; | 139 buildCounterListAggregatedOperationsResponse--; |
| 140 return o; | 140 return o; |
| 141 } | 141 } |
| 142 | 142 |
| 143 checkListAggregatedOperationsResponse(api.ListAggregatedOperationsResponse o) { | 143 checkListAggregatedOperationsResponse(api.ListAggregatedOperationsResponse o) { |
| 144 buildCounterListAggregatedOperationsResponse++; | 144 buildCounterListAggregatedOperationsResponse++; |
| 145 if (buildCounterListAggregatedOperationsResponse < 3) { | 145 if (buildCounterListAggregatedOperationsResponse < 3) { |
| 146 checkUnnamed1467(o.operations); | 146 checkUnnamed1481(o.operations); |
| 147 } | 147 } |
| 148 buildCounterListAggregatedOperationsResponse--; | 148 buildCounterListAggregatedOperationsResponse--; |
| 149 } | 149 } |
| 150 | 150 |
| 151 buildUnnamed1468() { | 151 buildUnnamed1482() { |
| 152 var o = new core.List<api.Cluster>(); | 152 var o = new core.List<api.Cluster>(); |
| 153 o.add(buildCluster()); | 153 o.add(buildCluster()); |
| 154 o.add(buildCluster()); | 154 o.add(buildCluster()); |
| 155 return o; | 155 return o; |
| 156 } | 156 } |
| 157 | 157 |
| 158 checkUnnamed1468(core.List<api.Cluster> o) { | 158 checkUnnamed1482(core.List<api.Cluster> o) { |
| 159 unittest.expect(o, unittest.hasLength(2)); | 159 unittest.expect(o, unittest.hasLength(2)); |
| 160 checkCluster(o[0]); | 160 checkCluster(o[0]); |
| 161 checkCluster(o[1]); | 161 checkCluster(o[1]); |
| 162 } | 162 } |
| 163 | 163 |
| 164 core.int buildCounterListClustersResponse = 0; | 164 core.int buildCounterListClustersResponse = 0; |
| 165 buildListClustersResponse() { | 165 buildListClustersResponse() { |
| 166 var o = new api.ListClustersResponse(); | 166 var o = new api.ListClustersResponse(); |
| 167 buildCounterListClustersResponse++; | 167 buildCounterListClustersResponse++; |
| 168 if (buildCounterListClustersResponse < 3) { | 168 if (buildCounterListClustersResponse < 3) { |
| 169 o.clusters = buildUnnamed1468(); | 169 o.clusters = buildUnnamed1482(); |
| 170 } | 170 } |
| 171 buildCounterListClustersResponse--; | 171 buildCounterListClustersResponse--; |
| 172 return o; | 172 return o; |
| 173 } | 173 } |
| 174 | 174 |
| 175 checkListClustersResponse(api.ListClustersResponse o) { | 175 checkListClustersResponse(api.ListClustersResponse o) { |
| 176 buildCounterListClustersResponse++; | 176 buildCounterListClustersResponse++; |
| 177 if (buildCounterListClustersResponse < 3) { | 177 if (buildCounterListClustersResponse < 3) { |
| 178 checkUnnamed1468(o.clusters); | 178 checkUnnamed1482(o.clusters); |
| 179 } | 179 } |
| 180 buildCounterListClustersResponse--; | 180 buildCounterListClustersResponse--; |
| 181 } | 181 } |
| 182 | 182 |
| 183 buildUnnamed1469() { | 183 buildUnnamed1483() { |
| 184 var o = new core.List<api.Operation>(); | 184 var o = new core.List<api.Operation>(); |
| 185 o.add(buildOperation()); | 185 o.add(buildOperation()); |
| 186 o.add(buildOperation()); | 186 o.add(buildOperation()); |
| 187 return o; | 187 return o; |
| 188 } | 188 } |
| 189 | 189 |
| 190 checkUnnamed1469(core.List<api.Operation> o) { | 190 checkUnnamed1483(core.List<api.Operation> o) { |
| 191 unittest.expect(o, unittest.hasLength(2)); | 191 unittest.expect(o, unittest.hasLength(2)); |
| 192 checkOperation(o[0]); | 192 checkOperation(o[0]); |
| 193 checkOperation(o[1]); | 193 checkOperation(o[1]); |
| 194 } | 194 } |
| 195 | 195 |
| 196 core.int buildCounterListOperationsResponse = 0; | 196 core.int buildCounterListOperationsResponse = 0; |
| 197 buildListOperationsResponse() { | 197 buildListOperationsResponse() { |
| 198 var o = new api.ListOperationsResponse(); | 198 var o = new api.ListOperationsResponse(); |
| 199 buildCounterListOperationsResponse++; | 199 buildCounterListOperationsResponse++; |
| 200 if (buildCounterListOperationsResponse < 3) { | 200 if (buildCounterListOperationsResponse < 3) { |
| 201 o.operations = buildUnnamed1469(); | 201 o.operations = buildUnnamed1483(); |
| 202 } | 202 } |
| 203 buildCounterListOperationsResponse--; | 203 buildCounterListOperationsResponse--; |
| 204 return o; | 204 return o; |
| 205 } | 205 } |
| 206 | 206 |
| 207 checkListOperationsResponse(api.ListOperationsResponse o) { | 207 checkListOperationsResponse(api.ListOperationsResponse o) { |
| 208 buildCounterListOperationsResponse++; | 208 buildCounterListOperationsResponse++; |
| 209 if (buildCounterListOperationsResponse < 3) { | 209 if (buildCounterListOperationsResponse < 3) { |
| 210 checkUnnamed1469(o.operations); | 210 checkUnnamed1483(o.operations); |
| 211 } | 211 } |
| 212 buildCounterListOperationsResponse--; | 212 buildCounterListOperationsResponse--; |
| 213 } | 213 } |
| 214 | 214 |
| 215 core.int buildCounterMasterAuth = 0; | 215 core.int buildCounterMasterAuth = 0; |
| 216 buildMasterAuth() { | 216 buildMasterAuth() { |
| 217 var o = new api.MasterAuth(); | 217 var o = new api.MasterAuth(); |
| 218 buildCounterMasterAuth++; | 218 buildCounterMasterAuth++; |
| 219 if (buildCounterMasterAuth < 3) { | 219 if (buildCounterMasterAuth < 3) { |
| 220 o.password = "foo"; | 220 o.password = "foo"; |
| 221 o.user = "foo"; | 221 o.user = "foo"; |
| 222 } | 222 } |
| 223 buildCounterMasterAuth--; | 223 buildCounterMasterAuth--; |
| 224 return o; | 224 return o; |
| 225 } | 225 } |
| 226 | 226 |
| 227 checkMasterAuth(api.MasterAuth o) { | 227 checkMasterAuth(api.MasterAuth o) { |
| 228 buildCounterMasterAuth++; | 228 buildCounterMasterAuth++; |
| 229 if (buildCounterMasterAuth < 3) { | 229 if (buildCounterMasterAuth < 3) { |
| 230 unittest.expect(o.password, unittest.equals('foo')); | 230 unittest.expect(o.password, unittest.equals('foo')); |
| 231 unittest.expect(o.user, unittest.equals('foo')); | 231 unittest.expect(o.user, unittest.equals('foo')); |
| 232 } | 232 } |
| 233 buildCounterMasterAuth--; | 233 buildCounterMasterAuth--; |
| 234 } | 234 } |
| 235 | 235 |
| 236 buildUnnamed1470() { | 236 buildUnnamed1484() { |
| 237 var o = new core.List<api.ServiceAccount>(); | 237 var o = new core.List<api.ServiceAccount>(); |
| 238 o.add(buildServiceAccount()); | 238 o.add(buildServiceAccount()); |
| 239 o.add(buildServiceAccount()); | 239 o.add(buildServiceAccount()); |
| 240 return o; | 240 return o; |
| 241 } | 241 } |
| 242 | 242 |
| 243 checkUnnamed1470(core.List<api.ServiceAccount> o) { | 243 checkUnnamed1484(core.List<api.ServiceAccount> o) { |
| 244 unittest.expect(o, unittest.hasLength(2)); | 244 unittest.expect(o, unittest.hasLength(2)); |
| 245 checkServiceAccount(o[0]); | 245 checkServiceAccount(o[0]); |
| 246 checkServiceAccount(o[1]); | 246 checkServiceAccount(o[1]); |
| 247 } | 247 } |
| 248 | 248 |
| 249 core.int buildCounterNodeConfig = 0; | 249 core.int buildCounterNodeConfig = 0; |
| 250 buildNodeConfig() { | 250 buildNodeConfig() { |
| 251 var o = new api.NodeConfig(); | 251 var o = new api.NodeConfig(); |
| 252 buildCounterNodeConfig++; | 252 buildCounterNodeConfig++; |
| 253 if (buildCounterNodeConfig < 3) { | 253 if (buildCounterNodeConfig < 3) { |
| 254 o.machineType = "foo"; | 254 o.machineType = "foo"; |
| 255 o.serviceAccounts = buildUnnamed1470(); | 255 o.serviceAccounts = buildUnnamed1484(); |
| 256 o.sourceImage = "foo"; | 256 o.sourceImage = "foo"; |
| 257 } | 257 } |
| 258 buildCounterNodeConfig--; | 258 buildCounterNodeConfig--; |
| 259 return o; | 259 return o; |
| 260 } | 260 } |
| 261 | 261 |
| 262 checkNodeConfig(api.NodeConfig o) { | 262 checkNodeConfig(api.NodeConfig o) { |
| 263 buildCounterNodeConfig++; | 263 buildCounterNodeConfig++; |
| 264 if (buildCounterNodeConfig < 3) { | 264 if (buildCounterNodeConfig < 3) { |
| 265 unittest.expect(o.machineType, unittest.equals('foo')); | 265 unittest.expect(o.machineType, unittest.equals('foo')); |
| 266 checkUnnamed1470(o.serviceAccounts); | 266 checkUnnamed1484(o.serviceAccounts); |
| 267 unittest.expect(o.sourceImage, unittest.equals('foo')); | 267 unittest.expect(o.sourceImage, unittest.equals('foo')); |
| 268 } | 268 } |
| 269 buildCounterNodeConfig--; | 269 buildCounterNodeConfig--; |
| 270 } | 270 } |
| 271 | 271 |
| 272 core.int buildCounterOperation = 0; | 272 core.int buildCounterOperation = 0; |
| 273 buildOperation() { | 273 buildOperation() { |
| 274 var o = new api.Operation(); | 274 var o = new api.Operation(); |
| 275 buildCounterOperation++; | 275 buildCounterOperation++; |
| 276 if (buildCounterOperation < 3) { | 276 if (buildCounterOperation < 3) { |
| (...skipping 18 matching lines...) Expand all Loading... |
| 295 unittest.expect(o.operationType, unittest.equals('foo')); | 295 unittest.expect(o.operationType, unittest.equals('foo')); |
| 296 unittest.expect(o.selfLink, unittest.equals('foo')); | 296 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 297 unittest.expect(o.status, unittest.equals('foo')); | 297 unittest.expect(o.status, unittest.equals('foo')); |
| 298 unittest.expect(o.target, unittest.equals('foo')); | 298 unittest.expect(o.target, unittest.equals('foo')); |
| 299 unittest.expect(o.targetLink, unittest.equals('foo')); | 299 unittest.expect(o.targetLink, unittest.equals('foo')); |
| 300 unittest.expect(o.zone, unittest.equals('foo')); | 300 unittest.expect(o.zone, unittest.equals('foo')); |
| 301 } | 301 } |
| 302 buildCounterOperation--; | 302 buildCounterOperation--; |
| 303 } | 303 } |
| 304 | 304 |
| 305 buildUnnamed1471() { | 305 buildUnnamed1485() { |
| 306 var o = new core.List<core.String>(); | 306 var o = new core.List<core.String>(); |
| 307 o.add("foo"); | 307 o.add("foo"); |
| 308 o.add("foo"); | 308 o.add("foo"); |
| 309 return o; | 309 return o; |
| 310 } | 310 } |
| 311 | 311 |
| 312 checkUnnamed1471(core.List<core.String> o) { | 312 checkUnnamed1485(core.List<core.String> o) { |
| 313 unittest.expect(o, unittest.hasLength(2)); | 313 unittest.expect(o, unittest.hasLength(2)); |
| 314 unittest.expect(o[0], unittest.equals('foo')); | 314 unittest.expect(o[0], unittest.equals('foo')); |
| 315 unittest.expect(o[1], unittest.equals('foo')); | 315 unittest.expect(o[1], unittest.equals('foo')); |
| 316 } | 316 } |
| 317 | 317 |
| 318 core.int buildCounterServiceAccount = 0; | 318 core.int buildCounterServiceAccount = 0; |
| 319 buildServiceAccount() { | 319 buildServiceAccount() { |
| 320 var o = new api.ServiceAccount(); | 320 var o = new api.ServiceAccount(); |
| 321 buildCounterServiceAccount++; | 321 buildCounterServiceAccount++; |
| 322 if (buildCounterServiceAccount < 3) { | 322 if (buildCounterServiceAccount < 3) { |
| 323 o.email = "foo"; | 323 o.email = "foo"; |
| 324 o.scopes = buildUnnamed1471(); | 324 o.scopes = buildUnnamed1485(); |
| 325 } | 325 } |
| 326 buildCounterServiceAccount--; | 326 buildCounterServiceAccount--; |
| 327 return o; | 327 return o; |
| 328 } | 328 } |
| 329 | 329 |
| 330 checkServiceAccount(api.ServiceAccount o) { | 330 checkServiceAccount(api.ServiceAccount o) { |
| 331 buildCounterServiceAccount++; | 331 buildCounterServiceAccount++; |
| 332 if (buildCounterServiceAccount < 3) { | 332 if (buildCounterServiceAccount < 3) { |
| 333 unittest.expect(o.email, unittest.equals('foo')); | 333 unittest.expect(o.email, unittest.equals('foo')); |
| 334 checkUnnamed1471(o.scopes); | 334 checkUnnamed1485(o.scopes); |
| 335 } | 335 } |
| 336 buildCounterServiceAccount--; | 336 buildCounterServiceAccount--; |
| 337 } | 337 } |
| 338 | 338 |
| 339 | 339 |
| 340 main() { | 340 main() { |
| 341 unittest.group("obj-schema-Cluster", () { | 341 unittest.group("obj-schema-Cluster", () { |
| 342 unittest.test("to-json--from-json", () { | 342 unittest.test("to-json--from-json", () { |
| 343 var o = buildCluster(); | 343 var o = buildCluster(); |
| 344 var od = new api.Cluster.fromJson(o.toJson()); | 344 var od = new api.Cluster.fromJson(o.toJson()); |
| (...skipping 443 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 788 res.list(arg_projectId, arg_zoneId).then(unittest.expectAsync(((api.ListOp
erationsResponse response) { | 788 res.list(arg_projectId, arg_zoneId).then(unittest.expectAsync(((api.ListOp
erationsResponse response) { |
| 789 checkListOperationsResponse(response); | 789 checkListOperationsResponse(response); |
| 790 }))); | 790 }))); |
| 791 }); | 791 }); |
| 792 | 792 |
| 793 }); | 793 }); |
| 794 | 794 |
| 795 | 795 |
| 796 } | 796 } |
| 797 | 797 |
| OLD | NEW |