| 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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 } | 75 } |
| 76 | 76 |
| 77 checkCreateClusterRequest(api.CreateClusterRequest o) { | 77 checkCreateClusterRequest(api.CreateClusterRequest o) { |
| 78 buildCounterCreateClusterRequest++; | 78 buildCounterCreateClusterRequest++; |
| 79 if (buildCounterCreateClusterRequest < 3) { | 79 if (buildCounterCreateClusterRequest < 3) { |
| 80 checkCluster(o.cluster); | 80 checkCluster(o.cluster); |
| 81 } | 81 } |
| 82 buildCounterCreateClusterRequest--; | 82 buildCounterCreateClusterRequest--; |
| 83 } | 83 } |
| 84 | 84 |
| 85 buildUnnamed1203() { | 85 buildUnnamed1260() { |
| 86 var o = new core.List<api.Cluster>(); | 86 var o = new core.List<api.Cluster>(); |
| 87 o.add(buildCluster()); | 87 o.add(buildCluster()); |
| 88 o.add(buildCluster()); | 88 o.add(buildCluster()); |
| 89 return o; | 89 return o; |
| 90 } | 90 } |
| 91 | 91 |
| 92 checkUnnamed1203(core.List<api.Cluster> o) { | 92 checkUnnamed1260(core.List<api.Cluster> o) { |
| 93 unittest.expect(o, unittest.hasLength(2)); | 93 unittest.expect(o, unittest.hasLength(2)); |
| 94 checkCluster(o[0]); | 94 checkCluster(o[0]); |
| 95 checkCluster(o[1]); | 95 checkCluster(o[1]); |
| 96 } | 96 } |
| 97 | 97 |
| 98 core.int buildCounterListAggregatedClustersResponse = 0; | 98 core.int buildCounterListAggregatedClustersResponse = 0; |
| 99 buildListAggregatedClustersResponse() { | 99 buildListAggregatedClustersResponse() { |
| 100 var o = new api.ListAggregatedClustersResponse(); | 100 var o = new api.ListAggregatedClustersResponse(); |
| 101 buildCounterListAggregatedClustersResponse++; | 101 buildCounterListAggregatedClustersResponse++; |
| 102 if (buildCounterListAggregatedClustersResponse < 3) { | 102 if (buildCounterListAggregatedClustersResponse < 3) { |
| 103 o.clusters = buildUnnamed1203(); | 103 o.clusters = buildUnnamed1260(); |
| 104 } | 104 } |
| 105 buildCounterListAggregatedClustersResponse--; | 105 buildCounterListAggregatedClustersResponse--; |
| 106 return o; | 106 return o; |
| 107 } | 107 } |
| 108 | 108 |
| 109 checkListAggregatedClustersResponse(api.ListAggregatedClustersResponse o) { | 109 checkListAggregatedClustersResponse(api.ListAggregatedClustersResponse o) { |
| 110 buildCounterListAggregatedClustersResponse++; | 110 buildCounterListAggregatedClustersResponse++; |
| 111 if (buildCounterListAggregatedClustersResponse < 3) { | 111 if (buildCounterListAggregatedClustersResponse < 3) { |
| 112 checkUnnamed1203(o.clusters); | 112 checkUnnamed1260(o.clusters); |
| 113 } | 113 } |
| 114 buildCounterListAggregatedClustersResponse--; | 114 buildCounterListAggregatedClustersResponse--; |
| 115 } | 115 } |
| 116 | 116 |
| 117 buildUnnamed1204() { | 117 buildUnnamed1261() { |
| 118 var o = new core.List<api.Operation>(); | 118 var o = new core.List<api.Operation>(); |
| 119 o.add(buildOperation()); | 119 o.add(buildOperation()); |
| 120 o.add(buildOperation()); | 120 o.add(buildOperation()); |
| 121 return o; | 121 return o; |
| 122 } | 122 } |
| 123 | 123 |
| 124 checkUnnamed1204(core.List<api.Operation> o) { | 124 checkUnnamed1261(core.List<api.Operation> o) { |
| 125 unittest.expect(o, unittest.hasLength(2)); | 125 unittest.expect(o, unittest.hasLength(2)); |
| 126 checkOperation(o[0]); | 126 checkOperation(o[0]); |
| 127 checkOperation(o[1]); | 127 checkOperation(o[1]); |
| 128 } | 128 } |
| 129 | 129 |
| 130 core.int buildCounterListAggregatedOperationsResponse = 0; | 130 core.int buildCounterListAggregatedOperationsResponse = 0; |
| 131 buildListAggregatedOperationsResponse() { | 131 buildListAggregatedOperationsResponse() { |
| 132 var o = new api.ListAggregatedOperationsResponse(); | 132 var o = new api.ListAggregatedOperationsResponse(); |
| 133 buildCounterListAggregatedOperationsResponse++; | 133 buildCounterListAggregatedOperationsResponse++; |
| 134 if (buildCounterListAggregatedOperationsResponse < 3) { | 134 if (buildCounterListAggregatedOperationsResponse < 3) { |
| 135 o.operations = buildUnnamed1204(); | 135 o.operations = buildUnnamed1261(); |
| 136 } | 136 } |
| 137 buildCounterListAggregatedOperationsResponse--; | 137 buildCounterListAggregatedOperationsResponse--; |
| 138 return o; | 138 return o; |
| 139 } | 139 } |
| 140 | 140 |
| 141 checkListAggregatedOperationsResponse(api.ListAggregatedOperationsResponse o) { | 141 checkListAggregatedOperationsResponse(api.ListAggregatedOperationsResponse o) { |
| 142 buildCounterListAggregatedOperationsResponse++; | 142 buildCounterListAggregatedOperationsResponse++; |
| 143 if (buildCounterListAggregatedOperationsResponse < 3) { | 143 if (buildCounterListAggregatedOperationsResponse < 3) { |
| 144 checkUnnamed1204(o.operations); | 144 checkUnnamed1261(o.operations); |
| 145 } | 145 } |
| 146 buildCounterListAggregatedOperationsResponse--; | 146 buildCounterListAggregatedOperationsResponse--; |
| 147 } | 147 } |
| 148 | 148 |
| 149 buildUnnamed1205() { | 149 buildUnnamed1262() { |
| 150 var o = new core.List<api.Cluster>(); | 150 var o = new core.List<api.Cluster>(); |
| 151 o.add(buildCluster()); | 151 o.add(buildCluster()); |
| 152 o.add(buildCluster()); | 152 o.add(buildCluster()); |
| 153 return o; | 153 return o; |
| 154 } | 154 } |
| 155 | 155 |
| 156 checkUnnamed1205(core.List<api.Cluster> o) { | 156 checkUnnamed1262(core.List<api.Cluster> o) { |
| 157 unittest.expect(o, unittest.hasLength(2)); | 157 unittest.expect(o, unittest.hasLength(2)); |
| 158 checkCluster(o[0]); | 158 checkCluster(o[0]); |
| 159 checkCluster(o[1]); | 159 checkCluster(o[1]); |
| 160 } | 160 } |
| 161 | 161 |
| 162 core.int buildCounterListClustersResponse = 0; | 162 core.int buildCounterListClustersResponse = 0; |
| 163 buildListClustersResponse() { | 163 buildListClustersResponse() { |
| 164 var o = new api.ListClustersResponse(); | 164 var o = new api.ListClustersResponse(); |
| 165 buildCounterListClustersResponse++; | 165 buildCounterListClustersResponse++; |
| 166 if (buildCounterListClustersResponse < 3) { | 166 if (buildCounterListClustersResponse < 3) { |
| 167 o.clusters = buildUnnamed1205(); | 167 o.clusters = buildUnnamed1262(); |
| 168 } | 168 } |
| 169 buildCounterListClustersResponse--; | 169 buildCounterListClustersResponse--; |
| 170 return o; | 170 return o; |
| 171 } | 171 } |
| 172 | 172 |
| 173 checkListClustersResponse(api.ListClustersResponse o) { | 173 checkListClustersResponse(api.ListClustersResponse o) { |
| 174 buildCounterListClustersResponse++; | 174 buildCounterListClustersResponse++; |
| 175 if (buildCounterListClustersResponse < 3) { | 175 if (buildCounterListClustersResponse < 3) { |
| 176 checkUnnamed1205(o.clusters); | 176 checkUnnamed1262(o.clusters); |
| 177 } | 177 } |
| 178 buildCounterListClustersResponse--; | 178 buildCounterListClustersResponse--; |
| 179 } | 179 } |
| 180 | 180 |
| 181 buildUnnamed1206() { | 181 buildUnnamed1263() { |
| 182 var o = new core.List<api.Operation>(); | 182 var o = new core.List<api.Operation>(); |
| 183 o.add(buildOperation()); | 183 o.add(buildOperation()); |
| 184 o.add(buildOperation()); | 184 o.add(buildOperation()); |
| 185 return o; | 185 return o; |
| 186 } | 186 } |
| 187 | 187 |
| 188 checkUnnamed1206(core.List<api.Operation> o) { | 188 checkUnnamed1263(core.List<api.Operation> o) { |
| 189 unittest.expect(o, unittest.hasLength(2)); | 189 unittest.expect(o, unittest.hasLength(2)); |
| 190 checkOperation(o[0]); | 190 checkOperation(o[0]); |
| 191 checkOperation(o[1]); | 191 checkOperation(o[1]); |
| 192 } | 192 } |
| 193 | 193 |
| 194 core.int buildCounterListOperationsResponse = 0; | 194 core.int buildCounterListOperationsResponse = 0; |
| 195 buildListOperationsResponse() { | 195 buildListOperationsResponse() { |
| 196 var o = new api.ListOperationsResponse(); | 196 var o = new api.ListOperationsResponse(); |
| 197 buildCounterListOperationsResponse++; | 197 buildCounterListOperationsResponse++; |
| 198 if (buildCounterListOperationsResponse < 3) { | 198 if (buildCounterListOperationsResponse < 3) { |
| 199 o.operations = buildUnnamed1206(); | 199 o.operations = buildUnnamed1263(); |
| 200 } | 200 } |
| 201 buildCounterListOperationsResponse--; | 201 buildCounterListOperationsResponse--; |
| 202 return o; | 202 return o; |
| 203 } | 203 } |
| 204 | 204 |
| 205 checkListOperationsResponse(api.ListOperationsResponse o) { | 205 checkListOperationsResponse(api.ListOperationsResponse o) { |
| 206 buildCounterListOperationsResponse++; | 206 buildCounterListOperationsResponse++; |
| 207 if (buildCounterListOperationsResponse < 3) { | 207 if (buildCounterListOperationsResponse < 3) { |
| 208 checkUnnamed1206(o.operations); | 208 checkUnnamed1263(o.operations); |
| 209 } | 209 } |
| 210 buildCounterListOperationsResponse--; | 210 buildCounterListOperationsResponse--; |
| 211 } | 211 } |
| 212 | 212 |
| 213 core.int buildCounterMasterAuth = 0; | 213 core.int buildCounterMasterAuth = 0; |
| 214 buildMasterAuth() { | 214 buildMasterAuth() { |
| 215 var o = new api.MasterAuth(); | 215 var o = new api.MasterAuth(); |
| 216 buildCounterMasterAuth++; | 216 buildCounterMasterAuth++; |
| 217 if (buildCounterMasterAuth < 3) { | 217 if (buildCounterMasterAuth < 3) { |
| 218 o.password = "foo"; | 218 o.password = "foo"; |
| (...skipping 507 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 726 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) { |
| 727 checkListOperationsResponse(response); | 727 checkListOperationsResponse(response); |
| 728 }))); | 728 }))); |
| 729 }); | 729 }); |
| 730 | 730 |
| 731 }); | 731 }); |
| 732 | 732 |
| 733 | 733 |
| 734 } | 734 } |
| 735 | 735 |
| OLD | NEW |