| 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 10 matching lines...) Expand all Loading... |
| 21 var o = new api.Cluster(); | 21 var o = new api.Cluster(); |
| 22 buildCounterCluster++; | 22 buildCounterCluster++; |
| 23 if (buildCounterCluster < 3) { | 23 if (buildCounterCluster < 3) { |
| 24 o.clusterApiVersion = "foo"; | 24 o.clusterApiVersion = "foo"; |
| 25 o.containerIpv4Cidr = "foo"; | 25 o.containerIpv4Cidr = "foo"; |
| 26 o.creationTimestamp = "foo"; | 26 o.creationTimestamp = "foo"; |
| 27 o.description = "foo"; | 27 o.description = "foo"; |
| 28 o.endpoint = "foo"; | 28 o.endpoint = "foo"; |
| 29 o.masterAuth = buildMasterAuth(); | 29 o.masterAuth = buildMasterAuth(); |
| 30 o.name = "foo"; | 30 o.name = "foo"; |
| 31 o.network = "foo"; |
| 31 o.nodeConfig = buildNodeConfig(); | 32 o.nodeConfig = buildNodeConfig(); |
| 32 o.nodeRoutingPrefixSize = 42; | 33 o.nodeRoutingPrefixSize = 42; |
| 33 o.numNodes = 42; | 34 o.numNodes = 42; |
| 34 o.servicesIpv4Cidr = "foo"; | 35 o.servicesIpv4Cidr = "foo"; |
| 35 o.status = "foo"; | 36 o.status = "foo"; |
| 36 o.statusMessage = "foo"; | 37 o.statusMessage = "foo"; |
| 37 o.zone = "foo"; | 38 o.zone = "foo"; |
| 38 } | 39 } |
| 39 buildCounterCluster--; | 40 buildCounterCluster--; |
| 40 return o; | 41 return o; |
| 41 } | 42 } |
| 42 | 43 |
| 43 checkCluster(api.Cluster o) { | 44 checkCluster(api.Cluster o) { |
| 44 buildCounterCluster++; | 45 buildCounterCluster++; |
| 45 if (buildCounterCluster < 3) { | 46 if (buildCounterCluster < 3) { |
| 46 unittest.expect(o.clusterApiVersion, unittest.equals('foo')); | 47 unittest.expect(o.clusterApiVersion, unittest.equals('foo')); |
| 47 unittest.expect(o.containerIpv4Cidr, unittest.equals('foo')); | 48 unittest.expect(o.containerIpv4Cidr, unittest.equals('foo')); |
| 48 unittest.expect(o.creationTimestamp, unittest.equals('foo')); | 49 unittest.expect(o.creationTimestamp, unittest.equals('foo')); |
| 49 unittest.expect(o.description, unittest.equals('foo')); | 50 unittest.expect(o.description, unittest.equals('foo')); |
| 50 unittest.expect(o.endpoint, unittest.equals('foo')); | 51 unittest.expect(o.endpoint, unittest.equals('foo')); |
| 51 checkMasterAuth(o.masterAuth); | 52 checkMasterAuth(o.masterAuth); |
| 52 unittest.expect(o.name, unittest.equals('foo')); | 53 unittest.expect(o.name, unittest.equals('foo')); |
| 54 unittest.expect(o.network, unittest.equals('foo')); |
| 53 checkNodeConfig(o.nodeConfig); | 55 checkNodeConfig(o.nodeConfig); |
| 54 unittest.expect(o.nodeRoutingPrefixSize, unittest.equals(42)); | 56 unittest.expect(o.nodeRoutingPrefixSize, unittest.equals(42)); |
| 55 unittest.expect(o.numNodes, unittest.equals(42)); | 57 unittest.expect(o.numNodes, unittest.equals(42)); |
| 56 unittest.expect(o.servicesIpv4Cidr, unittest.equals('foo')); | 58 unittest.expect(o.servicesIpv4Cidr, unittest.equals('foo')); |
| 57 unittest.expect(o.status, unittest.equals('foo')); | 59 unittest.expect(o.status, unittest.equals('foo')); |
| 58 unittest.expect(o.statusMessage, unittest.equals('foo')); | 60 unittest.expect(o.statusMessage, unittest.equals('foo')); |
| 59 unittest.expect(o.zone, unittest.equals('foo')); | 61 unittest.expect(o.zone, unittest.equals('foo')); |
| 60 } | 62 } |
| 61 buildCounterCluster--; | 63 buildCounterCluster--; |
| 62 } | 64 } |
| (...skipping 10 matching lines...) Expand all Loading... |
| 73 } | 75 } |
| 74 | 76 |
| 75 checkCreateClusterRequest(api.CreateClusterRequest o) { | 77 checkCreateClusterRequest(api.CreateClusterRequest o) { |
| 76 buildCounterCreateClusterRequest++; | 78 buildCounterCreateClusterRequest++; |
| 77 if (buildCounterCreateClusterRequest < 3) { | 79 if (buildCounterCreateClusterRequest < 3) { |
| 78 checkCluster(o.cluster); | 80 checkCluster(o.cluster); |
| 79 } | 81 } |
| 80 buildCounterCreateClusterRequest--; | 82 buildCounterCreateClusterRequest--; |
| 81 } | 83 } |
| 82 | 84 |
| 83 buildUnnamed1233() { | 85 buildUnnamed1203() { |
| 84 var o = new core.List<api.Cluster>(); | 86 var o = new core.List<api.Cluster>(); |
| 85 o.add(buildCluster()); | 87 o.add(buildCluster()); |
| 86 o.add(buildCluster()); | 88 o.add(buildCluster()); |
| 87 return o; | 89 return o; |
| 88 } | 90 } |
| 89 | 91 |
| 90 checkUnnamed1233(core.List<api.Cluster> o) { | 92 checkUnnamed1203(core.List<api.Cluster> o) { |
| 91 unittest.expect(o, unittest.hasLength(2)); | 93 unittest.expect(o, unittest.hasLength(2)); |
| 92 checkCluster(o[0]); | 94 checkCluster(o[0]); |
| 93 checkCluster(o[1]); | 95 checkCluster(o[1]); |
| 94 } | 96 } |
| 95 | 97 |
| 96 core.int buildCounterListAggregatedClustersResponse = 0; | 98 core.int buildCounterListAggregatedClustersResponse = 0; |
| 97 buildListAggregatedClustersResponse() { | 99 buildListAggregatedClustersResponse() { |
| 98 var o = new api.ListAggregatedClustersResponse(); | 100 var o = new api.ListAggregatedClustersResponse(); |
| 99 buildCounterListAggregatedClustersResponse++; | 101 buildCounterListAggregatedClustersResponse++; |
| 100 if (buildCounterListAggregatedClustersResponse < 3) { | 102 if (buildCounterListAggregatedClustersResponse < 3) { |
| 101 o.clusters = buildUnnamed1233(); | 103 o.clusters = buildUnnamed1203(); |
| 102 } | 104 } |
| 103 buildCounterListAggregatedClustersResponse--; | 105 buildCounterListAggregatedClustersResponse--; |
| 104 return o; | 106 return o; |
| 105 } | 107 } |
| 106 | 108 |
| 107 checkListAggregatedClustersResponse(api.ListAggregatedClustersResponse o) { | 109 checkListAggregatedClustersResponse(api.ListAggregatedClustersResponse o) { |
| 108 buildCounterListAggregatedClustersResponse++; | 110 buildCounterListAggregatedClustersResponse++; |
| 109 if (buildCounterListAggregatedClustersResponse < 3) { | 111 if (buildCounterListAggregatedClustersResponse < 3) { |
| 110 checkUnnamed1233(o.clusters); | 112 checkUnnamed1203(o.clusters); |
| 111 } | 113 } |
| 112 buildCounterListAggregatedClustersResponse--; | 114 buildCounterListAggregatedClustersResponse--; |
| 113 } | 115 } |
| 114 | 116 |
| 115 buildUnnamed1234() { | 117 buildUnnamed1204() { |
| 116 var o = new core.List<api.Operation>(); | 118 var o = new core.List<api.Operation>(); |
| 117 o.add(buildOperation()); | 119 o.add(buildOperation()); |
| 118 o.add(buildOperation()); | 120 o.add(buildOperation()); |
| 119 return o; | 121 return o; |
| 120 } | 122 } |
| 121 | 123 |
| 122 checkUnnamed1234(core.List<api.Operation> o) { | 124 checkUnnamed1204(core.List<api.Operation> o) { |
| 123 unittest.expect(o, unittest.hasLength(2)); | 125 unittest.expect(o, unittest.hasLength(2)); |
| 124 checkOperation(o[0]); | 126 checkOperation(o[0]); |
| 125 checkOperation(o[1]); | 127 checkOperation(o[1]); |
| 126 } | 128 } |
| 127 | 129 |
| 128 core.int buildCounterListAggregatedOperationsResponse = 0; | 130 core.int buildCounterListAggregatedOperationsResponse = 0; |
| 129 buildListAggregatedOperationsResponse() { | 131 buildListAggregatedOperationsResponse() { |
| 130 var o = new api.ListAggregatedOperationsResponse(); | 132 var o = new api.ListAggregatedOperationsResponse(); |
| 131 buildCounterListAggregatedOperationsResponse++; | 133 buildCounterListAggregatedOperationsResponse++; |
| 132 if (buildCounterListAggregatedOperationsResponse < 3) { | 134 if (buildCounterListAggregatedOperationsResponse < 3) { |
| 133 o.operations = buildUnnamed1234(); | 135 o.operations = buildUnnamed1204(); |
| 134 } | 136 } |
| 135 buildCounterListAggregatedOperationsResponse--; | 137 buildCounterListAggregatedOperationsResponse--; |
| 136 return o; | 138 return o; |
| 137 } | 139 } |
| 138 | 140 |
| 139 checkListAggregatedOperationsResponse(api.ListAggregatedOperationsResponse o) { | 141 checkListAggregatedOperationsResponse(api.ListAggregatedOperationsResponse o) { |
| 140 buildCounterListAggregatedOperationsResponse++; | 142 buildCounterListAggregatedOperationsResponse++; |
| 141 if (buildCounterListAggregatedOperationsResponse < 3) { | 143 if (buildCounterListAggregatedOperationsResponse < 3) { |
| 142 checkUnnamed1234(o.operations); | 144 checkUnnamed1204(o.operations); |
| 143 } | 145 } |
| 144 buildCounterListAggregatedOperationsResponse--; | 146 buildCounterListAggregatedOperationsResponse--; |
| 145 } | 147 } |
| 146 | 148 |
| 147 buildUnnamed1235() { | 149 buildUnnamed1205() { |
| 148 var o = new core.List<api.Cluster>(); | 150 var o = new core.List<api.Cluster>(); |
| 149 o.add(buildCluster()); | 151 o.add(buildCluster()); |
| 150 o.add(buildCluster()); | 152 o.add(buildCluster()); |
| 151 return o; | 153 return o; |
| 152 } | 154 } |
| 153 | 155 |
| 154 checkUnnamed1235(core.List<api.Cluster> o) { | 156 checkUnnamed1205(core.List<api.Cluster> o) { |
| 155 unittest.expect(o, unittest.hasLength(2)); | 157 unittest.expect(o, unittest.hasLength(2)); |
| 156 checkCluster(o[0]); | 158 checkCluster(o[0]); |
| 157 checkCluster(o[1]); | 159 checkCluster(o[1]); |
| 158 } | 160 } |
| 159 | 161 |
| 160 core.int buildCounterListClustersResponse = 0; | 162 core.int buildCounterListClustersResponse = 0; |
| 161 buildListClustersResponse() { | 163 buildListClustersResponse() { |
| 162 var o = new api.ListClustersResponse(); | 164 var o = new api.ListClustersResponse(); |
| 163 buildCounterListClustersResponse++; | 165 buildCounterListClustersResponse++; |
| 164 if (buildCounterListClustersResponse < 3) { | 166 if (buildCounterListClustersResponse < 3) { |
| 165 o.clusters = buildUnnamed1235(); | 167 o.clusters = buildUnnamed1205(); |
| 166 } | 168 } |
| 167 buildCounterListClustersResponse--; | 169 buildCounterListClustersResponse--; |
| 168 return o; | 170 return o; |
| 169 } | 171 } |
| 170 | 172 |
| 171 checkListClustersResponse(api.ListClustersResponse o) { | 173 checkListClustersResponse(api.ListClustersResponse o) { |
| 172 buildCounterListClustersResponse++; | 174 buildCounterListClustersResponse++; |
| 173 if (buildCounterListClustersResponse < 3) { | 175 if (buildCounterListClustersResponse < 3) { |
| 174 checkUnnamed1235(o.clusters); | 176 checkUnnamed1205(o.clusters); |
| 175 } | 177 } |
| 176 buildCounterListClustersResponse--; | 178 buildCounterListClustersResponse--; |
| 177 } | 179 } |
| 178 | 180 |
| 179 buildUnnamed1236() { | 181 buildUnnamed1206() { |
| 180 var o = new core.List<api.Operation>(); | 182 var o = new core.List<api.Operation>(); |
| 181 o.add(buildOperation()); | 183 o.add(buildOperation()); |
| 182 o.add(buildOperation()); | 184 o.add(buildOperation()); |
| 183 return o; | 185 return o; |
| 184 } | 186 } |
| 185 | 187 |
| 186 checkUnnamed1236(core.List<api.Operation> o) { | 188 checkUnnamed1206(core.List<api.Operation> o) { |
| 187 unittest.expect(o, unittest.hasLength(2)); | 189 unittest.expect(o, unittest.hasLength(2)); |
| 188 checkOperation(o[0]); | 190 checkOperation(o[0]); |
| 189 checkOperation(o[1]); | 191 checkOperation(o[1]); |
| 190 } | 192 } |
| 191 | 193 |
| 192 core.int buildCounterListOperationsResponse = 0; | 194 core.int buildCounterListOperationsResponse = 0; |
| 193 buildListOperationsResponse() { | 195 buildListOperationsResponse() { |
| 194 var o = new api.ListOperationsResponse(); | 196 var o = new api.ListOperationsResponse(); |
| 195 buildCounterListOperationsResponse++; | 197 buildCounterListOperationsResponse++; |
| 196 if (buildCounterListOperationsResponse < 3) { | 198 if (buildCounterListOperationsResponse < 3) { |
| 197 o.operations = buildUnnamed1236(); | 199 o.operations = buildUnnamed1206(); |
| 198 } | 200 } |
| 199 buildCounterListOperationsResponse--; | 201 buildCounterListOperationsResponse--; |
| 200 return o; | 202 return o; |
| 201 } | 203 } |
| 202 | 204 |
| 203 checkListOperationsResponse(api.ListOperationsResponse o) { | 205 checkListOperationsResponse(api.ListOperationsResponse o) { |
| 204 buildCounterListOperationsResponse++; | 206 buildCounterListOperationsResponse++; |
| 205 if (buildCounterListOperationsResponse < 3) { | 207 if (buildCounterListOperationsResponse < 3) { |
| 206 checkUnnamed1236(o.operations); | 208 checkUnnamed1206(o.operations); |
| 207 } | 209 } |
| 208 buildCounterListOperationsResponse--; | 210 buildCounterListOperationsResponse--; |
| 209 } | 211 } |
| 210 | 212 |
| 211 core.int buildCounterMasterAuth = 0; | 213 core.int buildCounterMasterAuth = 0; |
| 212 buildMasterAuth() { | 214 buildMasterAuth() { |
| 213 var o = new api.MasterAuth(); | 215 var o = new api.MasterAuth(); |
| 214 buildCounterMasterAuth++; | 216 buildCounterMasterAuth++; |
| 215 if (buildCounterMasterAuth < 3) { | 217 if (buildCounterMasterAuth < 3) { |
| 216 o.password = "foo"; | 218 o.password = "foo"; |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 251 } | 253 } |
| 252 | 254 |
| 253 core.int buildCounterOperation = 0; | 255 core.int buildCounterOperation = 0; |
| 254 buildOperation() { | 256 buildOperation() { |
| 255 var o = new api.Operation(); | 257 var o = new api.Operation(); |
| 256 buildCounterOperation++; | 258 buildCounterOperation++; |
| 257 if (buildCounterOperation < 3) { | 259 if (buildCounterOperation < 3) { |
| 258 o.errorMessage = "foo"; | 260 o.errorMessage = "foo"; |
| 259 o.name = "foo"; | 261 o.name = "foo"; |
| 260 o.operationType = "foo"; | 262 o.operationType = "foo"; |
| 263 o.selfLink = "foo"; |
| 261 o.status = "foo"; | 264 o.status = "foo"; |
| 262 o.target = "foo"; | 265 o.target = "foo"; |
| 263 o.zone = "foo"; | 266 o.zone = "foo"; |
| 264 } | 267 } |
| 265 buildCounterOperation--; | 268 buildCounterOperation--; |
| 266 return o; | 269 return o; |
| 267 } | 270 } |
| 268 | 271 |
| 269 checkOperation(api.Operation o) { | 272 checkOperation(api.Operation o) { |
| 270 buildCounterOperation++; | 273 buildCounterOperation++; |
| 271 if (buildCounterOperation < 3) { | 274 if (buildCounterOperation < 3) { |
| 272 unittest.expect(o.errorMessage, unittest.equals('foo')); | 275 unittest.expect(o.errorMessage, unittest.equals('foo')); |
| 273 unittest.expect(o.name, unittest.equals('foo')); | 276 unittest.expect(o.name, unittest.equals('foo')); |
| 274 unittest.expect(o.operationType, unittest.equals('foo')); | 277 unittest.expect(o.operationType, unittest.equals('foo')); |
| 278 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 275 unittest.expect(o.status, unittest.equals('foo')); | 279 unittest.expect(o.status, unittest.equals('foo')); |
| 276 unittest.expect(o.target, unittest.equals('foo')); | 280 unittest.expect(o.target, unittest.equals('foo')); |
| 277 unittest.expect(o.zone, unittest.equals('foo')); | 281 unittest.expect(o.zone, unittest.equals('foo')); |
| 278 } | 282 } |
| 279 buildCounterOperation--; | 283 buildCounterOperation--; |
| 280 } | 284 } |
| 281 | 285 |
| 282 | 286 |
| 283 main() { | 287 main() { |
| 284 unittest.group("obj-schema-Cluster", () { | 288 unittest.group("obj-schema-Cluster", () { |
| (...skipping 437 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 722 res.list(arg_projectId, arg_zoneId).then(unittest.expectAsync(((api.ListOp
erationsResponse response) { | 726 res.list(arg_projectId, arg_zoneId).then(unittest.expectAsync(((api.ListOp
erationsResponse response) { |
| 723 checkListOperationsResponse(response); | 727 checkListOperationsResponse(response); |
| 724 }))); | 728 }))); |
| 725 }); | 729 }); |
| 726 | 730 |
| 727 }); | 731 }); |
| 728 | 732 |
| 729 | 733 |
| 730 } | 734 } |
| 731 | 735 |
| OLD | NEW |