| OLD | NEW |
| 1 library googleapis_beta.clouduseraccounts.beta.test; | 1 library googleapis_beta.clouduseraccounts.beta.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:test/test.dart' as unittest; |
| 11 | 11 |
| 12 import 'package:googleapis_beta/clouduseraccounts/beta.dart' as api; | 12 import 'package:googleapis_beta/clouduseraccounts/beta.dart' as api; |
| 13 | 13 |
| 14 class HttpServerMock extends http.BaseClient { | 14 class HttpServerMock extends http.BaseClient { |
| 15 core.Function _callback; | 15 core.Function _callback; |
| 16 core.bool _expectJson; | 16 core.bool _expectJson; |
| 17 | 17 |
| 18 void register(core.Function callback, core.bool expectJson) { | 18 void register(core.Function callback, core.bool expectJson) { |
| 19 _callback = callback; | 19 _callback = callback; |
| 20 _expectJson = expectJson; | 20 _expectJson = expectJson; |
| (...skipping 18 matching lines...) Expand all Loading... |
| 39 } else { | 39 } else { |
| 40 return stream.toBytes().then((data) { | 40 return stream.toBytes().then((data) { |
| 41 return _callback(request, data); | 41 return _callback(request, data); |
| 42 }); | 42 }); |
| 43 } | 43 } |
| 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<core.String, core.String> headers, core.String bod
y) { |
| 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 buildUnnamed3665() { | 54 buildUnnamed3139() { |
| 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 checkUnnamed3665(core.List<core.String> o) { | 61 checkUnnamed3139(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 buildCounterAuthorizedKeysView = 0; | 67 core.int buildCounterAuthorizedKeysView = 0; |
| 68 buildAuthorizedKeysView() { | 68 buildAuthorizedKeysView() { |
| 69 var o = new api.AuthorizedKeysView(); | 69 var o = new api.AuthorizedKeysView(); |
| 70 buildCounterAuthorizedKeysView++; | 70 buildCounterAuthorizedKeysView++; |
| 71 if (buildCounterAuthorizedKeysView < 3) { | 71 if (buildCounterAuthorizedKeysView < 3) { |
| 72 o.keys = buildUnnamed3665(); | 72 o.keys = buildUnnamed3139(); |
| 73 o.sudoer = true; | 73 o.sudoer = true; |
| 74 } | 74 } |
| 75 buildCounterAuthorizedKeysView--; | 75 buildCounterAuthorizedKeysView--; |
| 76 return o; | 76 return o; |
| 77 } | 77 } |
| 78 | 78 |
| 79 checkAuthorizedKeysView(api.AuthorizedKeysView o) { | 79 checkAuthorizedKeysView(api.AuthorizedKeysView o) { |
| 80 buildCounterAuthorizedKeysView++; | 80 buildCounterAuthorizedKeysView++; |
| 81 if (buildCounterAuthorizedKeysView < 3) { | 81 if (buildCounterAuthorizedKeysView < 3) { |
| 82 checkUnnamed3665(o.keys); | 82 checkUnnamed3139(o.keys); |
| 83 unittest.expect(o.sudoer, unittest.isTrue); | 83 unittest.expect(o.sudoer, unittest.isTrue); |
| 84 } | 84 } |
| 85 buildCounterAuthorizedKeysView--; | 85 buildCounterAuthorizedKeysView--; |
| 86 } | 86 } |
| 87 | 87 |
| 88 buildUnnamed3666() { | 88 buildUnnamed3140() { |
| 89 var o = new core.List<core.String>(); | 89 var o = new core.List<core.String>(); |
| 90 o.add("foo"); | 90 o.add("foo"); |
| 91 o.add("foo"); | 91 o.add("foo"); |
| 92 return o; | 92 return o; |
| 93 } | 93 } |
| 94 | 94 |
| 95 checkUnnamed3666(core.List<core.String> o) { | 95 checkUnnamed3140(core.List<core.String> o) { |
| 96 unittest.expect(o, unittest.hasLength(2)); | 96 unittest.expect(o, unittest.hasLength(2)); |
| 97 unittest.expect(o[0], unittest.equals('foo')); | 97 unittest.expect(o[0], unittest.equals('foo')); |
| 98 unittest.expect(o[1], unittest.equals('foo')); | 98 unittest.expect(o[1], unittest.equals('foo')); |
| 99 } | 99 } |
| 100 | 100 |
| 101 core.int buildCounterGroup = 0; | 101 core.int buildCounterGroup = 0; |
| 102 buildGroup() { | 102 buildGroup() { |
| 103 var o = new api.Group(); | 103 var o = new api.Group(); |
| 104 buildCounterGroup++; | 104 buildCounterGroup++; |
| 105 if (buildCounterGroup < 3) { | 105 if (buildCounterGroup < 3) { |
| 106 o.creationTimestamp = "foo"; | 106 o.creationTimestamp = "foo"; |
| 107 o.description = "foo"; | 107 o.description = "foo"; |
| 108 o.id = "foo"; | 108 o.id = "foo"; |
| 109 o.kind = "foo"; | 109 o.kind = "foo"; |
| 110 o.members = buildUnnamed3666(); | 110 o.members = buildUnnamed3140(); |
| 111 o.name = "foo"; | 111 o.name = "foo"; |
| 112 o.selfLink = "foo"; | 112 o.selfLink = "foo"; |
| 113 } | 113 } |
| 114 buildCounterGroup--; | 114 buildCounterGroup--; |
| 115 return o; | 115 return o; |
| 116 } | 116 } |
| 117 | 117 |
| 118 checkGroup(api.Group o) { | 118 checkGroup(api.Group o) { |
| 119 buildCounterGroup++; | 119 buildCounterGroup++; |
| 120 if (buildCounterGroup < 3) { | 120 if (buildCounterGroup < 3) { |
| 121 unittest.expect(o.creationTimestamp, unittest.equals('foo')); | 121 unittest.expect(o.creationTimestamp, unittest.equals('foo')); |
| 122 unittest.expect(o.description, unittest.equals('foo')); | 122 unittest.expect(o.description, unittest.equals('foo')); |
| 123 unittest.expect(o.id, unittest.equals('foo')); | 123 unittest.expect(o.id, unittest.equals('foo')); |
| 124 unittest.expect(o.kind, unittest.equals('foo')); | 124 unittest.expect(o.kind, unittest.equals('foo')); |
| 125 checkUnnamed3666(o.members); | 125 checkUnnamed3140(o.members); |
| 126 unittest.expect(o.name, unittest.equals('foo')); | 126 unittest.expect(o.name, unittest.equals('foo')); |
| 127 unittest.expect(o.selfLink, unittest.equals('foo')); | 127 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 128 } | 128 } |
| 129 buildCounterGroup--; | 129 buildCounterGroup--; |
| 130 } | 130 } |
| 131 | 131 |
| 132 buildUnnamed3667() { | 132 buildUnnamed3141() { |
| 133 var o = new core.List<api.Group>(); | 133 var o = new core.List<api.Group>(); |
| 134 o.add(buildGroup()); | 134 o.add(buildGroup()); |
| 135 o.add(buildGroup()); | 135 o.add(buildGroup()); |
| 136 return o; | 136 return o; |
| 137 } | 137 } |
| 138 | 138 |
| 139 checkUnnamed3667(core.List<api.Group> o) { | 139 checkUnnamed3141(core.List<api.Group> o) { |
| 140 unittest.expect(o, unittest.hasLength(2)); | 140 unittest.expect(o, unittest.hasLength(2)); |
| 141 checkGroup(o[0]); | 141 checkGroup(o[0]); |
| 142 checkGroup(o[1]); | 142 checkGroup(o[1]); |
| 143 } | 143 } |
| 144 | 144 |
| 145 core.int buildCounterGroupList = 0; | 145 core.int buildCounterGroupList = 0; |
| 146 buildGroupList() { | 146 buildGroupList() { |
| 147 var o = new api.GroupList(); | 147 var o = new api.GroupList(); |
| 148 buildCounterGroupList++; | 148 buildCounterGroupList++; |
| 149 if (buildCounterGroupList < 3) { | 149 if (buildCounterGroupList < 3) { |
| 150 o.id = "foo"; | 150 o.id = "foo"; |
| 151 o.items = buildUnnamed3667(); | 151 o.items = buildUnnamed3141(); |
| 152 o.kind = "foo"; | 152 o.kind = "foo"; |
| 153 o.nextPageToken = "foo"; | 153 o.nextPageToken = "foo"; |
| 154 o.selfLink = "foo"; | 154 o.selfLink = "foo"; |
| 155 } | 155 } |
| 156 buildCounterGroupList--; | 156 buildCounterGroupList--; |
| 157 return o; | 157 return o; |
| 158 } | 158 } |
| 159 | 159 |
| 160 checkGroupList(api.GroupList o) { | 160 checkGroupList(api.GroupList o) { |
| 161 buildCounterGroupList++; | 161 buildCounterGroupList++; |
| 162 if (buildCounterGroupList < 3) { | 162 if (buildCounterGroupList < 3) { |
| 163 unittest.expect(o.id, unittest.equals('foo')); | 163 unittest.expect(o.id, unittest.equals('foo')); |
| 164 checkUnnamed3667(o.items); | 164 checkUnnamed3141(o.items); |
| 165 unittest.expect(o.kind, unittest.equals('foo')); | 165 unittest.expect(o.kind, unittest.equals('foo')); |
| 166 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 166 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 167 unittest.expect(o.selfLink, unittest.equals('foo')); | 167 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 168 } | 168 } |
| 169 buildCounterGroupList--; | 169 buildCounterGroupList--; |
| 170 } | 170 } |
| 171 | 171 |
| 172 buildUnnamed3668() { | 172 buildUnnamed3142() { |
| 173 var o = new core.List<core.String>(); | 173 var o = new core.List<core.String>(); |
| 174 o.add("foo"); | 174 o.add("foo"); |
| 175 o.add("foo"); | 175 o.add("foo"); |
| 176 return o; | 176 return o; |
| 177 } | 177 } |
| 178 | 178 |
| 179 checkUnnamed3668(core.List<core.String> o) { | 179 checkUnnamed3142(core.List<core.String> o) { |
| 180 unittest.expect(o, unittest.hasLength(2)); | 180 unittest.expect(o, unittest.hasLength(2)); |
| 181 unittest.expect(o[0], unittest.equals('foo')); | 181 unittest.expect(o[0], unittest.equals('foo')); |
| 182 unittest.expect(o[1], unittest.equals('foo')); | 182 unittest.expect(o[1], unittest.equals('foo')); |
| 183 } | 183 } |
| 184 | 184 |
| 185 core.int buildCounterGroupsAddMemberRequest = 0; | 185 core.int buildCounterGroupsAddMemberRequest = 0; |
| 186 buildGroupsAddMemberRequest() { | 186 buildGroupsAddMemberRequest() { |
| 187 var o = new api.GroupsAddMemberRequest(); | 187 var o = new api.GroupsAddMemberRequest(); |
| 188 buildCounterGroupsAddMemberRequest++; | 188 buildCounterGroupsAddMemberRequest++; |
| 189 if (buildCounterGroupsAddMemberRequest < 3) { | 189 if (buildCounterGroupsAddMemberRequest < 3) { |
| 190 o.users = buildUnnamed3668(); | 190 o.users = buildUnnamed3142(); |
| 191 } | 191 } |
| 192 buildCounterGroupsAddMemberRequest--; | 192 buildCounterGroupsAddMemberRequest--; |
| 193 return o; | 193 return o; |
| 194 } | 194 } |
| 195 | 195 |
| 196 checkGroupsAddMemberRequest(api.GroupsAddMemberRequest o) { | 196 checkGroupsAddMemberRequest(api.GroupsAddMemberRequest o) { |
| 197 buildCounterGroupsAddMemberRequest++; | 197 buildCounterGroupsAddMemberRequest++; |
| 198 if (buildCounterGroupsAddMemberRequest < 3) { | 198 if (buildCounterGroupsAddMemberRequest < 3) { |
| 199 checkUnnamed3668(o.users); | 199 checkUnnamed3142(o.users); |
| 200 } | 200 } |
| 201 buildCounterGroupsAddMemberRequest--; | 201 buildCounterGroupsAddMemberRequest--; |
| 202 } | 202 } |
| 203 | 203 |
| 204 buildUnnamed3669() { | 204 buildUnnamed3143() { |
| 205 var o = new core.List<core.String>(); | 205 var o = new core.List<core.String>(); |
| 206 o.add("foo"); | 206 o.add("foo"); |
| 207 o.add("foo"); | 207 o.add("foo"); |
| 208 return o; | 208 return o; |
| 209 } | 209 } |
| 210 | 210 |
| 211 checkUnnamed3669(core.List<core.String> o) { | 211 checkUnnamed3143(core.List<core.String> o) { |
| 212 unittest.expect(o, unittest.hasLength(2)); | 212 unittest.expect(o, unittest.hasLength(2)); |
| 213 unittest.expect(o[0], unittest.equals('foo')); | 213 unittest.expect(o[0], unittest.equals('foo')); |
| 214 unittest.expect(o[1], unittest.equals('foo')); | 214 unittest.expect(o[1], unittest.equals('foo')); |
| 215 } | 215 } |
| 216 | 216 |
| 217 core.int buildCounterGroupsRemoveMemberRequest = 0; | 217 core.int buildCounterGroupsRemoveMemberRequest = 0; |
| 218 buildGroupsRemoveMemberRequest() { | 218 buildGroupsRemoveMemberRequest() { |
| 219 var o = new api.GroupsRemoveMemberRequest(); | 219 var o = new api.GroupsRemoveMemberRequest(); |
| 220 buildCounterGroupsRemoveMemberRequest++; | 220 buildCounterGroupsRemoveMemberRequest++; |
| 221 if (buildCounterGroupsRemoveMemberRequest < 3) { | 221 if (buildCounterGroupsRemoveMemberRequest < 3) { |
| 222 o.users = buildUnnamed3669(); | 222 o.users = buildUnnamed3143(); |
| 223 } | 223 } |
| 224 buildCounterGroupsRemoveMemberRequest--; | 224 buildCounterGroupsRemoveMemberRequest--; |
| 225 return o; | 225 return o; |
| 226 } | 226 } |
| 227 | 227 |
| 228 checkGroupsRemoveMemberRequest(api.GroupsRemoveMemberRequest o) { | 228 checkGroupsRemoveMemberRequest(api.GroupsRemoveMemberRequest o) { |
| 229 buildCounterGroupsRemoveMemberRequest++; | 229 buildCounterGroupsRemoveMemberRequest++; |
| 230 if (buildCounterGroupsRemoveMemberRequest < 3) { | 230 if (buildCounterGroupsRemoveMemberRequest < 3) { |
| 231 checkUnnamed3669(o.users); | 231 checkUnnamed3143(o.users); |
| 232 } | 232 } |
| 233 buildCounterGroupsRemoveMemberRequest--; | 233 buildCounterGroupsRemoveMemberRequest--; |
| 234 } | 234 } |
| 235 | 235 |
| 236 buildUnnamed3670() { | 236 buildUnnamed3144() { |
| 237 var o = new core.List<api.LinuxGroupView>(); | 237 var o = new core.List<api.LinuxGroupView>(); |
| 238 o.add(buildLinuxGroupView()); | 238 o.add(buildLinuxGroupView()); |
| 239 o.add(buildLinuxGroupView()); | 239 o.add(buildLinuxGroupView()); |
| 240 return o; | 240 return o; |
| 241 } | 241 } |
| 242 | 242 |
| 243 checkUnnamed3670(core.List<api.LinuxGroupView> o) { | 243 checkUnnamed3144(core.List<api.LinuxGroupView> o) { |
| 244 unittest.expect(o, unittest.hasLength(2)); | 244 unittest.expect(o, unittest.hasLength(2)); |
| 245 checkLinuxGroupView(o[0]); | 245 checkLinuxGroupView(o[0]); |
| 246 checkLinuxGroupView(o[1]); | 246 checkLinuxGroupView(o[1]); |
| 247 } | 247 } |
| 248 | 248 |
| 249 buildUnnamed3671() { | 249 buildUnnamed3145() { |
| 250 var o = new core.List<api.LinuxUserView>(); | 250 var o = new core.List<api.LinuxUserView>(); |
| 251 o.add(buildLinuxUserView()); | 251 o.add(buildLinuxUserView()); |
| 252 o.add(buildLinuxUserView()); | 252 o.add(buildLinuxUserView()); |
| 253 return o; | 253 return o; |
| 254 } | 254 } |
| 255 | 255 |
| 256 checkUnnamed3671(core.List<api.LinuxUserView> o) { | 256 checkUnnamed3145(core.List<api.LinuxUserView> o) { |
| 257 unittest.expect(o, unittest.hasLength(2)); | 257 unittest.expect(o, unittest.hasLength(2)); |
| 258 checkLinuxUserView(o[0]); | 258 checkLinuxUserView(o[0]); |
| 259 checkLinuxUserView(o[1]); | 259 checkLinuxUserView(o[1]); |
| 260 } | 260 } |
| 261 | 261 |
| 262 core.int buildCounterLinuxAccountViews = 0; | 262 core.int buildCounterLinuxAccountViews = 0; |
| 263 buildLinuxAccountViews() { | 263 buildLinuxAccountViews() { |
| 264 var o = new api.LinuxAccountViews(); | 264 var o = new api.LinuxAccountViews(); |
| 265 buildCounterLinuxAccountViews++; | 265 buildCounterLinuxAccountViews++; |
| 266 if (buildCounterLinuxAccountViews < 3) { | 266 if (buildCounterLinuxAccountViews < 3) { |
| 267 o.groupViews = buildUnnamed3670(); | 267 o.groupViews = buildUnnamed3144(); |
| 268 o.kind = "foo"; | 268 o.kind = "foo"; |
| 269 o.userViews = buildUnnamed3671(); | 269 o.userViews = buildUnnamed3145(); |
| 270 } | 270 } |
| 271 buildCounterLinuxAccountViews--; | 271 buildCounterLinuxAccountViews--; |
| 272 return o; | 272 return o; |
| 273 } | 273 } |
| 274 | 274 |
| 275 checkLinuxAccountViews(api.LinuxAccountViews o) { | 275 checkLinuxAccountViews(api.LinuxAccountViews o) { |
| 276 buildCounterLinuxAccountViews++; | 276 buildCounterLinuxAccountViews++; |
| 277 if (buildCounterLinuxAccountViews < 3) { | 277 if (buildCounterLinuxAccountViews < 3) { |
| 278 checkUnnamed3670(o.groupViews); | 278 checkUnnamed3144(o.groupViews); |
| 279 unittest.expect(o.kind, unittest.equals('foo')); | 279 unittest.expect(o.kind, unittest.equals('foo')); |
| 280 checkUnnamed3671(o.userViews); | 280 checkUnnamed3145(o.userViews); |
| 281 } | 281 } |
| 282 buildCounterLinuxAccountViews--; | 282 buildCounterLinuxAccountViews--; |
| 283 } | 283 } |
| 284 | 284 |
| 285 core.int buildCounterLinuxGetAuthorizedKeysViewResponse = 0; | 285 core.int buildCounterLinuxGetAuthorizedKeysViewResponse = 0; |
| 286 buildLinuxGetAuthorizedKeysViewResponse() { | 286 buildLinuxGetAuthorizedKeysViewResponse() { |
| 287 var o = new api.LinuxGetAuthorizedKeysViewResponse(); | 287 var o = new api.LinuxGetAuthorizedKeysViewResponse(); |
| 288 buildCounterLinuxGetAuthorizedKeysViewResponse++; | 288 buildCounterLinuxGetAuthorizedKeysViewResponse++; |
| 289 if (buildCounterLinuxGetAuthorizedKeysViewResponse < 3) { | 289 if (buildCounterLinuxGetAuthorizedKeysViewResponse < 3) { |
| 290 o.resource = buildAuthorizedKeysView(); | 290 o.resource = buildAuthorizedKeysView(); |
| (...skipping 22 matching lines...) Expand all Loading... |
| 313 } | 313 } |
| 314 | 314 |
| 315 checkLinuxGetLinuxAccountViewsResponse(api.LinuxGetLinuxAccountViewsResponse o)
{ | 315 checkLinuxGetLinuxAccountViewsResponse(api.LinuxGetLinuxAccountViewsResponse o)
{ |
| 316 buildCounterLinuxGetLinuxAccountViewsResponse++; | 316 buildCounterLinuxGetLinuxAccountViewsResponse++; |
| 317 if (buildCounterLinuxGetLinuxAccountViewsResponse < 3) { | 317 if (buildCounterLinuxGetLinuxAccountViewsResponse < 3) { |
| 318 checkLinuxAccountViews(o.resource); | 318 checkLinuxAccountViews(o.resource); |
| 319 } | 319 } |
| 320 buildCounterLinuxGetLinuxAccountViewsResponse--; | 320 buildCounterLinuxGetLinuxAccountViewsResponse--; |
| 321 } | 321 } |
| 322 | 322 |
| 323 buildUnnamed3672() { | 323 buildUnnamed3146() { |
| 324 var o = new core.List<core.String>(); | 324 var o = new core.List<core.String>(); |
| 325 o.add("foo"); | 325 o.add("foo"); |
| 326 o.add("foo"); | 326 o.add("foo"); |
| 327 return o; | 327 return o; |
| 328 } | 328 } |
| 329 | 329 |
| 330 checkUnnamed3672(core.List<core.String> o) { | 330 checkUnnamed3146(core.List<core.String> o) { |
| 331 unittest.expect(o, unittest.hasLength(2)); | 331 unittest.expect(o, unittest.hasLength(2)); |
| 332 unittest.expect(o[0], unittest.equals('foo')); | 332 unittest.expect(o[0], unittest.equals('foo')); |
| 333 unittest.expect(o[1], unittest.equals('foo')); | 333 unittest.expect(o[1], unittest.equals('foo')); |
| 334 } | 334 } |
| 335 | 335 |
| 336 core.int buildCounterLinuxGroupView = 0; | 336 core.int buildCounterLinuxGroupView = 0; |
| 337 buildLinuxGroupView() { | 337 buildLinuxGroupView() { |
| 338 var o = new api.LinuxGroupView(); | 338 var o = new api.LinuxGroupView(); |
| 339 buildCounterLinuxGroupView++; | 339 buildCounterLinuxGroupView++; |
| 340 if (buildCounterLinuxGroupView < 3) { | 340 if (buildCounterLinuxGroupView < 3) { |
| 341 o.gid = 42; | 341 o.gid = 42; |
| 342 o.groupName = "foo"; | 342 o.groupName = "foo"; |
| 343 o.members = buildUnnamed3672(); | 343 o.members = buildUnnamed3146(); |
| 344 } | 344 } |
| 345 buildCounterLinuxGroupView--; | 345 buildCounterLinuxGroupView--; |
| 346 return o; | 346 return o; |
| 347 } | 347 } |
| 348 | 348 |
| 349 checkLinuxGroupView(api.LinuxGroupView o) { | 349 checkLinuxGroupView(api.LinuxGroupView o) { |
| 350 buildCounterLinuxGroupView++; | 350 buildCounterLinuxGroupView++; |
| 351 if (buildCounterLinuxGroupView < 3) { | 351 if (buildCounterLinuxGroupView < 3) { |
| 352 unittest.expect(o.gid, unittest.equals(42)); | 352 unittest.expect(o.gid, unittest.equals(42)); |
| 353 unittest.expect(o.groupName, unittest.equals('foo')); | 353 unittest.expect(o.groupName, unittest.equals('foo')); |
| 354 checkUnnamed3672(o.members); | 354 checkUnnamed3146(o.members); |
| 355 } | 355 } |
| 356 buildCounterLinuxGroupView--; | 356 buildCounterLinuxGroupView--; |
| 357 } | 357 } |
| 358 | 358 |
| 359 core.int buildCounterLinuxUserView = 0; | 359 core.int buildCounterLinuxUserView = 0; |
| 360 buildLinuxUserView() { | 360 buildLinuxUserView() { |
| 361 var o = new api.LinuxUserView(); | 361 var o = new api.LinuxUserView(); |
| 362 buildCounterLinuxUserView++; | 362 buildCounterLinuxUserView++; |
| 363 if (buildCounterLinuxUserView < 3) { | 363 if (buildCounterLinuxUserView < 3) { |
| 364 o.gecos = "foo"; | 364 o.gecos = "foo"; |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 401 checkOperationErrorErrors(api.OperationErrorErrors o) { | 401 checkOperationErrorErrors(api.OperationErrorErrors o) { |
| 402 buildCounterOperationErrorErrors++; | 402 buildCounterOperationErrorErrors++; |
| 403 if (buildCounterOperationErrorErrors < 3) { | 403 if (buildCounterOperationErrorErrors < 3) { |
| 404 unittest.expect(o.code, unittest.equals('foo')); | 404 unittest.expect(o.code, unittest.equals('foo')); |
| 405 unittest.expect(o.location, unittest.equals('foo')); | 405 unittest.expect(o.location, unittest.equals('foo')); |
| 406 unittest.expect(o.message, unittest.equals('foo')); | 406 unittest.expect(o.message, unittest.equals('foo')); |
| 407 } | 407 } |
| 408 buildCounterOperationErrorErrors--; | 408 buildCounterOperationErrorErrors--; |
| 409 } | 409 } |
| 410 | 410 |
| 411 buildUnnamed3673() { | 411 buildUnnamed3147() { |
| 412 var o = new core.List<api.OperationErrorErrors>(); | 412 var o = new core.List<api.OperationErrorErrors>(); |
| 413 o.add(buildOperationErrorErrors()); | 413 o.add(buildOperationErrorErrors()); |
| 414 o.add(buildOperationErrorErrors()); | 414 o.add(buildOperationErrorErrors()); |
| 415 return o; | 415 return o; |
| 416 } | 416 } |
| 417 | 417 |
| 418 checkUnnamed3673(core.List<api.OperationErrorErrors> o) { | 418 checkUnnamed3147(core.List<api.OperationErrorErrors> o) { |
| 419 unittest.expect(o, unittest.hasLength(2)); | 419 unittest.expect(o, unittest.hasLength(2)); |
| 420 checkOperationErrorErrors(o[0]); | 420 checkOperationErrorErrors(o[0]); |
| 421 checkOperationErrorErrors(o[1]); | 421 checkOperationErrorErrors(o[1]); |
| 422 } | 422 } |
| 423 | 423 |
| 424 core.int buildCounterOperationError = 0; | 424 core.int buildCounterOperationError = 0; |
| 425 buildOperationError() { | 425 buildOperationError() { |
| 426 var o = new api.OperationError(); | 426 var o = new api.OperationError(); |
| 427 buildCounterOperationError++; | 427 buildCounterOperationError++; |
| 428 if (buildCounterOperationError < 3) { | 428 if (buildCounterOperationError < 3) { |
| 429 o.errors = buildUnnamed3673(); | 429 o.errors = buildUnnamed3147(); |
| 430 } | 430 } |
| 431 buildCounterOperationError--; | 431 buildCounterOperationError--; |
| 432 return o; | 432 return o; |
| 433 } | 433 } |
| 434 | 434 |
| 435 checkOperationError(api.OperationError o) { | 435 checkOperationError(api.OperationError o) { |
| 436 buildCounterOperationError++; | 436 buildCounterOperationError++; |
| 437 if (buildCounterOperationError < 3) { | 437 if (buildCounterOperationError < 3) { |
| 438 checkUnnamed3673(o.errors); | 438 checkUnnamed3147(o.errors); |
| 439 } | 439 } |
| 440 buildCounterOperationError--; | 440 buildCounterOperationError--; |
| 441 } | 441 } |
| 442 | 442 |
| 443 core.int buildCounterOperationWarningsData = 0; | 443 core.int buildCounterOperationWarningsData = 0; |
| 444 buildOperationWarningsData() { | 444 buildOperationWarningsData() { |
| 445 var o = new api.OperationWarningsData(); | 445 var o = new api.OperationWarningsData(); |
| 446 buildCounterOperationWarningsData++; | 446 buildCounterOperationWarningsData++; |
| 447 if (buildCounterOperationWarningsData < 3) { | 447 if (buildCounterOperationWarningsData < 3) { |
| 448 o.key = "foo"; | 448 o.key = "foo"; |
| 449 o.value = "foo"; | 449 o.value = "foo"; |
| 450 } | 450 } |
| 451 buildCounterOperationWarningsData--; | 451 buildCounterOperationWarningsData--; |
| 452 return o; | 452 return o; |
| 453 } | 453 } |
| 454 | 454 |
| 455 checkOperationWarningsData(api.OperationWarningsData o) { | 455 checkOperationWarningsData(api.OperationWarningsData o) { |
| 456 buildCounterOperationWarningsData++; | 456 buildCounterOperationWarningsData++; |
| 457 if (buildCounterOperationWarningsData < 3) { | 457 if (buildCounterOperationWarningsData < 3) { |
| 458 unittest.expect(o.key, unittest.equals('foo')); | 458 unittest.expect(o.key, unittest.equals('foo')); |
| 459 unittest.expect(o.value, unittest.equals('foo')); | 459 unittest.expect(o.value, unittest.equals('foo')); |
| 460 } | 460 } |
| 461 buildCounterOperationWarningsData--; | 461 buildCounterOperationWarningsData--; |
| 462 } | 462 } |
| 463 | 463 |
| 464 buildUnnamed3674() { | 464 buildUnnamed3148() { |
| 465 var o = new core.List<api.OperationWarningsData>(); | 465 var o = new core.List<api.OperationWarningsData>(); |
| 466 o.add(buildOperationWarningsData()); | 466 o.add(buildOperationWarningsData()); |
| 467 o.add(buildOperationWarningsData()); | 467 o.add(buildOperationWarningsData()); |
| 468 return o; | 468 return o; |
| 469 } | 469 } |
| 470 | 470 |
| 471 checkUnnamed3674(core.List<api.OperationWarningsData> o) { | 471 checkUnnamed3148(core.List<api.OperationWarningsData> o) { |
| 472 unittest.expect(o, unittest.hasLength(2)); | 472 unittest.expect(o, unittest.hasLength(2)); |
| 473 checkOperationWarningsData(o[0]); | 473 checkOperationWarningsData(o[0]); |
| 474 checkOperationWarningsData(o[1]); | 474 checkOperationWarningsData(o[1]); |
| 475 } | 475 } |
| 476 | 476 |
| 477 core.int buildCounterOperationWarnings = 0; | 477 core.int buildCounterOperationWarnings = 0; |
| 478 buildOperationWarnings() { | 478 buildOperationWarnings() { |
| 479 var o = new api.OperationWarnings(); | 479 var o = new api.OperationWarnings(); |
| 480 buildCounterOperationWarnings++; | 480 buildCounterOperationWarnings++; |
| 481 if (buildCounterOperationWarnings < 3) { | 481 if (buildCounterOperationWarnings < 3) { |
| 482 o.code = "foo"; | 482 o.code = "foo"; |
| 483 o.data = buildUnnamed3674(); | 483 o.data = buildUnnamed3148(); |
| 484 o.message = "foo"; | 484 o.message = "foo"; |
| 485 } | 485 } |
| 486 buildCounterOperationWarnings--; | 486 buildCounterOperationWarnings--; |
| 487 return o; | 487 return o; |
| 488 } | 488 } |
| 489 | 489 |
| 490 checkOperationWarnings(api.OperationWarnings o) { | 490 checkOperationWarnings(api.OperationWarnings o) { |
| 491 buildCounterOperationWarnings++; | 491 buildCounterOperationWarnings++; |
| 492 if (buildCounterOperationWarnings < 3) { | 492 if (buildCounterOperationWarnings < 3) { |
| 493 unittest.expect(o.code, unittest.equals('foo')); | 493 unittest.expect(o.code, unittest.equals('foo')); |
| 494 checkUnnamed3674(o.data); | 494 checkUnnamed3148(o.data); |
| 495 unittest.expect(o.message, unittest.equals('foo')); | 495 unittest.expect(o.message, unittest.equals('foo')); |
| 496 } | 496 } |
| 497 buildCounterOperationWarnings--; | 497 buildCounterOperationWarnings--; |
| 498 } | 498 } |
| 499 | 499 |
| 500 buildUnnamed3675() { | 500 buildUnnamed3149() { |
| 501 var o = new core.List<api.OperationWarnings>(); | 501 var o = new core.List<api.OperationWarnings>(); |
| 502 o.add(buildOperationWarnings()); | 502 o.add(buildOperationWarnings()); |
| 503 o.add(buildOperationWarnings()); | 503 o.add(buildOperationWarnings()); |
| 504 return o; | 504 return o; |
| 505 } | 505 } |
| 506 | 506 |
| 507 checkUnnamed3675(core.List<api.OperationWarnings> o) { | 507 checkUnnamed3149(core.List<api.OperationWarnings> o) { |
| 508 unittest.expect(o, unittest.hasLength(2)); | 508 unittest.expect(o, unittest.hasLength(2)); |
| 509 checkOperationWarnings(o[0]); | 509 checkOperationWarnings(o[0]); |
| 510 checkOperationWarnings(o[1]); | 510 checkOperationWarnings(o[1]); |
| 511 } | 511 } |
| 512 | 512 |
| 513 core.int buildCounterOperation = 0; | 513 core.int buildCounterOperation = 0; |
| 514 buildOperation() { | 514 buildOperation() { |
| 515 var o = new api.Operation(); | 515 var o = new api.Operation(); |
| 516 buildCounterOperation++; | 516 buildCounterOperation++; |
| 517 if (buildCounterOperation < 3) { | 517 if (buildCounterOperation < 3) { |
| (...skipping 11 matching lines...) Expand all Loading... |
| 529 o.operationType = "foo"; | 529 o.operationType = "foo"; |
| 530 o.progress = 42; | 530 o.progress = 42; |
| 531 o.region = "foo"; | 531 o.region = "foo"; |
| 532 o.selfLink = "foo"; | 532 o.selfLink = "foo"; |
| 533 o.startTime = "foo"; | 533 o.startTime = "foo"; |
| 534 o.status = "foo"; | 534 o.status = "foo"; |
| 535 o.statusMessage = "foo"; | 535 o.statusMessage = "foo"; |
| 536 o.targetId = "foo"; | 536 o.targetId = "foo"; |
| 537 o.targetLink = "foo"; | 537 o.targetLink = "foo"; |
| 538 o.user = "foo"; | 538 o.user = "foo"; |
| 539 o.warnings = buildUnnamed3675(); | 539 o.warnings = buildUnnamed3149(); |
| 540 o.zone = "foo"; | 540 o.zone = "foo"; |
| 541 } | 541 } |
| 542 buildCounterOperation--; | 542 buildCounterOperation--; |
| 543 return o; | 543 return o; |
| 544 } | 544 } |
| 545 | 545 |
| 546 checkOperation(api.Operation o) { | 546 checkOperation(api.Operation o) { |
| 547 buildCounterOperation++; | 547 buildCounterOperation++; |
| 548 if (buildCounterOperation < 3) { | 548 if (buildCounterOperation < 3) { |
| 549 unittest.expect(o.clientOperationId, unittest.equals('foo')); | 549 unittest.expect(o.clientOperationId, unittest.equals('foo')); |
| (...skipping 10 matching lines...) Expand all Loading... |
| 560 unittest.expect(o.operationType, unittest.equals('foo')); | 560 unittest.expect(o.operationType, unittest.equals('foo')); |
| 561 unittest.expect(o.progress, unittest.equals(42)); | 561 unittest.expect(o.progress, unittest.equals(42)); |
| 562 unittest.expect(o.region, unittest.equals('foo')); | 562 unittest.expect(o.region, unittest.equals('foo')); |
| 563 unittest.expect(o.selfLink, unittest.equals('foo')); | 563 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 564 unittest.expect(o.startTime, unittest.equals('foo')); | 564 unittest.expect(o.startTime, unittest.equals('foo')); |
| 565 unittest.expect(o.status, unittest.equals('foo')); | 565 unittest.expect(o.status, unittest.equals('foo')); |
| 566 unittest.expect(o.statusMessage, unittest.equals('foo')); | 566 unittest.expect(o.statusMessage, unittest.equals('foo')); |
| 567 unittest.expect(o.targetId, unittest.equals('foo')); | 567 unittest.expect(o.targetId, unittest.equals('foo')); |
| 568 unittest.expect(o.targetLink, unittest.equals('foo')); | 568 unittest.expect(o.targetLink, unittest.equals('foo')); |
| 569 unittest.expect(o.user, unittest.equals('foo')); | 569 unittest.expect(o.user, unittest.equals('foo')); |
| 570 checkUnnamed3675(o.warnings); | 570 checkUnnamed3149(o.warnings); |
| 571 unittest.expect(o.zone, unittest.equals('foo')); | 571 unittest.expect(o.zone, unittest.equals('foo')); |
| 572 } | 572 } |
| 573 buildCounterOperation--; | 573 buildCounterOperation--; |
| 574 } | 574 } |
| 575 | 575 |
| 576 buildUnnamed3676() { | 576 buildUnnamed3150() { |
| 577 var o = new core.List<api.Operation>(); | 577 var o = new core.List<api.Operation>(); |
| 578 o.add(buildOperation()); | 578 o.add(buildOperation()); |
| 579 o.add(buildOperation()); | 579 o.add(buildOperation()); |
| 580 return o; | 580 return o; |
| 581 } | 581 } |
| 582 | 582 |
| 583 checkUnnamed3676(core.List<api.Operation> o) { | 583 checkUnnamed3150(core.List<api.Operation> o) { |
| 584 unittest.expect(o, unittest.hasLength(2)); | 584 unittest.expect(o, unittest.hasLength(2)); |
| 585 checkOperation(o[0]); | 585 checkOperation(o[0]); |
| 586 checkOperation(o[1]); | 586 checkOperation(o[1]); |
| 587 } | 587 } |
| 588 | 588 |
| 589 core.int buildCounterOperationList = 0; | 589 core.int buildCounterOperationList = 0; |
| 590 buildOperationList() { | 590 buildOperationList() { |
| 591 var o = new api.OperationList(); | 591 var o = new api.OperationList(); |
| 592 buildCounterOperationList++; | 592 buildCounterOperationList++; |
| 593 if (buildCounterOperationList < 3) { | 593 if (buildCounterOperationList < 3) { |
| 594 o.id = "foo"; | 594 o.id = "foo"; |
| 595 o.items = buildUnnamed3676(); | 595 o.items = buildUnnamed3150(); |
| 596 o.kind = "foo"; | 596 o.kind = "foo"; |
| 597 o.nextPageToken = "foo"; | 597 o.nextPageToken = "foo"; |
| 598 o.selfLink = "foo"; | 598 o.selfLink = "foo"; |
| 599 } | 599 } |
| 600 buildCounterOperationList--; | 600 buildCounterOperationList--; |
| 601 return o; | 601 return o; |
| 602 } | 602 } |
| 603 | 603 |
| 604 checkOperationList(api.OperationList o) { | 604 checkOperationList(api.OperationList o) { |
| 605 buildCounterOperationList++; | 605 buildCounterOperationList++; |
| 606 if (buildCounterOperationList < 3) { | 606 if (buildCounterOperationList < 3) { |
| 607 unittest.expect(o.id, unittest.equals('foo')); | 607 unittest.expect(o.id, unittest.equals('foo')); |
| 608 checkUnnamed3676(o.items); | 608 checkUnnamed3150(o.items); |
| 609 unittest.expect(o.kind, unittest.equals('foo')); | 609 unittest.expect(o.kind, unittest.equals('foo')); |
| 610 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 610 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 611 unittest.expect(o.selfLink, unittest.equals('foo')); | 611 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 612 } | 612 } |
| 613 buildCounterOperationList--; | 613 buildCounterOperationList--; |
| 614 } | 614 } |
| 615 | 615 |
| 616 core.int buildCounterPublicKey = 0; | 616 core.int buildCounterPublicKey = 0; |
| 617 buildPublicKey() { | 617 buildPublicKey() { |
| 618 var o = new api.PublicKey(); | 618 var o = new api.PublicKey(); |
| (...skipping 14 matching lines...) Expand all Loading... |
| 633 if (buildCounterPublicKey < 3) { | 633 if (buildCounterPublicKey < 3) { |
| 634 unittest.expect(o.creationTimestamp, unittest.equals('foo')); | 634 unittest.expect(o.creationTimestamp, unittest.equals('foo')); |
| 635 unittest.expect(o.description, unittest.equals('foo')); | 635 unittest.expect(o.description, unittest.equals('foo')); |
| 636 unittest.expect(o.expirationTimestamp, unittest.equals('foo')); | 636 unittest.expect(o.expirationTimestamp, unittest.equals('foo')); |
| 637 unittest.expect(o.fingerprint, unittest.equals('foo')); | 637 unittest.expect(o.fingerprint, unittest.equals('foo')); |
| 638 unittest.expect(o.key, unittest.equals('foo')); | 638 unittest.expect(o.key, unittest.equals('foo')); |
| 639 } | 639 } |
| 640 buildCounterPublicKey--; | 640 buildCounterPublicKey--; |
| 641 } | 641 } |
| 642 | 642 |
| 643 buildUnnamed3677() { | 643 buildUnnamed3151() { |
| 644 var o = new core.List<core.String>(); | 644 var o = new core.List<core.String>(); |
| 645 o.add("foo"); | 645 o.add("foo"); |
| 646 o.add("foo"); | 646 o.add("foo"); |
| 647 return o; | 647 return o; |
| 648 } | 648 } |
| 649 | 649 |
| 650 checkUnnamed3677(core.List<core.String> o) { | 650 checkUnnamed3151(core.List<core.String> o) { |
| 651 unittest.expect(o, unittest.hasLength(2)); | 651 unittest.expect(o, unittest.hasLength(2)); |
| 652 unittest.expect(o[0], unittest.equals('foo')); | 652 unittest.expect(o[0], unittest.equals('foo')); |
| 653 unittest.expect(o[1], unittest.equals('foo')); | 653 unittest.expect(o[1], unittest.equals('foo')); |
| 654 } | 654 } |
| 655 | 655 |
| 656 buildUnnamed3678() { | 656 buildUnnamed3152() { |
| 657 var o = new core.List<api.PublicKey>(); | 657 var o = new core.List<api.PublicKey>(); |
| 658 o.add(buildPublicKey()); | 658 o.add(buildPublicKey()); |
| 659 o.add(buildPublicKey()); | 659 o.add(buildPublicKey()); |
| 660 return o; | 660 return o; |
| 661 } | 661 } |
| 662 | 662 |
| 663 checkUnnamed3678(core.List<api.PublicKey> o) { | 663 checkUnnamed3152(core.List<api.PublicKey> o) { |
| 664 unittest.expect(o, unittest.hasLength(2)); | 664 unittest.expect(o, unittest.hasLength(2)); |
| 665 checkPublicKey(o[0]); | 665 checkPublicKey(o[0]); |
| 666 checkPublicKey(o[1]); | 666 checkPublicKey(o[1]); |
| 667 } | 667 } |
| 668 | 668 |
| 669 core.int buildCounterUser = 0; | 669 core.int buildCounterUser = 0; |
| 670 buildUser() { | 670 buildUser() { |
| 671 var o = new api.User(); | 671 var o = new api.User(); |
| 672 buildCounterUser++; | 672 buildCounterUser++; |
| 673 if (buildCounterUser < 3) { | 673 if (buildCounterUser < 3) { |
| 674 o.creationTimestamp = "foo"; | 674 o.creationTimestamp = "foo"; |
| 675 o.description = "foo"; | 675 o.description = "foo"; |
| 676 o.groups = buildUnnamed3677(); | 676 o.groups = buildUnnamed3151(); |
| 677 o.id = "foo"; | 677 o.id = "foo"; |
| 678 o.kind = "foo"; | 678 o.kind = "foo"; |
| 679 o.name = "foo"; | 679 o.name = "foo"; |
| 680 o.owner = "foo"; | 680 o.owner = "foo"; |
| 681 o.publicKeys = buildUnnamed3678(); | 681 o.publicKeys = buildUnnamed3152(); |
| 682 o.selfLink = "foo"; | 682 o.selfLink = "foo"; |
| 683 } | 683 } |
| 684 buildCounterUser--; | 684 buildCounterUser--; |
| 685 return o; | 685 return o; |
| 686 } | 686 } |
| 687 | 687 |
| 688 checkUser(api.User o) { | 688 checkUser(api.User o) { |
| 689 buildCounterUser++; | 689 buildCounterUser++; |
| 690 if (buildCounterUser < 3) { | 690 if (buildCounterUser < 3) { |
| 691 unittest.expect(o.creationTimestamp, unittest.equals('foo')); | 691 unittest.expect(o.creationTimestamp, unittest.equals('foo')); |
| 692 unittest.expect(o.description, unittest.equals('foo')); | 692 unittest.expect(o.description, unittest.equals('foo')); |
| 693 checkUnnamed3677(o.groups); | 693 checkUnnamed3151(o.groups); |
| 694 unittest.expect(o.id, unittest.equals('foo')); | 694 unittest.expect(o.id, unittest.equals('foo')); |
| 695 unittest.expect(o.kind, unittest.equals('foo')); | 695 unittest.expect(o.kind, unittest.equals('foo')); |
| 696 unittest.expect(o.name, unittest.equals('foo')); | 696 unittest.expect(o.name, unittest.equals('foo')); |
| 697 unittest.expect(o.owner, unittest.equals('foo')); | 697 unittest.expect(o.owner, unittest.equals('foo')); |
| 698 checkUnnamed3678(o.publicKeys); | 698 checkUnnamed3152(o.publicKeys); |
| 699 unittest.expect(o.selfLink, unittest.equals('foo')); | 699 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 700 } | 700 } |
| 701 buildCounterUser--; | 701 buildCounterUser--; |
| 702 } | 702 } |
| 703 | 703 |
| 704 buildUnnamed3679() { | 704 buildUnnamed3153() { |
| 705 var o = new core.List<api.User>(); | 705 var o = new core.List<api.User>(); |
| 706 o.add(buildUser()); | 706 o.add(buildUser()); |
| 707 o.add(buildUser()); | 707 o.add(buildUser()); |
| 708 return o; | 708 return o; |
| 709 } | 709 } |
| 710 | 710 |
| 711 checkUnnamed3679(core.List<api.User> o) { | 711 checkUnnamed3153(core.List<api.User> o) { |
| 712 unittest.expect(o, unittest.hasLength(2)); | 712 unittest.expect(o, unittest.hasLength(2)); |
| 713 checkUser(o[0]); | 713 checkUser(o[0]); |
| 714 checkUser(o[1]); | 714 checkUser(o[1]); |
| 715 } | 715 } |
| 716 | 716 |
| 717 core.int buildCounterUserList = 0; | 717 core.int buildCounterUserList = 0; |
| 718 buildUserList() { | 718 buildUserList() { |
| 719 var o = new api.UserList(); | 719 var o = new api.UserList(); |
| 720 buildCounterUserList++; | 720 buildCounterUserList++; |
| 721 if (buildCounterUserList < 3) { | 721 if (buildCounterUserList < 3) { |
| 722 o.id = "foo"; | 722 o.id = "foo"; |
| 723 o.items = buildUnnamed3679(); | 723 o.items = buildUnnamed3153(); |
| 724 o.kind = "foo"; | 724 o.kind = "foo"; |
| 725 o.nextPageToken = "foo"; | 725 o.nextPageToken = "foo"; |
| 726 o.selfLink = "foo"; | 726 o.selfLink = "foo"; |
| 727 } | 727 } |
| 728 buildCounterUserList--; | 728 buildCounterUserList--; |
| 729 return o; | 729 return o; |
| 730 } | 730 } |
| 731 | 731 |
| 732 checkUserList(api.UserList o) { | 732 checkUserList(api.UserList o) { |
| 733 buildCounterUserList++; | 733 buildCounterUserList++; |
| 734 if (buildCounterUserList < 3) { | 734 if (buildCounterUserList < 3) { |
| 735 unittest.expect(o.id, unittest.equals('foo')); | 735 unittest.expect(o.id, unittest.equals('foo')); |
| 736 checkUnnamed3679(o.items); | 736 checkUnnamed3153(o.items); |
| 737 unittest.expect(o.kind, unittest.equals('foo')); | 737 unittest.expect(o.kind, unittest.equals('foo')); |
| 738 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 738 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 739 unittest.expect(o.selfLink, unittest.equals('foo')); | 739 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 740 } | 740 } |
| 741 buildCounterUserList--; | 741 buildCounterUserList--; |
| 742 } | 742 } |
| 743 | 743 |
| 744 | 744 |
| 745 main() { | 745 main() { |
| 746 unittest.group("obj-schema-AuthorizedKeysView", () { | 746 unittest.group("obj-schema-AuthorizedKeysView", () { |
| (...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 914 }); | 914 }); |
| 915 | 915 |
| 916 | 916 |
| 917 unittest.group("resource-GlobalAccountsOperationsResourceApi", () { | 917 unittest.group("resource-GlobalAccountsOperationsResourceApi", () { |
| 918 unittest.test("method--delete", () { | 918 unittest.test("method--delete", () { |
| 919 | 919 |
| 920 var mock = new HttpServerMock(); | 920 var mock = new HttpServerMock(); |
| 921 api.GlobalAccountsOperationsResourceApi res = new api.ClouduseraccountsApi
(mock).globalAccountsOperations; | 921 api.GlobalAccountsOperationsResourceApi res = new api.ClouduseraccountsApi
(mock).globalAccountsOperations; |
| 922 var arg_project = "foo"; | 922 var arg_project = "foo"; |
| 923 var arg_operation = "foo"; | 923 var arg_operation = "foo"; |
| 924 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 924 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 925 var path = (req.url).path; | 925 var path = (req.url).path; |
| 926 var pathOffset = 0; | 926 var pathOffset = 0; |
| 927 var index; | 927 var index; |
| 928 var subPart; | 928 var subPart; |
| 929 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 929 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 930 pathOffset += 1; | 930 pathOffset += 1; |
| 931 | 931 |
| 932 var query = (req.url).query; | 932 var query = (req.url).query; |
| 933 var queryOffset = 0; | 933 var queryOffset = 0; |
| 934 var queryMap = {}; | 934 var queryMap = {}; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 946 } | 946 } |
| 947 } | 947 } |
| 948 | 948 |
| 949 | 949 |
| 950 var h = { | 950 var h = { |
| 951 "content-type" : "application/json; charset=utf-8", | 951 "content-type" : "application/json; charset=utf-8", |
| 952 }; | 952 }; |
| 953 var resp = ""; | 953 var resp = ""; |
| 954 return new async.Future.value(stringResponse(200, h, resp)); | 954 return new async.Future.value(stringResponse(200, h, resp)); |
| 955 }), true); | 955 }), true); |
| 956 res.delete(arg_project, arg_operation).then(unittest.expectAsync((_) {})); | 956 res.delete(arg_project, arg_operation).then(unittest.expectAsync1((_) {}))
; |
| 957 }); | 957 }); |
| 958 | 958 |
| 959 unittest.test("method--get", () { | 959 unittest.test("method--get", () { |
| 960 | 960 |
| 961 var mock = new HttpServerMock(); | 961 var mock = new HttpServerMock(); |
| 962 api.GlobalAccountsOperationsResourceApi res = new api.ClouduseraccountsApi
(mock).globalAccountsOperations; | 962 api.GlobalAccountsOperationsResourceApi res = new api.ClouduseraccountsApi
(mock).globalAccountsOperations; |
| 963 var arg_project = "foo"; | 963 var arg_project = "foo"; |
| 964 var arg_operation = "foo"; | 964 var arg_operation = "foo"; |
| 965 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 965 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 966 var path = (req.url).path; | 966 var path = (req.url).path; |
| 967 var pathOffset = 0; | 967 var pathOffset = 0; |
| 968 var index; | 968 var index; |
| 969 var subPart; | 969 var subPart; |
| 970 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 970 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 971 pathOffset += 1; | 971 pathOffset += 1; |
| 972 | 972 |
| 973 var query = (req.url).query; | 973 var query = (req.url).query; |
| 974 var queryOffset = 0; | 974 var queryOffset = 0; |
| 975 var queryMap = {}; | 975 var queryMap = {}; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 987 } | 987 } |
| 988 } | 988 } |
| 989 | 989 |
| 990 | 990 |
| 991 var h = { | 991 var h = { |
| 992 "content-type" : "application/json; charset=utf-8", | 992 "content-type" : "application/json; charset=utf-8", |
| 993 }; | 993 }; |
| 994 var resp = convert.JSON.encode(buildOperation()); | 994 var resp = convert.JSON.encode(buildOperation()); |
| 995 return new async.Future.value(stringResponse(200, h, resp)); | 995 return new async.Future.value(stringResponse(200, h, resp)); |
| 996 }), true); | 996 }), true); |
| 997 res.get(arg_project, arg_operation).then(unittest.expectAsync(((api.Operat
ion response) { | 997 res.get(arg_project, arg_operation).then(unittest.expectAsync1(((api.Opera
tion response) { |
| 998 checkOperation(response); | 998 checkOperation(response); |
| 999 }))); | 999 }))); |
| 1000 }); | 1000 }); |
| 1001 | 1001 |
| 1002 unittest.test("method--list", () { | 1002 unittest.test("method--list", () { |
| 1003 | 1003 |
| 1004 var mock = new HttpServerMock(); | 1004 var mock = new HttpServerMock(); |
| 1005 api.GlobalAccountsOperationsResourceApi res = new api.ClouduseraccountsApi
(mock).globalAccountsOperations; | 1005 api.GlobalAccountsOperationsResourceApi res = new api.ClouduseraccountsApi
(mock).globalAccountsOperations; |
| 1006 var arg_project = "foo"; | 1006 var arg_project = "foo"; |
| 1007 var arg_filter = "foo"; | 1007 var arg_filter = "foo"; |
| 1008 var arg_maxResults = 42; | 1008 var arg_maxResults = 42; |
| 1009 var arg_orderBy = "foo"; | 1009 var arg_orderBy = "foo"; |
| 1010 var arg_pageToken = "foo"; | 1010 var arg_pageToken = "foo"; |
| 1011 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1011 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 1012 var path = (req.url).path; | 1012 var path = (req.url).path; |
| 1013 var pathOffset = 0; | 1013 var pathOffset = 0; |
| 1014 var index; | 1014 var index; |
| 1015 var subPart; | 1015 var subPart; |
| 1016 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 1016 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 1017 pathOffset += 1; | 1017 pathOffset += 1; |
| 1018 | 1018 |
| 1019 var query = (req.url).query; | 1019 var query = (req.url).query; |
| 1020 var queryOffset = 0; | 1020 var queryOffset = 0; |
| 1021 var queryMap = {}; | 1021 var queryMap = {}; |
| (...skipping 15 matching lines...) Expand all Loading... |
| 1037 unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy))
; | 1037 unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy))
; |
| 1038 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 1038 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 1039 | 1039 |
| 1040 | 1040 |
| 1041 var h = { | 1041 var h = { |
| 1042 "content-type" : "application/json; charset=utf-8", | 1042 "content-type" : "application/json; charset=utf-8", |
| 1043 }; | 1043 }; |
| 1044 var resp = convert.JSON.encode(buildOperationList()); | 1044 var resp = convert.JSON.encode(buildOperationList()); |
| 1045 return new async.Future.value(stringResponse(200, h, resp)); | 1045 return new async.Future.value(stringResponse(200, h, resp)); |
| 1046 }), true); | 1046 }), true); |
| 1047 res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orde
rBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.Oper
ationList response) { | 1047 res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orde
rBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.Ope
rationList response) { |
| 1048 checkOperationList(response); | 1048 checkOperationList(response); |
| 1049 }))); | 1049 }))); |
| 1050 }); | 1050 }); |
| 1051 | 1051 |
| 1052 }); | 1052 }); |
| 1053 | 1053 |
| 1054 | 1054 |
| 1055 unittest.group("resource-GroupsResourceApi", () { | 1055 unittest.group("resource-GroupsResourceApi", () { |
| 1056 unittest.test("method--addMember", () { | 1056 unittest.test("method--addMember", () { |
| 1057 | 1057 |
| 1058 var mock = new HttpServerMock(); | 1058 var mock = new HttpServerMock(); |
| 1059 api.GroupsResourceApi res = new api.ClouduseraccountsApi(mock).groups; | 1059 api.GroupsResourceApi res = new api.ClouduseraccountsApi(mock).groups; |
| 1060 var arg_request = buildGroupsAddMemberRequest(); | 1060 var arg_request = buildGroupsAddMemberRequest(); |
| 1061 var arg_project = "foo"; | 1061 var arg_project = "foo"; |
| 1062 var arg_groupName = "foo"; | 1062 var arg_groupName = "foo"; |
| 1063 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1063 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 1064 var obj = new api.GroupsAddMemberRequest.fromJson(json); | 1064 var obj = new api.GroupsAddMemberRequest.fromJson(json); |
| 1065 checkGroupsAddMemberRequest(obj); | 1065 checkGroupsAddMemberRequest(obj); |
| 1066 | 1066 |
| 1067 var path = (req.url).path; | 1067 var path = (req.url).path; |
| 1068 var pathOffset = 0; | 1068 var pathOffset = 0; |
| 1069 var index; | 1069 var index; |
| 1070 var subPart; | 1070 var subPart; |
| 1071 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 1071 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 1072 pathOffset += 1; | 1072 pathOffset += 1; |
| 1073 | 1073 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 1088 } | 1088 } |
| 1089 } | 1089 } |
| 1090 | 1090 |
| 1091 | 1091 |
| 1092 var h = { | 1092 var h = { |
| 1093 "content-type" : "application/json; charset=utf-8", | 1093 "content-type" : "application/json; charset=utf-8", |
| 1094 }; | 1094 }; |
| 1095 var resp = convert.JSON.encode(buildOperation()); | 1095 var resp = convert.JSON.encode(buildOperation()); |
| 1096 return new async.Future.value(stringResponse(200, h, resp)); | 1096 return new async.Future.value(stringResponse(200, h, resp)); |
| 1097 }), true); | 1097 }), true); |
| 1098 res.addMember(arg_request, arg_project, arg_groupName).then(unittest.expec
tAsync(((api.Operation response) { | 1098 res.addMember(arg_request, arg_project, arg_groupName).then(unittest.expec
tAsync1(((api.Operation response) { |
| 1099 checkOperation(response); | 1099 checkOperation(response); |
| 1100 }))); | 1100 }))); |
| 1101 }); | 1101 }); |
| 1102 | 1102 |
| 1103 unittest.test("method--delete", () { | 1103 unittest.test("method--delete", () { |
| 1104 | 1104 |
| 1105 var mock = new HttpServerMock(); | 1105 var mock = new HttpServerMock(); |
| 1106 api.GroupsResourceApi res = new api.ClouduseraccountsApi(mock).groups; | 1106 api.GroupsResourceApi res = new api.ClouduseraccountsApi(mock).groups; |
| 1107 var arg_project = "foo"; | 1107 var arg_project = "foo"; |
| 1108 var arg_groupName = "foo"; | 1108 var arg_groupName = "foo"; |
| 1109 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1109 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 1110 var path = (req.url).path; | 1110 var path = (req.url).path; |
| 1111 var pathOffset = 0; | 1111 var pathOffset = 0; |
| 1112 var index; | 1112 var index; |
| 1113 var subPart; | 1113 var subPart; |
| 1114 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 1114 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 1115 pathOffset += 1; | 1115 pathOffset += 1; |
| 1116 | 1116 |
| 1117 var query = (req.url).query; | 1117 var query = (req.url).query; |
| 1118 var queryOffset = 0; | 1118 var queryOffset = 0; |
| 1119 var queryMap = {}; | 1119 var queryMap = {}; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 1131 } | 1131 } |
| 1132 } | 1132 } |
| 1133 | 1133 |
| 1134 | 1134 |
| 1135 var h = { | 1135 var h = { |
| 1136 "content-type" : "application/json; charset=utf-8", | 1136 "content-type" : "application/json; charset=utf-8", |
| 1137 }; | 1137 }; |
| 1138 var resp = convert.JSON.encode(buildOperation()); | 1138 var resp = convert.JSON.encode(buildOperation()); |
| 1139 return new async.Future.value(stringResponse(200, h, resp)); | 1139 return new async.Future.value(stringResponse(200, h, resp)); |
| 1140 }), true); | 1140 }), true); |
| 1141 res.delete(arg_project, arg_groupName).then(unittest.expectAsync(((api.Ope
ration response) { | 1141 res.delete(arg_project, arg_groupName).then(unittest.expectAsync1(((api.Op
eration response) { |
| 1142 checkOperation(response); | 1142 checkOperation(response); |
| 1143 }))); | 1143 }))); |
| 1144 }); | 1144 }); |
| 1145 | 1145 |
| 1146 unittest.test("method--get", () { | 1146 unittest.test("method--get", () { |
| 1147 | 1147 |
| 1148 var mock = new HttpServerMock(); | 1148 var mock = new HttpServerMock(); |
| 1149 api.GroupsResourceApi res = new api.ClouduseraccountsApi(mock).groups; | 1149 api.GroupsResourceApi res = new api.ClouduseraccountsApi(mock).groups; |
| 1150 var arg_project = "foo"; | 1150 var arg_project = "foo"; |
| 1151 var arg_groupName = "foo"; | 1151 var arg_groupName = "foo"; |
| 1152 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1152 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 1153 var path = (req.url).path; | 1153 var path = (req.url).path; |
| 1154 var pathOffset = 0; | 1154 var pathOffset = 0; |
| 1155 var index; | 1155 var index; |
| 1156 var subPart; | 1156 var subPart; |
| 1157 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 1157 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 1158 pathOffset += 1; | 1158 pathOffset += 1; |
| 1159 | 1159 |
| 1160 var query = (req.url).query; | 1160 var query = (req.url).query; |
| 1161 var queryOffset = 0; | 1161 var queryOffset = 0; |
| 1162 var queryMap = {}; | 1162 var queryMap = {}; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 1174 } | 1174 } |
| 1175 } | 1175 } |
| 1176 | 1176 |
| 1177 | 1177 |
| 1178 var h = { | 1178 var h = { |
| 1179 "content-type" : "application/json; charset=utf-8", | 1179 "content-type" : "application/json; charset=utf-8", |
| 1180 }; | 1180 }; |
| 1181 var resp = convert.JSON.encode(buildGroup()); | 1181 var resp = convert.JSON.encode(buildGroup()); |
| 1182 return new async.Future.value(stringResponse(200, h, resp)); | 1182 return new async.Future.value(stringResponse(200, h, resp)); |
| 1183 }), true); | 1183 }), true); |
| 1184 res.get(arg_project, arg_groupName).then(unittest.expectAsync(((api.Group
response) { | 1184 res.get(arg_project, arg_groupName).then(unittest.expectAsync1(((api.Group
response) { |
| 1185 checkGroup(response); | 1185 checkGroup(response); |
| 1186 }))); | 1186 }))); |
| 1187 }); | 1187 }); |
| 1188 | 1188 |
| 1189 unittest.test("method--insert", () { | 1189 unittest.test("method--insert", () { |
| 1190 | 1190 |
| 1191 var mock = new HttpServerMock(); | 1191 var mock = new HttpServerMock(); |
| 1192 api.GroupsResourceApi res = new api.ClouduseraccountsApi(mock).groups; | 1192 api.GroupsResourceApi res = new api.ClouduseraccountsApi(mock).groups; |
| 1193 var arg_request = buildGroup(); | 1193 var arg_request = buildGroup(); |
| 1194 var arg_project = "foo"; | 1194 var arg_project = "foo"; |
| 1195 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1195 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 1196 var obj = new api.Group.fromJson(json); | 1196 var obj = new api.Group.fromJson(json); |
| 1197 checkGroup(obj); | 1197 checkGroup(obj); |
| 1198 | 1198 |
| 1199 var path = (req.url).path; | 1199 var path = (req.url).path; |
| 1200 var pathOffset = 0; | 1200 var pathOffset = 0; |
| 1201 var index; | 1201 var index; |
| 1202 var subPart; | 1202 var subPart; |
| 1203 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 1203 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 1204 pathOffset += 1; | 1204 pathOffset += 1; |
| 1205 | 1205 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 1220 } | 1220 } |
| 1221 } | 1221 } |
| 1222 | 1222 |
| 1223 | 1223 |
| 1224 var h = { | 1224 var h = { |
| 1225 "content-type" : "application/json; charset=utf-8", | 1225 "content-type" : "application/json; charset=utf-8", |
| 1226 }; | 1226 }; |
| 1227 var resp = convert.JSON.encode(buildOperation()); | 1227 var resp = convert.JSON.encode(buildOperation()); |
| 1228 return new async.Future.value(stringResponse(200, h, resp)); | 1228 return new async.Future.value(stringResponse(200, h, resp)); |
| 1229 }), true); | 1229 }), true); |
| 1230 res.insert(arg_request, arg_project).then(unittest.expectAsync(((api.Opera
tion response) { | 1230 res.insert(arg_request, arg_project).then(unittest.expectAsync1(((api.Oper
ation response) { |
| 1231 checkOperation(response); | 1231 checkOperation(response); |
| 1232 }))); | 1232 }))); |
| 1233 }); | 1233 }); |
| 1234 | 1234 |
| 1235 unittest.test("method--list", () { | 1235 unittest.test("method--list", () { |
| 1236 | 1236 |
| 1237 var mock = new HttpServerMock(); | 1237 var mock = new HttpServerMock(); |
| 1238 api.GroupsResourceApi res = new api.ClouduseraccountsApi(mock).groups; | 1238 api.GroupsResourceApi res = new api.ClouduseraccountsApi(mock).groups; |
| 1239 var arg_project = "foo"; | 1239 var arg_project = "foo"; |
| 1240 var arg_filter = "foo"; | 1240 var arg_filter = "foo"; |
| 1241 var arg_maxResults = 42; | 1241 var arg_maxResults = 42; |
| 1242 var arg_orderBy = "foo"; | 1242 var arg_orderBy = "foo"; |
| 1243 var arg_pageToken = "foo"; | 1243 var arg_pageToken = "foo"; |
| 1244 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1244 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 1245 var path = (req.url).path; | 1245 var path = (req.url).path; |
| 1246 var pathOffset = 0; | 1246 var pathOffset = 0; |
| 1247 var index; | 1247 var index; |
| 1248 var subPart; | 1248 var subPart; |
| 1249 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 1249 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 1250 pathOffset += 1; | 1250 pathOffset += 1; |
| 1251 | 1251 |
| 1252 var query = (req.url).query; | 1252 var query = (req.url).query; |
| 1253 var queryOffset = 0; | 1253 var queryOffset = 0; |
| 1254 var queryMap = {}; | 1254 var queryMap = {}; |
| (...skipping 15 matching lines...) Expand all Loading... |
| 1270 unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy))
; | 1270 unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy))
; |
| 1271 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 1271 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 1272 | 1272 |
| 1273 | 1273 |
| 1274 var h = { | 1274 var h = { |
| 1275 "content-type" : "application/json; charset=utf-8", | 1275 "content-type" : "application/json; charset=utf-8", |
| 1276 }; | 1276 }; |
| 1277 var resp = convert.JSON.encode(buildGroupList()); | 1277 var resp = convert.JSON.encode(buildGroupList()); |
| 1278 return new async.Future.value(stringResponse(200, h, resp)); | 1278 return new async.Future.value(stringResponse(200, h, resp)); |
| 1279 }), true); | 1279 }), true); |
| 1280 res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orde
rBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.Grou
pList response) { | 1280 res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orde
rBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.Gro
upList response) { |
| 1281 checkGroupList(response); | 1281 checkGroupList(response); |
| 1282 }))); | 1282 }))); |
| 1283 }); | 1283 }); |
| 1284 | 1284 |
| 1285 unittest.test("method--removeMember", () { | 1285 unittest.test("method--removeMember", () { |
| 1286 | 1286 |
| 1287 var mock = new HttpServerMock(); | 1287 var mock = new HttpServerMock(); |
| 1288 api.GroupsResourceApi res = new api.ClouduseraccountsApi(mock).groups; | 1288 api.GroupsResourceApi res = new api.ClouduseraccountsApi(mock).groups; |
| 1289 var arg_request = buildGroupsRemoveMemberRequest(); | 1289 var arg_request = buildGroupsRemoveMemberRequest(); |
| 1290 var arg_project = "foo"; | 1290 var arg_project = "foo"; |
| 1291 var arg_groupName = "foo"; | 1291 var arg_groupName = "foo"; |
| 1292 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1292 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 1293 var obj = new api.GroupsRemoveMemberRequest.fromJson(json); | 1293 var obj = new api.GroupsRemoveMemberRequest.fromJson(json); |
| 1294 checkGroupsRemoveMemberRequest(obj); | 1294 checkGroupsRemoveMemberRequest(obj); |
| 1295 | 1295 |
| 1296 var path = (req.url).path; | 1296 var path = (req.url).path; |
| 1297 var pathOffset = 0; | 1297 var pathOffset = 0; |
| 1298 var index; | 1298 var index; |
| 1299 var subPart; | 1299 var subPart; |
| 1300 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 1300 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 1301 pathOffset += 1; | 1301 pathOffset += 1; |
| 1302 | 1302 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 1317 } | 1317 } |
| 1318 } | 1318 } |
| 1319 | 1319 |
| 1320 | 1320 |
| 1321 var h = { | 1321 var h = { |
| 1322 "content-type" : "application/json; charset=utf-8", | 1322 "content-type" : "application/json; charset=utf-8", |
| 1323 }; | 1323 }; |
| 1324 var resp = convert.JSON.encode(buildOperation()); | 1324 var resp = convert.JSON.encode(buildOperation()); |
| 1325 return new async.Future.value(stringResponse(200, h, resp)); | 1325 return new async.Future.value(stringResponse(200, h, resp)); |
| 1326 }), true); | 1326 }), true); |
| 1327 res.removeMember(arg_request, arg_project, arg_groupName).then(unittest.ex
pectAsync(((api.Operation response) { | 1327 res.removeMember(arg_request, arg_project, arg_groupName).then(unittest.ex
pectAsync1(((api.Operation response) { |
| 1328 checkOperation(response); | 1328 checkOperation(response); |
| 1329 }))); | 1329 }))); |
| 1330 }); | 1330 }); |
| 1331 | 1331 |
| 1332 }); | 1332 }); |
| 1333 | 1333 |
| 1334 | 1334 |
| 1335 unittest.group("resource-LinuxResourceApi", () { | 1335 unittest.group("resource-LinuxResourceApi", () { |
| 1336 unittest.test("method--getAuthorizedKeysView", () { | 1336 unittest.test("method--getAuthorizedKeysView", () { |
| 1337 | 1337 |
| 1338 var mock = new HttpServerMock(); | 1338 var mock = new HttpServerMock(); |
| 1339 api.LinuxResourceApi res = new api.ClouduseraccountsApi(mock).linux; | 1339 api.LinuxResourceApi res = new api.ClouduseraccountsApi(mock).linux; |
| 1340 var arg_project = "foo"; | 1340 var arg_project = "foo"; |
| 1341 var arg_zone = "foo"; | 1341 var arg_zone = "foo"; |
| 1342 var arg_user = "foo"; | 1342 var arg_user = "foo"; |
| 1343 var arg_instance = "foo"; | 1343 var arg_instance = "foo"; |
| 1344 var arg_login = true; | 1344 var arg_login = true; |
| 1345 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1345 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 1346 var path = (req.url).path; | 1346 var path = (req.url).path; |
| 1347 var pathOffset = 0; | 1347 var pathOffset = 0; |
| 1348 var index; | 1348 var index; |
| 1349 var subPart; | 1349 var subPart; |
| 1350 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 1350 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 1351 pathOffset += 1; | 1351 pathOffset += 1; |
| 1352 | 1352 |
| 1353 var query = (req.url).query; | 1353 var query = (req.url).query; |
| 1354 var queryOffset = 0; | 1354 var queryOffset = 0; |
| 1355 var queryMap = {}; | 1355 var queryMap = {}; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 1369 unittest.expect(queryMap["instance"].first, unittest.equals(arg_instance
)); | 1369 unittest.expect(queryMap["instance"].first, unittest.equals(arg_instance
)); |
| 1370 unittest.expect(queryMap["login"].first, unittest.equals("$arg_login")); | 1370 unittest.expect(queryMap["login"].first, unittest.equals("$arg_login")); |
| 1371 | 1371 |
| 1372 | 1372 |
| 1373 var h = { | 1373 var h = { |
| 1374 "content-type" : "application/json; charset=utf-8", | 1374 "content-type" : "application/json; charset=utf-8", |
| 1375 }; | 1375 }; |
| 1376 var resp = convert.JSON.encode(buildLinuxGetAuthorizedKeysViewResponse()
); | 1376 var resp = convert.JSON.encode(buildLinuxGetAuthorizedKeysViewResponse()
); |
| 1377 return new async.Future.value(stringResponse(200, h, resp)); | 1377 return new async.Future.value(stringResponse(200, h, resp)); |
| 1378 }), true); | 1378 }), true); |
| 1379 res.getAuthorizedKeysView(arg_project, arg_zone, arg_user, arg_instance, l
ogin: arg_login).then(unittest.expectAsync(((api.LinuxGetAuthorizedKeysViewRespo
nse response) { | 1379 res.getAuthorizedKeysView(arg_project, arg_zone, arg_user, arg_instance, l
ogin: arg_login).then(unittest.expectAsync1(((api.LinuxGetAuthorizedKeysViewResp
onse response) { |
| 1380 checkLinuxGetAuthorizedKeysViewResponse(response); | 1380 checkLinuxGetAuthorizedKeysViewResponse(response); |
| 1381 }))); | 1381 }))); |
| 1382 }); | 1382 }); |
| 1383 | 1383 |
| 1384 unittest.test("method--getLinuxAccountViews", () { | 1384 unittest.test("method--getLinuxAccountViews", () { |
| 1385 | 1385 |
| 1386 var mock = new HttpServerMock(); | 1386 var mock = new HttpServerMock(); |
| 1387 api.LinuxResourceApi res = new api.ClouduseraccountsApi(mock).linux; | 1387 api.LinuxResourceApi res = new api.ClouduseraccountsApi(mock).linux; |
| 1388 var arg_project = "foo"; | 1388 var arg_project = "foo"; |
| 1389 var arg_zone = "foo"; | 1389 var arg_zone = "foo"; |
| 1390 var arg_instance = "foo"; | 1390 var arg_instance = "foo"; |
| 1391 var arg_filter = "foo"; | 1391 var arg_filter = "foo"; |
| 1392 var arg_maxResults = 42; | 1392 var arg_maxResults = 42; |
| 1393 var arg_orderBy = "foo"; | 1393 var arg_orderBy = "foo"; |
| 1394 var arg_pageToken = "foo"; | 1394 var arg_pageToken = "foo"; |
| 1395 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1395 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 1396 var path = (req.url).path; | 1396 var path = (req.url).path; |
| 1397 var pathOffset = 0; | 1397 var pathOffset = 0; |
| 1398 var index; | 1398 var index; |
| 1399 var subPart; | 1399 var subPart; |
| 1400 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 1400 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 1401 pathOffset += 1; | 1401 pathOffset += 1; |
| 1402 | 1402 |
| 1403 var query = (req.url).query; | 1403 var query = (req.url).query; |
| 1404 var queryOffset = 0; | 1404 var queryOffset = 0; |
| 1405 var queryMap = {}; | 1405 var queryMap = {}; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 1422 unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy))
; | 1422 unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy))
; |
| 1423 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 1423 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 1424 | 1424 |
| 1425 | 1425 |
| 1426 var h = { | 1426 var h = { |
| 1427 "content-type" : "application/json; charset=utf-8", | 1427 "content-type" : "application/json; charset=utf-8", |
| 1428 }; | 1428 }; |
| 1429 var resp = convert.JSON.encode(buildLinuxGetLinuxAccountViewsResponse())
; | 1429 var resp = convert.JSON.encode(buildLinuxGetLinuxAccountViewsResponse())
; |
| 1430 return new async.Future.value(stringResponse(200, h, resp)); | 1430 return new async.Future.value(stringResponse(200, h, resp)); |
| 1431 }), true); | 1431 }), true); |
| 1432 res.getLinuxAccountViews(arg_project, arg_zone, arg_instance, filter: arg_
filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageTok
en).then(unittest.expectAsync(((api.LinuxGetLinuxAccountViewsResponse response)
{ | 1432 res.getLinuxAccountViews(arg_project, arg_zone, arg_instance, filter: arg_
filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageTok
en).then(unittest.expectAsync1(((api.LinuxGetLinuxAccountViewsResponse response)
{ |
| 1433 checkLinuxGetLinuxAccountViewsResponse(response); | 1433 checkLinuxGetLinuxAccountViewsResponse(response); |
| 1434 }))); | 1434 }))); |
| 1435 }); | 1435 }); |
| 1436 | 1436 |
| 1437 }); | 1437 }); |
| 1438 | 1438 |
| 1439 | 1439 |
| 1440 unittest.group("resource-UsersResourceApi", () { | 1440 unittest.group("resource-UsersResourceApi", () { |
| 1441 unittest.test("method--addPublicKey", () { | 1441 unittest.test("method--addPublicKey", () { |
| 1442 | 1442 |
| 1443 var mock = new HttpServerMock(); | 1443 var mock = new HttpServerMock(); |
| 1444 api.UsersResourceApi res = new api.ClouduseraccountsApi(mock).users; | 1444 api.UsersResourceApi res = new api.ClouduseraccountsApi(mock).users; |
| 1445 var arg_request = buildPublicKey(); | 1445 var arg_request = buildPublicKey(); |
| 1446 var arg_project = "foo"; | 1446 var arg_project = "foo"; |
| 1447 var arg_user = "foo"; | 1447 var arg_user = "foo"; |
| 1448 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1448 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 1449 var obj = new api.PublicKey.fromJson(json); | 1449 var obj = new api.PublicKey.fromJson(json); |
| 1450 checkPublicKey(obj); | 1450 checkPublicKey(obj); |
| 1451 | 1451 |
| 1452 var path = (req.url).path; | 1452 var path = (req.url).path; |
| 1453 var pathOffset = 0; | 1453 var pathOffset = 0; |
| 1454 var index; | 1454 var index; |
| 1455 var subPart; | 1455 var subPart; |
| 1456 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 1456 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 1457 pathOffset += 1; | 1457 pathOffset += 1; |
| 1458 | 1458 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 1473 } | 1473 } |
| 1474 } | 1474 } |
| 1475 | 1475 |
| 1476 | 1476 |
| 1477 var h = { | 1477 var h = { |
| 1478 "content-type" : "application/json; charset=utf-8", | 1478 "content-type" : "application/json; charset=utf-8", |
| 1479 }; | 1479 }; |
| 1480 var resp = convert.JSON.encode(buildOperation()); | 1480 var resp = convert.JSON.encode(buildOperation()); |
| 1481 return new async.Future.value(stringResponse(200, h, resp)); | 1481 return new async.Future.value(stringResponse(200, h, resp)); |
| 1482 }), true); | 1482 }), true); |
| 1483 res.addPublicKey(arg_request, arg_project, arg_user).then(unittest.expectA
sync(((api.Operation response) { | 1483 res.addPublicKey(arg_request, arg_project, arg_user).then(unittest.expectA
sync1(((api.Operation response) { |
| 1484 checkOperation(response); | 1484 checkOperation(response); |
| 1485 }))); | 1485 }))); |
| 1486 }); | 1486 }); |
| 1487 | 1487 |
| 1488 unittest.test("method--delete", () { | 1488 unittest.test("method--delete", () { |
| 1489 | 1489 |
| 1490 var mock = new HttpServerMock(); | 1490 var mock = new HttpServerMock(); |
| 1491 api.UsersResourceApi res = new api.ClouduseraccountsApi(mock).users; | 1491 api.UsersResourceApi res = new api.ClouduseraccountsApi(mock).users; |
| 1492 var arg_project = "foo"; | 1492 var arg_project = "foo"; |
| 1493 var arg_user = "foo"; | 1493 var arg_user = "foo"; |
| 1494 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1494 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 1495 var path = (req.url).path; | 1495 var path = (req.url).path; |
| 1496 var pathOffset = 0; | 1496 var pathOffset = 0; |
| 1497 var index; | 1497 var index; |
| 1498 var subPart; | 1498 var subPart; |
| 1499 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 1499 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 1500 pathOffset += 1; | 1500 pathOffset += 1; |
| 1501 | 1501 |
| 1502 var query = (req.url).query; | 1502 var query = (req.url).query; |
| 1503 var queryOffset = 0; | 1503 var queryOffset = 0; |
| 1504 var queryMap = {}; | 1504 var queryMap = {}; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 1516 } | 1516 } |
| 1517 } | 1517 } |
| 1518 | 1518 |
| 1519 | 1519 |
| 1520 var h = { | 1520 var h = { |
| 1521 "content-type" : "application/json; charset=utf-8", | 1521 "content-type" : "application/json; charset=utf-8", |
| 1522 }; | 1522 }; |
| 1523 var resp = convert.JSON.encode(buildOperation()); | 1523 var resp = convert.JSON.encode(buildOperation()); |
| 1524 return new async.Future.value(stringResponse(200, h, resp)); | 1524 return new async.Future.value(stringResponse(200, h, resp)); |
| 1525 }), true); | 1525 }), true); |
| 1526 res.delete(arg_project, arg_user).then(unittest.expectAsync(((api.Operatio
n response) { | 1526 res.delete(arg_project, arg_user).then(unittest.expectAsync1(((api.Operati
on response) { |
| 1527 checkOperation(response); | 1527 checkOperation(response); |
| 1528 }))); | 1528 }))); |
| 1529 }); | 1529 }); |
| 1530 | 1530 |
| 1531 unittest.test("method--get", () { | 1531 unittest.test("method--get", () { |
| 1532 | 1532 |
| 1533 var mock = new HttpServerMock(); | 1533 var mock = new HttpServerMock(); |
| 1534 api.UsersResourceApi res = new api.ClouduseraccountsApi(mock).users; | 1534 api.UsersResourceApi res = new api.ClouduseraccountsApi(mock).users; |
| 1535 var arg_project = "foo"; | 1535 var arg_project = "foo"; |
| 1536 var arg_user = "foo"; | 1536 var arg_user = "foo"; |
| 1537 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1537 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 1538 var path = (req.url).path; | 1538 var path = (req.url).path; |
| 1539 var pathOffset = 0; | 1539 var pathOffset = 0; |
| 1540 var index; | 1540 var index; |
| 1541 var subPart; | 1541 var subPart; |
| 1542 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 1542 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 1543 pathOffset += 1; | 1543 pathOffset += 1; |
| 1544 | 1544 |
| 1545 var query = (req.url).query; | 1545 var query = (req.url).query; |
| 1546 var queryOffset = 0; | 1546 var queryOffset = 0; |
| 1547 var queryMap = {}; | 1547 var queryMap = {}; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 1559 } | 1559 } |
| 1560 } | 1560 } |
| 1561 | 1561 |
| 1562 | 1562 |
| 1563 var h = { | 1563 var h = { |
| 1564 "content-type" : "application/json; charset=utf-8", | 1564 "content-type" : "application/json; charset=utf-8", |
| 1565 }; | 1565 }; |
| 1566 var resp = convert.JSON.encode(buildUser()); | 1566 var resp = convert.JSON.encode(buildUser()); |
| 1567 return new async.Future.value(stringResponse(200, h, resp)); | 1567 return new async.Future.value(stringResponse(200, h, resp)); |
| 1568 }), true); | 1568 }), true); |
| 1569 res.get(arg_project, arg_user).then(unittest.expectAsync(((api.User respon
se) { | 1569 res.get(arg_project, arg_user).then(unittest.expectAsync1(((api.User respo
nse) { |
| 1570 checkUser(response); | 1570 checkUser(response); |
| 1571 }))); | 1571 }))); |
| 1572 }); | 1572 }); |
| 1573 | 1573 |
| 1574 unittest.test("method--insert", () { | 1574 unittest.test("method--insert", () { |
| 1575 | 1575 |
| 1576 var mock = new HttpServerMock(); | 1576 var mock = new HttpServerMock(); |
| 1577 api.UsersResourceApi res = new api.ClouduseraccountsApi(mock).users; | 1577 api.UsersResourceApi res = new api.ClouduseraccountsApi(mock).users; |
| 1578 var arg_request = buildUser(); | 1578 var arg_request = buildUser(); |
| 1579 var arg_project = "foo"; | 1579 var arg_project = "foo"; |
| 1580 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1580 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 1581 var obj = new api.User.fromJson(json); | 1581 var obj = new api.User.fromJson(json); |
| 1582 checkUser(obj); | 1582 checkUser(obj); |
| 1583 | 1583 |
| 1584 var path = (req.url).path; | 1584 var path = (req.url).path; |
| 1585 var pathOffset = 0; | 1585 var pathOffset = 0; |
| 1586 var index; | 1586 var index; |
| 1587 var subPart; | 1587 var subPart; |
| 1588 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 1588 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 1589 pathOffset += 1; | 1589 pathOffset += 1; |
| 1590 | 1590 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 1605 } | 1605 } |
| 1606 } | 1606 } |
| 1607 | 1607 |
| 1608 | 1608 |
| 1609 var h = { | 1609 var h = { |
| 1610 "content-type" : "application/json; charset=utf-8", | 1610 "content-type" : "application/json; charset=utf-8", |
| 1611 }; | 1611 }; |
| 1612 var resp = convert.JSON.encode(buildOperation()); | 1612 var resp = convert.JSON.encode(buildOperation()); |
| 1613 return new async.Future.value(stringResponse(200, h, resp)); | 1613 return new async.Future.value(stringResponse(200, h, resp)); |
| 1614 }), true); | 1614 }), true); |
| 1615 res.insert(arg_request, arg_project).then(unittest.expectAsync(((api.Opera
tion response) { | 1615 res.insert(arg_request, arg_project).then(unittest.expectAsync1(((api.Oper
ation response) { |
| 1616 checkOperation(response); | 1616 checkOperation(response); |
| 1617 }))); | 1617 }))); |
| 1618 }); | 1618 }); |
| 1619 | 1619 |
| 1620 unittest.test("method--list", () { | 1620 unittest.test("method--list", () { |
| 1621 | 1621 |
| 1622 var mock = new HttpServerMock(); | 1622 var mock = new HttpServerMock(); |
| 1623 api.UsersResourceApi res = new api.ClouduseraccountsApi(mock).users; | 1623 api.UsersResourceApi res = new api.ClouduseraccountsApi(mock).users; |
| 1624 var arg_project = "foo"; | 1624 var arg_project = "foo"; |
| 1625 var arg_filter = "foo"; | 1625 var arg_filter = "foo"; |
| 1626 var arg_maxResults = 42; | 1626 var arg_maxResults = 42; |
| 1627 var arg_orderBy = "foo"; | 1627 var arg_orderBy = "foo"; |
| 1628 var arg_pageToken = "foo"; | 1628 var arg_pageToken = "foo"; |
| 1629 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1629 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 1630 var path = (req.url).path; | 1630 var path = (req.url).path; |
| 1631 var pathOffset = 0; | 1631 var pathOffset = 0; |
| 1632 var index; | 1632 var index; |
| 1633 var subPart; | 1633 var subPart; |
| 1634 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 1634 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 1635 pathOffset += 1; | 1635 pathOffset += 1; |
| 1636 | 1636 |
| 1637 var query = (req.url).query; | 1637 var query = (req.url).query; |
| 1638 var queryOffset = 0; | 1638 var queryOffset = 0; |
| 1639 var queryMap = {}; | 1639 var queryMap = {}; |
| (...skipping 15 matching lines...) Expand all Loading... |
| 1655 unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy))
; | 1655 unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy))
; |
| 1656 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 1656 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 1657 | 1657 |
| 1658 | 1658 |
| 1659 var h = { | 1659 var h = { |
| 1660 "content-type" : "application/json; charset=utf-8", | 1660 "content-type" : "application/json; charset=utf-8", |
| 1661 }; | 1661 }; |
| 1662 var resp = convert.JSON.encode(buildUserList()); | 1662 var resp = convert.JSON.encode(buildUserList()); |
| 1663 return new async.Future.value(stringResponse(200, h, resp)); | 1663 return new async.Future.value(stringResponse(200, h, resp)); |
| 1664 }), true); | 1664 }), true); |
| 1665 res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orde
rBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.User
List response) { | 1665 res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orde
rBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.Use
rList response) { |
| 1666 checkUserList(response); | 1666 checkUserList(response); |
| 1667 }))); | 1667 }))); |
| 1668 }); | 1668 }); |
| 1669 | 1669 |
| 1670 unittest.test("method--removePublicKey", () { | 1670 unittest.test("method--removePublicKey", () { |
| 1671 | 1671 |
| 1672 var mock = new HttpServerMock(); | 1672 var mock = new HttpServerMock(); |
| 1673 api.UsersResourceApi res = new api.ClouduseraccountsApi(mock).users; | 1673 api.UsersResourceApi res = new api.ClouduseraccountsApi(mock).users; |
| 1674 var arg_project = "foo"; | 1674 var arg_project = "foo"; |
| 1675 var arg_user = "foo"; | 1675 var arg_user = "foo"; |
| 1676 var arg_fingerprint = "foo"; | 1676 var arg_fingerprint = "foo"; |
| 1677 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1677 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 1678 var path = (req.url).path; | 1678 var path = (req.url).path; |
| 1679 var pathOffset = 0; | 1679 var pathOffset = 0; |
| 1680 var index; | 1680 var index; |
| 1681 var subPart; | 1681 var subPart; |
| 1682 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 1682 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 1683 pathOffset += 1; | 1683 pathOffset += 1; |
| 1684 | 1684 |
| 1685 var query = (req.url).query; | 1685 var query = (req.url).query; |
| 1686 var queryOffset = 0; | 1686 var queryOffset = 0; |
| 1687 var queryMap = {}; | 1687 var queryMap = {}; |
| (...skipping 12 matching lines...) Expand all Loading... |
| 1700 } | 1700 } |
| 1701 unittest.expect(queryMap["fingerprint"].first, unittest.equals(arg_finge
rprint)); | 1701 unittest.expect(queryMap["fingerprint"].first, unittest.equals(arg_finge
rprint)); |
| 1702 | 1702 |
| 1703 | 1703 |
| 1704 var h = { | 1704 var h = { |
| 1705 "content-type" : "application/json; charset=utf-8", | 1705 "content-type" : "application/json; charset=utf-8", |
| 1706 }; | 1706 }; |
| 1707 var resp = convert.JSON.encode(buildOperation()); | 1707 var resp = convert.JSON.encode(buildOperation()); |
| 1708 return new async.Future.value(stringResponse(200, h, resp)); | 1708 return new async.Future.value(stringResponse(200, h, resp)); |
| 1709 }), true); | 1709 }), true); |
| 1710 res.removePublicKey(arg_project, arg_user, arg_fingerprint).then(unittest.
expectAsync(((api.Operation response) { | 1710 res.removePublicKey(arg_project, arg_user, arg_fingerprint).then(unittest.
expectAsync1(((api.Operation response) { |
| 1711 checkOperation(response); | 1711 checkOperation(response); |
| 1712 }))); | 1712 }))); |
| 1713 }); | 1713 }); |
| 1714 | 1714 |
| 1715 }); | 1715 }); |
| 1716 | 1716 |
| 1717 | 1717 |
| 1718 } | 1718 } |
| 1719 | 1719 |
| OLD | NEW |