github.com/lukasheimann/cloudfoundrycli@v7.1.0+incompatible/actor/v7action/v7actionfakes/fake_uaaclient.go (about) 1 // Code generated by counterfeiter. DO NOT EDIT. 2 package v7actionfakes 3 4 import ( 5 "sync" 6 7 "code.cloudfoundry.org/cli/actor/v7action" 8 "code.cloudfoundry.org/cli/api/uaa" 9 "code.cloudfoundry.org/cli/api/uaa/constant" 10 ) 11 12 type FakeUAAClient struct { 13 APIVersionStub func() string 14 aPIVersionMutex sync.RWMutex 15 aPIVersionArgsForCall []struct { 16 } 17 aPIVersionReturns struct { 18 result1 string 19 } 20 aPIVersionReturnsOnCall map[int]struct { 21 result1 string 22 } 23 AuthenticateStub func(map[string]string, string, constant.GrantType) (string, string, error) 24 authenticateMutex sync.RWMutex 25 authenticateArgsForCall []struct { 26 arg1 map[string]string 27 arg2 string 28 arg3 constant.GrantType 29 } 30 authenticateReturns struct { 31 result1 string 32 result2 string 33 result3 error 34 } 35 authenticateReturnsOnCall map[int]struct { 36 result1 string 37 result2 string 38 result3 error 39 } 40 CreateUserStub func(string, string, string) (uaa.User, error) 41 createUserMutex sync.RWMutex 42 createUserArgsForCall []struct { 43 arg1 string 44 arg2 string 45 arg3 string 46 } 47 createUserReturns struct { 48 result1 uaa.User 49 result2 error 50 } 51 createUserReturnsOnCall map[int]struct { 52 result1 uaa.User 53 result2 error 54 } 55 DeleteUserStub func(string) (uaa.User, error) 56 deleteUserMutex sync.RWMutex 57 deleteUserArgsForCall []struct { 58 arg1 string 59 } 60 deleteUserReturns struct { 61 result1 uaa.User 62 result2 error 63 } 64 deleteUserReturnsOnCall map[int]struct { 65 result1 uaa.User 66 result2 error 67 } 68 GetSSHPasscodeStub func(string, string) (string, error) 69 getSSHPasscodeMutex sync.RWMutex 70 getSSHPasscodeArgsForCall []struct { 71 arg1 string 72 arg2 string 73 } 74 getSSHPasscodeReturns struct { 75 result1 string 76 result2 error 77 } 78 getSSHPasscodeReturnsOnCall map[int]struct { 79 result1 string 80 result2 error 81 } 82 ListUsersStub func(string, string) ([]uaa.User, error) 83 listUsersMutex sync.RWMutex 84 listUsersArgsForCall []struct { 85 arg1 string 86 arg2 string 87 } 88 listUsersReturns struct { 89 result1 []uaa.User 90 result2 error 91 } 92 listUsersReturnsOnCall map[int]struct { 93 result1 []uaa.User 94 result2 error 95 } 96 LoginPromptsStub func() map[string][]string 97 loginPromptsMutex sync.RWMutex 98 loginPromptsArgsForCall []struct { 99 } 100 loginPromptsReturns struct { 101 result1 map[string][]string 102 } 103 loginPromptsReturnsOnCall map[int]struct { 104 result1 map[string][]string 105 } 106 RefreshAccessTokenStub func(string) (uaa.RefreshedTokens, error) 107 refreshAccessTokenMutex sync.RWMutex 108 refreshAccessTokenArgsForCall []struct { 109 arg1 string 110 } 111 refreshAccessTokenReturns struct { 112 result1 uaa.RefreshedTokens 113 result2 error 114 } 115 refreshAccessTokenReturnsOnCall map[int]struct { 116 result1 uaa.RefreshedTokens 117 result2 error 118 } 119 RevokeStub func(string) error 120 revokeMutex sync.RWMutex 121 revokeArgsForCall []struct { 122 arg1 string 123 } 124 revokeReturns struct { 125 result1 error 126 } 127 revokeReturnsOnCall map[int]struct { 128 result1 error 129 } 130 UpdatePasswordStub func(string, string, string) error 131 updatePasswordMutex sync.RWMutex 132 updatePasswordArgsForCall []struct { 133 arg1 string 134 arg2 string 135 arg3 string 136 } 137 updatePasswordReturns struct { 138 result1 error 139 } 140 updatePasswordReturnsOnCall map[int]struct { 141 result1 error 142 } 143 ValidateClientUserStub func(string) error 144 validateClientUserMutex sync.RWMutex 145 validateClientUserArgsForCall []struct { 146 arg1 string 147 } 148 validateClientUserReturns struct { 149 result1 error 150 } 151 validateClientUserReturnsOnCall map[int]struct { 152 result1 error 153 } 154 invocations map[string][][]interface{} 155 invocationsMutex sync.RWMutex 156 } 157 158 func (fake *FakeUAAClient) APIVersion() string { 159 fake.aPIVersionMutex.Lock() 160 ret, specificReturn := fake.aPIVersionReturnsOnCall[len(fake.aPIVersionArgsForCall)] 161 fake.aPIVersionArgsForCall = append(fake.aPIVersionArgsForCall, struct { 162 }{}) 163 fake.recordInvocation("APIVersion", []interface{}{}) 164 fake.aPIVersionMutex.Unlock() 165 if fake.APIVersionStub != nil { 166 return fake.APIVersionStub() 167 } 168 if specificReturn { 169 return ret.result1 170 } 171 fakeReturns := fake.aPIVersionReturns 172 return fakeReturns.result1 173 } 174 175 func (fake *FakeUAAClient) APIVersionCallCount() int { 176 fake.aPIVersionMutex.RLock() 177 defer fake.aPIVersionMutex.RUnlock() 178 return len(fake.aPIVersionArgsForCall) 179 } 180 181 func (fake *FakeUAAClient) APIVersionCalls(stub func() string) { 182 fake.aPIVersionMutex.Lock() 183 defer fake.aPIVersionMutex.Unlock() 184 fake.APIVersionStub = stub 185 } 186 187 func (fake *FakeUAAClient) APIVersionReturns(result1 string) { 188 fake.aPIVersionMutex.Lock() 189 defer fake.aPIVersionMutex.Unlock() 190 fake.APIVersionStub = nil 191 fake.aPIVersionReturns = struct { 192 result1 string 193 }{result1} 194 } 195 196 func (fake *FakeUAAClient) APIVersionReturnsOnCall(i int, result1 string) { 197 fake.aPIVersionMutex.Lock() 198 defer fake.aPIVersionMutex.Unlock() 199 fake.APIVersionStub = nil 200 if fake.aPIVersionReturnsOnCall == nil { 201 fake.aPIVersionReturnsOnCall = make(map[int]struct { 202 result1 string 203 }) 204 } 205 fake.aPIVersionReturnsOnCall[i] = struct { 206 result1 string 207 }{result1} 208 } 209 210 func (fake *FakeUAAClient) Authenticate(arg1 map[string]string, arg2 string, arg3 constant.GrantType) (string, string, error) { 211 fake.authenticateMutex.Lock() 212 ret, specificReturn := fake.authenticateReturnsOnCall[len(fake.authenticateArgsForCall)] 213 fake.authenticateArgsForCall = append(fake.authenticateArgsForCall, struct { 214 arg1 map[string]string 215 arg2 string 216 arg3 constant.GrantType 217 }{arg1, arg2, arg3}) 218 fake.recordInvocation("Authenticate", []interface{}{arg1, arg2, arg3}) 219 fake.authenticateMutex.Unlock() 220 if fake.AuthenticateStub != nil { 221 return fake.AuthenticateStub(arg1, arg2, arg3) 222 } 223 if specificReturn { 224 return ret.result1, ret.result2, ret.result3 225 } 226 fakeReturns := fake.authenticateReturns 227 return fakeReturns.result1, fakeReturns.result2, fakeReturns.result3 228 } 229 230 func (fake *FakeUAAClient) AuthenticateCallCount() int { 231 fake.authenticateMutex.RLock() 232 defer fake.authenticateMutex.RUnlock() 233 return len(fake.authenticateArgsForCall) 234 } 235 236 func (fake *FakeUAAClient) AuthenticateCalls(stub func(map[string]string, string, constant.GrantType) (string, string, error)) { 237 fake.authenticateMutex.Lock() 238 defer fake.authenticateMutex.Unlock() 239 fake.AuthenticateStub = stub 240 } 241 242 func (fake *FakeUAAClient) AuthenticateArgsForCall(i int) (map[string]string, string, constant.GrantType) { 243 fake.authenticateMutex.RLock() 244 defer fake.authenticateMutex.RUnlock() 245 argsForCall := fake.authenticateArgsForCall[i] 246 return argsForCall.arg1, argsForCall.arg2, argsForCall.arg3 247 } 248 249 func (fake *FakeUAAClient) AuthenticateReturns(result1 string, result2 string, result3 error) { 250 fake.authenticateMutex.Lock() 251 defer fake.authenticateMutex.Unlock() 252 fake.AuthenticateStub = nil 253 fake.authenticateReturns = struct { 254 result1 string 255 result2 string 256 result3 error 257 }{result1, result2, result3} 258 } 259 260 func (fake *FakeUAAClient) AuthenticateReturnsOnCall(i int, result1 string, result2 string, result3 error) { 261 fake.authenticateMutex.Lock() 262 defer fake.authenticateMutex.Unlock() 263 fake.AuthenticateStub = nil 264 if fake.authenticateReturnsOnCall == nil { 265 fake.authenticateReturnsOnCall = make(map[int]struct { 266 result1 string 267 result2 string 268 result3 error 269 }) 270 } 271 fake.authenticateReturnsOnCall[i] = struct { 272 result1 string 273 result2 string 274 result3 error 275 }{result1, result2, result3} 276 } 277 278 func (fake *FakeUAAClient) CreateUser(arg1 string, arg2 string, arg3 string) (uaa.User, error) { 279 fake.createUserMutex.Lock() 280 ret, specificReturn := fake.createUserReturnsOnCall[len(fake.createUserArgsForCall)] 281 fake.createUserArgsForCall = append(fake.createUserArgsForCall, struct { 282 arg1 string 283 arg2 string 284 arg3 string 285 }{arg1, arg2, arg3}) 286 fake.recordInvocation("CreateUser", []interface{}{arg1, arg2, arg3}) 287 fake.createUserMutex.Unlock() 288 if fake.CreateUserStub != nil { 289 return fake.CreateUserStub(arg1, arg2, arg3) 290 } 291 if specificReturn { 292 return ret.result1, ret.result2 293 } 294 fakeReturns := fake.createUserReturns 295 return fakeReturns.result1, fakeReturns.result2 296 } 297 298 func (fake *FakeUAAClient) CreateUserCallCount() int { 299 fake.createUserMutex.RLock() 300 defer fake.createUserMutex.RUnlock() 301 return len(fake.createUserArgsForCall) 302 } 303 304 func (fake *FakeUAAClient) CreateUserCalls(stub func(string, string, string) (uaa.User, error)) { 305 fake.createUserMutex.Lock() 306 defer fake.createUserMutex.Unlock() 307 fake.CreateUserStub = stub 308 } 309 310 func (fake *FakeUAAClient) CreateUserArgsForCall(i int) (string, string, string) { 311 fake.createUserMutex.RLock() 312 defer fake.createUserMutex.RUnlock() 313 argsForCall := fake.createUserArgsForCall[i] 314 return argsForCall.arg1, argsForCall.arg2, argsForCall.arg3 315 } 316 317 func (fake *FakeUAAClient) CreateUserReturns(result1 uaa.User, result2 error) { 318 fake.createUserMutex.Lock() 319 defer fake.createUserMutex.Unlock() 320 fake.CreateUserStub = nil 321 fake.createUserReturns = struct { 322 result1 uaa.User 323 result2 error 324 }{result1, result2} 325 } 326 327 func (fake *FakeUAAClient) CreateUserReturnsOnCall(i int, result1 uaa.User, result2 error) { 328 fake.createUserMutex.Lock() 329 defer fake.createUserMutex.Unlock() 330 fake.CreateUserStub = nil 331 if fake.createUserReturnsOnCall == nil { 332 fake.createUserReturnsOnCall = make(map[int]struct { 333 result1 uaa.User 334 result2 error 335 }) 336 } 337 fake.createUserReturnsOnCall[i] = struct { 338 result1 uaa.User 339 result2 error 340 }{result1, result2} 341 } 342 343 func (fake *FakeUAAClient) DeleteUser(arg1 string) (uaa.User, error) { 344 fake.deleteUserMutex.Lock() 345 ret, specificReturn := fake.deleteUserReturnsOnCall[len(fake.deleteUserArgsForCall)] 346 fake.deleteUserArgsForCall = append(fake.deleteUserArgsForCall, struct { 347 arg1 string 348 }{arg1}) 349 fake.recordInvocation("DeleteUser", []interface{}{arg1}) 350 fake.deleteUserMutex.Unlock() 351 if fake.DeleteUserStub != nil { 352 return fake.DeleteUserStub(arg1) 353 } 354 if specificReturn { 355 return ret.result1, ret.result2 356 } 357 fakeReturns := fake.deleteUserReturns 358 return fakeReturns.result1, fakeReturns.result2 359 } 360 361 func (fake *FakeUAAClient) DeleteUserCallCount() int { 362 fake.deleteUserMutex.RLock() 363 defer fake.deleteUserMutex.RUnlock() 364 return len(fake.deleteUserArgsForCall) 365 } 366 367 func (fake *FakeUAAClient) DeleteUserCalls(stub func(string) (uaa.User, error)) { 368 fake.deleteUserMutex.Lock() 369 defer fake.deleteUserMutex.Unlock() 370 fake.DeleteUserStub = stub 371 } 372 373 func (fake *FakeUAAClient) DeleteUserArgsForCall(i int) string { 374 fake.deleteUserMutex.RLock() 375 defer fake.deleteUserMutex.RUnlock() 376 argsForCall := fake.deleteUserArgsForCall[i] 377 return argsForCall.arg1 378 } 379 380 func (fake *FakeUAAClient) DeleteUserReturns(result1 uaa.User, result2 error) { 381 fake.deleteUserMutex.Lock() 382 defer fake.deleteUserMutex.Unlock() 383 fake.DeleteUserStub = nil 384 fake.deleteUserReturns = struct { 385 result1 uaa.User 386 result2 error 387 }{result1, result2} 388 } 389 390 func (fake *FakeUAAClient) DeleteUserReturnsOnCall(i int, result1 uaa.User, result2 error) { 391 fake.deleteUserMutex.Lock() 392 defer fake.deleteUserMutex.Unlock() 393 fake.DeleteUserStub = nil 394 if fake.deleteUserReturnsOnCall == nil { 395 fake.deleteUserReturnsOnCall = make(map[int]struct { 396 result1 uaa.User 397 result2 error 398 }) 399 } 400 fake.deleteUserReturnsOnCall[i] = struct { 401 result1 uaa.User 402 result2 error 403 }{result1, result2} 404 } 405 406 func (fake *FakeUAAClient) GetSSHPasscode(arg1 string, arg2 string) (string, error) { 407 fake.getSSHPasscodeMutex.Lock() 408 ret, specificReturn := fake.getSSHPasscodeReturnsOnCall[len(fake.getSSHPasscodeArgsForCall)] 409 fake.getSSHPasscodeArgsForCall = append(fake.getSSHPasscodeArgsForCall, struct { 410 arg1 string 411 arg2 string 412 }{arg1, arg2}) 413 fake.recordInvocation("GetSSHPasscode", []interface{}{arg1, arg2}) 414 fake.getSSHPasscodeMutex.Unlock() 415 if fake.GetSSHPasscodeStub != nil { 416 return fake.GetSSHPasscodeStub(arg1, arg2) 417 } 418 if specificReturn { 419 return ret.result1, ret.result2 420 } 421 fakeReturns := fake.getSSHPasscodeReturns 422 return fakeReturns.result1, fakeReturns.result2 423 } 424 425 func (fake *FakeUAAClient) GetSSHPasscodeCallCount() int { 426 fake.getSSHPasscodeMutex.RLock() 427 defer fake.getSSHPasscodeMutex.RUnlock() 428 return len(fake.getSSHPasscodeArgsForCall) 429 } 430 431 func (fake *FakeUAAClient) GetSSHPasscodeCalls(stub func(string, string) (string, error)) { 432 fake.getSSHPasscodeMutex.Lock() 433 defer fake.getSSHPasscodeMutex.Unlock() 434 fake.GetSSHPasscodeStub = stub 435 } 436 437 func (fake *FakeUAAClient) GetSSHPasscodeArgsForCall(i int) (string, string) { 438 fake.getSSHPasscodeMutex.RLock() 439 defer fake.getSSHPasscodeMutex.RUnlock() 440 argsForCall := fake.getSSHPasscodeArgsForCall[i] 441 return argsForCall.arg1, argsForCall.arg2 442 } 443 444 func (fake *FakeUAAClient) GetSSHPasscodeReturns(result1 string, result2 error) { 445 fake.getSSHPasscodeMutex.Lock() 446 defer fake.getSSHPasscodeMutex.Unlock() 447 fake.GetSSHPasscodeStub = nil 448 fake.getSSHPasscodeReturns = struct { 449 result1 string 450 result2 error 451 }{result1, result2} 452 } 453 454 func (fake *FakeUAAClient) GetSSHPasscodeReturnsOnCall(i int, result1 string, result2 error) { 455 fake.getSSHPasscodeMutex.Lock() 456 defer fake.getSSHPasscodeMutex.Unlock() 457 fake.GetSSHPasscodeStub = nil 458 if fake.getSSHPasscodeReturnsOnCall == nil { 459 fake.getSSHPasscodeReturnsOnCall = make(map[int]struct { 460 result1 string 461 result2 error 462 }) 463 } 464 fake.getSSHPasscodeReturnsOnCall[i] = struct { 465 result1 string 466 result2 error 467 }{result1, result2} 468 } 469 470 func (fake *FakeUAAClient) ListUsers(arg1 string, arg2 string) ([]uaa.User, error) { 471 fake.listUsersMutex.Lock() 472 ret, specificReturn := fake.listUsersReturnsOnCall[len(fake.listUsersArgsForCall)] 473 fake.listUsersArgsForCall = append(fake.listUsersArgsForCall, struct { 474 arg1 string 475 arg2 string 476 }{arg1, arg2}) 477 fake.recordInvocation("ListUsers", []interface{}{arg1, arg2}) 478 fake.listUsersMutex.Unlock() 479 if fake.ListUsersStub != nil { 480 return fake.ListUsersStub(arg1, arg2) 481 } 482 if specificReturn { 483 return ret.result1, ret.result2 484 } 485 fakeReturns := fake.listUsersReturns 486 return fakeReturns.result1, fakeReturns.result2 487 } 488 489 func (fake *FakeUAAClient) ListUsersCallCount() int { 490 fake.listUsersMutex.RLock() 491 defer fake.listUsersMutex.RUnlock() 492 return len(fake.listUsersArgsForCall) 493 } 494 495 func (fake *FakeUAAClient) ListUsersCalls(stub func(string, string) ([]uaa.User, error)) { 496 fake.listUsersMutex.Lock() 497 defer fake.listUsersMutex.Unlock() 498 fake.ListUsersStub = stub 499 } 500 501 func (fake *FakeUAAClient) ListUsersArgsForCall(i int) (string, string) { 502 fake.listUsersMutex.RLock() 503 defer fake.listUsersMutex.RUnlock() 504 argsForCall := fake.listUsersArgsForCall[i] 505 return argsForCall.arg1, argsForCall.arg2 506 } 507 508 func (fake *FakeUAAClient) ListUsersReturns(result1 []uaa.User, result2 error) { 509 fake.listUsersMutex.Lock() 510 defer fake.listUsersMutex.Unlock() 511 fake.ListUsersStub = nil 512 fake.listUsersReturns = struct { 513 result1 []uaa.User 514 result2 error 515 }{result1, result2} 516 } 517 518 func (fake *FakeUAAClient) ListUsersReturnsOnCall(i int, result1 []uaa.User, result2 error) { 519 fake.listUsersMutex.Lock() 520 defer fake.listUsersMutex.Unlock() 521 fake.ListUsersStub = nil 522 if fake.listUsersReturnsOnCall == nil { 523 fake.listUsersReturnsOnCall = make(map[int]struct { 524 result1 []uaa.User 525 result2 error 526 }) 527 } 528 fake.listUsersReturnsOnCall[i] = struct { 529 result1 []uaa.User 530 result2 error 531 }{result1, result2} 532 } 533 534 func (fake *FakeUAAClient) LoginPrompts() map[string][]string { 535 fake.loginPromptsMutex.Lock() 536 ret, specificReturn := fake.loginPromptsReturnsOnCall[len(fake.loginPromptsArgsForCall)] 537 fake.loginPromptsArgsForCall = append(fake.loginPromptsArgsForCall, struct { 538 }{}) 539 fake.recordInvocation("LoginPrompts", []interface{}{}) 540 fake.loginPromptsMutex.Unlock() 541 if fake.LoginPromptsStub != nil { 542 return fake.LoginPromptsStub() 543 } 544 if specificReturn { 545 return ret.result1 546 } 547 fakeReturns := fake.loginPromptsReturns 548 return fakeReturns.result1 549 } 550 551 func (fake *FakeUAAClient) LoginPromptsCallCount() int { 552 fake.loginPromptsMutex.RLock() 553 defer fake.loginPromptsMutex.RUnlock() 554 return len(fake.loginPromptsArgsForCall) 555 } 556 557 func (fake *FakeUAAClient) LoginPromptsCalls(stub func() map[string][]string) { 558 fake.loginPromptsMutex.Lock() 559 defer fake.loginPromptsMutex.Unlock() 560 fake.LoginPromptsStub = stub 561 } 562 563 func (fake *FakeUAAClient) LoginPromptsReturns(result1 map[string][]string) { 564 fake.loginPromptsMutex.Lock() 565 defer fake.loginPromptsMutex.Unlock() 566 fake.LoginPromptsStub = nil 567 fake.loginPromptsReturns = struct { 568 result1 map[string][]string 569 }{result1} 570 } 571 572 func (fake *FakeUAAClient) LoginPromptsReturnsOnCall(i int, result1 map[string][]string) { 573 fake.loginPromptsMutex.Lock() 574 defer fake.loginPromptsMutex.Unlock() 575 fake.LoginPromptsStub = nil 576 if fake.loginPromptsReturnsOnCall == nil { 577 fake.loginPromptsReturnsOnCall = make(map[int]struct { 578 result1 map[string][]string 579 }) 580 } 581 fake.loginPromptsReturnsOnCall[i] = struct { 582 result1 map[string][]string 583 }{result1} 584 } 585 586 func (fake *FakeUAAClient) RefreshAccessToken(arg1 string) (uaa.RefreshedTokens, error) { 587 fake.refreshAccessTokenMutex.Lock() 588 ret, specificReturn := fake.refreshAccessTokenReturnsOnCall[len(fake.refreshAccessTokenArgsForCall)] 589 fake.refreshAccessTokenArgsForCall = append(fake.refreshAccessTokenArgsForCall, struct { 590 arg1 string 591 }{arg1}) 592 fake.recordInvocation("RefreshAccessToken", []interface{}{arg1}) 593 fake.refreshAccessTokenMutex.Unlock() 594 if fake.RefreshAccessTokenStub != nil { 595 return fake.RefreshAccessTokenStub(arg1) 596 } 597 if specificReturn { 598 return ret.result1, ret.result2 599 } 600 fakeReturns := fake.refreshAccessTokenReturns 601 return fakeReturns.result1, fakeReturns.result2 602 } 603 604 func (fake *FakeUAAClient) RefreshAccessTokenCallCount() int { 605 fake.refreshAccessTokenMutex.RLock() 606 defer fake.refreshAccessTokenMutex.RUnlock() 607 return len(fake.refreshAccessTokenArgsForCall) 608 } 609 610 func (fake *FakeUAAClient) RefreshAccessTokenCalls(stub func(string) (uaa.RefreshedTokens, error)) { 611 fake.refreshAccessTokenMutex.Lock() 612 defer fake.refreshAccessTokenMutex.Unlock() 613 fake.RefreshAccessTokenStub = stub 614 } 615 616 func (fake *FakeUAAClient) RefreshAccessTokenArgsForCall(i int) string { 617 fake.refreshAccessTokenMutex.RLock() 618 defer fake.refreshAccessTokenMutex.RUnlock() 619 argsForCall := fake.refreshAccessTokenArgsForCall[i] 620 return argsForCall.arg1 621 } 622 623 func (fake *FakeUAAClient) RefreshAccessTokenReturns(result1 uaa.RefreshedTokens, result2 error) { 624 fake.refreshAccessTokenMutex.Lock() 625 defer fake.refreshAccessTokenMutex.Unlock() 626 fake.RefreshAccessTokenStub = nil 627 fake.refreshAccessTokenReturns = struct { 628 result1 uaa.RefreshedTokens 629 result2 error 630 }{result1, result2} 631 } 632 633 func (fake *FakeUAAClient) RefreshAccessTokenReturnsOnCall(i int, result1 uaa.RefreshedTokens, result2 error) { 634 fake.refreshAccessTokenMutex.Lock() 635 defer fake.refreshAccessTokenMutex.Unlock() 636 fake.RefreshAccessTokenStub = nil 637 if fake.refreshAccessTokenReturnsOnCall == nil { 638 fake.refreshAccessTokenReturnsOnCall = make(map[int]struct { 639 result1 uaa.RefreshedTokens 640 result2 error 641 }) 642 } 643 fake.refreshAccessTokenReturnsOnCall[i] = struct { 644 result1 uaa.RefreshedTokens 645 result2 error 646 }{result1, result2} 647 } 648 649 func (fake *FakeUAAClient) Revoke(arg1 string) error { 650 fake.revokeMutex.Lock() 651 ret, specificReturn := fake.revokeReturnsOnCall[len(fake.revokeArgsForCall)] 652 fake.revokeArgsForCall = append(fake.revokeArgsForCall, struct { 653 arg1 string 654 }{arg1}) 655 fake.recordInvocation("Revoke", []interface{}{arg1}) 656 fake.revokeMutex.Unlock() 657 if fake.RevokeStub != nil { 658 return fake.RevokeStub(arg1) 659 } 660 if specificReturn { 661 return ret.result1 662 } 663 fakeReturns := fake.revokeReturns 664 return fakeReturns.result1 665 } 666 667 func (fake *FakeUAAClient) RevokeCallCount() int { 668 fake.revokeMutex.RLock() 669 defer fake.revokeMutex.RUnlock() 670 return len(fake.revokeArgsForCall) 671 } 672 673 func (fake *FakeUAAClient) RevokeCalls(stub func(string) error) { 674 fake.revokeMutex.Lock() 675 defer fake.revokeMutex.Unlock() 676 fake.RevokeStub = stub 677 } 678 679 func (fake *FakeUAAClient) RevokeArgsForCall(i int) string { 680 fake.revokeMutex.RLock() 681 defer fake.revokeMutex.RUnlock() 682 argsForCall := fake.revokeArgsForCall[i] 683 return argsForCall.arg1 684 } 685 686 func (fake *FakeUAAClient) RevokeReturns(result1 error) { 687 fake.revokeMutex.Lock() 688 defer fake.revokeMutex.Unlock() 689 fake.RevokeStub = nil 690 fake.revokeReturns = struct { 691 result1 error 692 }{result1} 693 } 694 695 func (fake *FakeUAAClient) RevokeReturnsOnCall(i int, result1 error) { 696 fake.revokeMutex.Lock() 697 defer fake.revokeMutex.Unlock() 698 fake.RevokeStub = nil 699 if fake.revokeReturnsOnCall == nil { 700 fake.revokeReturnsOnCall = make(map[int]struct { 701 result1 error 702 }) 703 } 704 fake.revokeReturnsOnCall[i] = struct { 705 result1 error 706 }{result1} 707 } 708 709 func (fake *FakeUAAClient) UpdatePassword(arg1 string, arg2 string, arg3 string) error { 710 fake.updatePasswordMutex.Lock() 711 ret, specificReturn := fake.updatePasswordReturnsOnCall[len(fake.updatePasswordArgsForCall)] 712 fake.updatePasswordArgsForCall = append(fake.updatePasswordArgsForCall, struct { 713 arg1 string 714 arg2 string 715 arg3 string 716 }{arg1, arg2, arg3}) 717 fake.recordInvocation("UpdatePassword", []interface{}{arg1, arg2, arg3}) 718 fake.updatePasswordMutex.Unlock() 719 if fake.UpdatePasswordStub != nil { 720 return fake.UpdatePasswordStub(arg1, arg2, arg3) 721 } 722 if specificReturn { 723 return ret.result1 724 } 725 fakeReturns := fake.updatePasswordReturns 726 return fakeReturns.result1 727 } 728 729 func (fake *FakeUAAClient) UpdatePasswordCallCount() int { 730 fake.updatePasswordMutex.RLock() 731 defer fake.updatePasswordMutex.RUnlock() 732 return len(fake.updatePasswordArgsForCall) 733 } 734 735 func (fake *FakeUAAClient) UpdatePasswordCalls(stub func(string, string, string) error) { 736 fake.updatePasswordMutex.Lock() 737 defer fake.updatePasswordMutex.Unlock() 738 fake.UpdatePasswordStub = stub 739 } 740 741 func (fake *FakeUAAClient) UpdatePasswordArgsForCall(i int) (string, string, string) { 742 fake.updatePasswordMutex.RLock() 743 defer fake.updatePasswordMutex.RUnlock() 744 argsForCall := fake.updatePasswordArgsForCall[i] 745 return argsForCall.arg1, argsForCall.arg2, argsForCall.arg3 746 } 747 748 func (fake *FakeUAAClient) UpdatePasswordReturns(result1 error) { 749 fake.updatePasswordMutex.Lock() 750 defer fake.updatePasswordMutex.Unlock() 751 fake.UpdatePasswordStub = nil 752 fake.updatePasswordReturns = struct { 753 result1 error 754 }{result1} 755 } 756 757 func (fake *FakeUAAClient) UpdatePasswordReturnsOnCall(i int, result1 error) { 758 fake.updatePasswordMutex.Lock() 759 defer fake.updatePasswordMutex.Unlock() 760 fake.UpdatePasswordStub = nil 761 if fake.updatePasswordReturnsOnCall == nil { 762 fake.updatePasswordReturnsOnCall = make(map[int]struct { 763 result1 error 764 }) 765 } 766 fake.updatePasswordReturnsOnCall[i] = struct { 767 result1 error 768 }{result1} 769 } 770 771 func (fake *FakeUAAClient) ValidateClientUser(arg1 string) error { 772 fake.validateClientUserMutex.Lock() 773 ret, specificReturn := fake.validateClientUserReturnsOnCall[len(fake.validateClientUserArgsForCall)] 774 fake.validateClientUserArgsForCall = append(fake.validateClientUserArgsForCall, struct { 775 arg1 string 776 }{arg1}) 777 fake.recordInvocation("ValidateClientUser", []interface{}{arg1}) 778 fake.validateClientUserMutex.Unlock() 779 if fake.ValidateClientUserStub != nil { 780 return fake.ValidateClientUserStub(arg1) 781 } 782 if specificReturn { 783 return ret.result1 784 } 785 fakeReturns := fake.validateClientUserReturns 786 return fakeReturns.result1 787 } 788 789 func (fake *FakeUAAClient) ValidateClientUserCallCount() int { 790 fake.validateClientUserMutex.RLock() 791 defer fake.validateClientUserMutex.RUnlock() 792 return len(fake.validateClientUserArgsForCall) 793 } 794 795 func (fake *FakeUAAClient) ValidateClientUserCalls(stub func(string) error) { 796 fake.validateClientUserMutex.Lock() 797 defer fake.validateClientUserMutex.Unlock() 798 fake.ValidateClientUserStub = stub 799 } 800 801 func (fake *FakeUAAClient) ValidateClientUserArgsForCall(i int) string { 802 fake.validateClientUserMutex.RLock() 803 defer fake.validateClientUserMutex.RUnlock() 804 argsForCall := fake.validateClientUserArgsForCall[i] 805 return argsForCall.arg1 806 } 807 808 func (fake *FakeUAAClient) ValidateClientUserReturns(result1 error) { 809 fake.validateClientUserMutex.Lock() 810 defer fake.validateClientUserMutex.Unlock() 811 fake.ValidateClientUserStub = nil 812 fake.validateClientUserReturns = struct { 813 result1 error 814 }{result1} 815 } 816 817 func (fake *FakeUAAClient) ValidateClientUserReturnsOnCall(i int, result1 error) { 818 fake.validateClientUserMutex.Lock() 819 defer fake.validateClientUserMutex.Unlock() 820 fake.ValidateClientUserStub = nil 821 if fake.validateClientUserReturnsOnCall == nil { 822 fake.validateClientUserReturnsOnCall = make(map[int]struct { 823 result1 error 824 }) 825 } 826 fake.validateClientUserReturnsOnCall[i] = struct { 827 result1 error 828 }{result1} 829 } 830 831 func (fake *FakeUAAClient) Invocations() map[string][][]interface{} { 832 fake.invocationsMutex.RLock() 833 defer fake.invocationsMutex.RUnlock() 834 fake.aPIVersionMutex.RLock() 835 defer fake.aPIVersionMutex.RUnlock() 836 fake.authenticateMutex.RLock() 837 defer fake.authenticateMutex.RUnlock() 838 fake.createUserMutex.RLock() 839 defer fake.createUserMutex.RUnlock() 840 fake.deleteUserMutex.RLock() 841 defer fake.deleteUserMutex.RUnlock() 842 fake.getSSHPasscodeMutex.RLock() 843 defer fake.getSSHPasscodeMutex.RUnlock() 844 fake.listUsersMutex.RLock() 845 defer fake.listUsersMutex.RUnlock() 846 fake.loginPromptsMutex.RLock() 847 defer fake.loginPromptsMutex.RUnlock() 848 fake.refreshAccessTokenMutex.RLock() 849 defer fake.refreshAccessTokenMutex.RUnlock() 850 fake.revokeMutex.RLock() 851 defer fake.revokeMutex.RUnlock() 852 fake.updatePasswordMutex.RLock() 853 defer fake.updatePasswordMutex.RUnlock() 854 fake.validateClientUserMutex.RLock() 855 defer fake.validateClientUserMutex.RUnlock() 856 copiedInvocations := map[string][][]interface{}{} 857 for key, value := range fake.invocations { 858 copiedInvocations[key] = value 859 } 860 return copiedInvocations 861 } 862 863 func (fake *FakeUAAClient) recordInvocation(key string, args []interface{}) { 864 fake.invocationsMutex.Lock() 865 defer fake.invocationsMutex.Unlock() 866 if fake.invocations == nil { 867 fake.invocations = map[string][][]interface{}{} 868 } 869 if fake.invocations[key] == nil { 870 fake.invocations[key] = [][]interface{}{} 871 } 872 fake.invocations[key] = append(fake.invocations[key], args) 873 } 874 875 var _ v7action.UAAClient = new(FakeUAAClient)