Set credentials in pool manager
Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
This commit is contained in:
parent
f12d93f14c
commit
3d26900d32
15 changed files with 314 additions and 48 deletions
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by mockery v2.22.1. DO NOT EDIT.
|
||||
// Code generated by mockery v0.0.0-dev. DO NOT EDIT.
|
||||
|
||||
package mocks
|
||||
|
||||
|
|
@ -191,6 +191,30 @@ func (_m *PoolManagerController) GetEnterprisePoolManagers() (map[string]common.
|
|||
return r0, r1
|
||||
}
|
||||
|
||||
// GetInternalConfig provides a mock function with given fields: credsName
|
||||
func (_m *PoolManagerController) GetInternalConfig(credsName string) (params.Internal, error) {
|
||||
ret := _m.Called(credsName)
|
||||
|
||||
var r0 params.Internal
|
||||
var r1 error
|
||||
if rf, ok := ret.Get(0).(func(string) (params.Internal, error)); ok {
|
||||
return rf(credsName)
|
||||
}
|
||||
if rf, ok := ret.Get(0).(func(string) params.Internal); ok {
|
||||
r0 = rf(credsName)
|
||||
} else {
|
||||
r0 = ret.Get(0).(params.Internal)
|
||||
}
|
||||
|
||||
if rf, ok := ret.Get(1).(func(string) error); ok {
|
||||
r1 = rf(credsName)
|
||||
} else {
|
||||
r1 = ret.Error(1)
|
||||
}
|
||||
|
||||
return r0, r1
|
||||
}
|
||||
|
||||
// GetOrgPoolManager provides a mock function with given fields: org
|
||||
func (_m *PoolManagerController) GetOrgPoolManager(org params.Organization) (common.PoolManager, error) {
|
||||
ret := _m.Called(org)
|
||||
|
|
@ -295,13 +319,12 @@ func (_m *PoolManagerController) GetRepoPoolManagers() (map[string]common.PoolMa
|
|||
return r0, r1
|
||||
}
|
||||
|
||||
type mockConstructorTestingTNewPoolManagerController interface {
|
||||
// NewPoolManagerController creates a new instance of PoolManagerController. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
|
||||
// The first argument is typically a *testing.T value.
|
||||
func NewPoolManagerController(t interface {
|
||||
mock.TestingT
|
||||
Cleanup(func())
|
||||
}
|
||||
|
||||
// NewPoolManagerController creates a new instance of PoolManagerController. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
|
||||
func NewPoolManagerController(t mockConstructorTestingTNewPoolManagerController) *PoolManagerController {
|
||||
}) *PoolManagerController {
|
||||
mock := &PoolManagerController{}
|
||||
mock.Mock.Test(t)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue