diff --git a/pkg/application/mock_doguInstallationRepository_test.go b/pkg/application/mock_doguInstallationRepository_test.go index 1bc010d..d8a8cb5 100644 --- a/pkg/application/mock_doguInstallationRepository_test.go +++ b/pkg/application/mock_doguInstallationRepository_test.go @@ -5,7 +5,7 @@ package application import ( context "context" - common "github.com/cloudogu/k8s-blueprint-operator/pkg/domain/common" + config "github.com/cloudogu/k8s-registry-lib/config" ecosystem "github.com/cloudogu/k8s-blueprint-operator/pkg/domain/ecosystem" @@ -73,7 +73,7 @@ func (_c *mockDoguInstallationRepository_Create_Call) RunAndReturn(run func(cont } // Delete provides a mock function with given fields: ctx, doguName -func (_m *mockDoguInstallationRepository) Delete(ctx context.Context, doguName common.SimpleDoguName) error { +func (_m *mockDoguInstallationRepository) Delete(ctx context.Context, doguName config.SimpleDoguName) error { ret := _m.Called(ctx, doguName) if len(ret) == 0 { @@ -81,7 +81,7 @@ func (_m *mockDoguInstallationRepository) Delete(ctx context.Context, doguName c } var r0 error - if rf, ok := ret.Get(0).(func(context.Context, common.SimpleDoguName) error); ok { + if rf, ok := ret.Get(0).(func(context.Context, config.SimpleDoguName) error); ok { r0 = rf(ctx, doguName) } else { r0 = ret.Error(0) @@ -97,14 +97,14 @@ type mockDoguInstallationRepository_Delete_Call struct { // Delete is a helper method to define mock.On call // - ctx context.Context -// - doguName common.SimpleDoguName +// - doguName config.SimpleDoguName func (_e *mockDoguInstallationRepository_Expecter) Delete(ctx interface{}, doguName interface{}) *mockDoguInstallationRepository_Delete_Call { return &mockDoguInstallationRepository_Delete_Call{Call: _e.mock.On("Delete", ctx, doguName)} } -func (_c *mockDoguInstallationRepository_Delete_Call) Run(run func(ctx context.Context, doguName common.SimpleDoguName)) *mockDoguInstallationRepository_Delete_Call { +func (_c *mockDoguInstallationRepository_Delete_Call) Run(run func(ctx context.Context, doguName config.SimpleDoguName)) *mockDoguInstallationRepository_Delete_Call { _c.Call.Run(func(args mock.Arguments) { - run(args[0].(context.Context), args[1].(common.SimpleDoguName)) + run(args[0].(context.Context), args[1].(config.SimpleDoguName)) }) return _c } @@ -114,29 +114,29 @@ func (_c *mockDoguInstallationRepository_Delete_Call) Return(_a0 error) *mockDog return _c } -func (_c *mockDoguInstallationRepository_Delete_Call) RunAndReturn(run func(context.Context, common.SimpleDoguName) error) *mockDoguInstallationRepository_Delete_Call { +func (_c *mockDoguInstallationRepository_Delete_Call) RunAndReturn(run func(context.Context, config.SimpleDoguName) error) *mockDoguInstallationRepository_Delete_Call { _c.Call.Return(run) return _c } // GetAll provides a mock function with given fields: ctx -func (_m *mockDoguInstallationRepository) GetAll(ctx context.Context) (map[common.SimpleDoguName]*ecosystem.DoguInstallation, error) { +func (_m *mockDoguInstallationRepository) GetAll(ctx context.Context) (map[config.SimpleDoguName]*ecosystem.DoguInstallation, error) { ret := _m.Called(ctx) if len(ret) == 0 { panic("no return value specified for GetAll") } - var r0 map[common.SimpleDoguName]*ecosystem.DoguInstallation + var r0 map[config.SimpleDoguName]*ecosystem.DoguInstallation var r1 error - if rf, ok := ret.Get(0).(func(context.Context) (map[common.SimpleDoguName]*ecosystem.DoguInstallation, error)); ok { + if rf, ok := ret.Get(0).(func(context.Context) (map[config.SimpleDoguName]*ecosystem.DoguInstallation, error)); ok { return rf(ctx) } - if rf, ok := ret.Get(0).(func(context.Context) map[common.SimpleDoguName]*ecosystem.DoguInstallation); ok { + if rf, ok := ret.Get(0).(func(context.Context) map[config.SimpleDoguName]*ecosystem.DoguInstallation); ok { r0 = rf(ctx) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(map[common.SimpleDoguName]*ecosystem.DoguInstallation) + r0 = ret.Get(0).(map[config.SimpleDoguName]*ecosystem.DoguInstallation) } } @@ -167,18 +167,18 @@ func (_c *mockDoguInstallationRepository_GetAll_Call) Run(run func(ctx context.C return _c } -func (_c *mockDoguInstallationRepository_GetAll_Call) Return(_a0 map[common.SimpleDoguName]*ecosystem.DoguInstallation, _a1 error) *mockDoguInstallationRepository_GetAll_Call { +func (_c *mockDoguInstallationRepository_GetAll_Call) Return(_a0 map[config.SimpleDoguName]*ecosystem.DoguInstallation, _a1 error) *mockDoguInstallationRepository_GetAll_Call { _c.Call.Return(_a0, _a1) return _c } -func (_c *mockDoguInstallationRepository_GetAll_Call) RunAndReturn(run func(context.Context) (map[common.SimpleDoguName]*ecosystem.DoguInstallation, error)) *mockDoguInstallationRepository_GetAll_Call { +func (_c *mockDoguInstallationRepository_GetAll_Call) RunAndReturn(run func(context.Context) (map[config.SimpleDoguName]*ecosystem.DoguInstallation, error)) *mockDoguInstallationRepository_GetAll_Call { _c.Call.Return(run) return _c } // GetByName provides a mock function with given fields: ctx, doguName -func (_m *mockDoguInstallationRepository) GetByName(ctx context.Context, doguName common.SimpleDoguName) (*ecosystem.DoguInstallation, error) { +func (_m *mockDoguInstallationRepository) GetByName(ctx context.Context, doguName config.SimpleDoguName) (*ecosystem.DoguInstallation, error) { ret := _m.Called(ctx, doguName) if len(ret) == 0 { @@ -187,10 +187,10 @@ func (_m *mockDoguInstallationRepository) GetByName(ctx context.Context, doguNam var r0 *ecosystem.DoguInstallation var r1 error - if rf, ok := ret.Get(0).(func(context.Context, common.SimpleDoguName) (*ecosystem.DoguInstallation, error)); ok { + if rf, ok := ret.Get(0).(func(context.Context, config.SimpleDoguName) (*ecosystem.DoguInstallation, error)); ok { return rf(ctx, doguName) } - if rf, ok := ret.Get(0).(func(context.Context, common.SimpleDoguName) *ecosystem.DoguInstallation); ok { + if rf, ok := ret.Get(0).(func(context.Context, config.SimpleDoguName) *ecosystem.DoguInstallation); ok { r0 = rf(ctx, doguName) } else { if ret.Get(0) != nil { @@ -198,7 +198,7 @@ func (_m *mockDoguInstallationRepository) GetByName(ctx context.Context, doguNam } } - if rf, ok := ret.Get(1).(func(context.Context, common.SimpleDoguName) error); ok { + if rf, ok := ret.Get(1).(func(context.Context, config.SimpleDoguName) error); ok { r1 = rf(ctx, doguName) } else { r1 = ret.Error(1) @@ -214,14 +214,14 @@ type mockDoguInstallationRepository_GetByName_Call struct { // GetByName is a helper method to define mock.On call // - ctx context.Context -// - doguName common.SimpleDoguName +// - doguName config.SimpleDoguName func (_e *mockDoguInstallationRepository_Expecter) GetByName(ctx interface{}, doguName interface{}) *mockDoguInstallationRepository_GetByName_Call { return &mockDoguInstallationRepository_GetByName_Call{Call: _e.mock.On("GetByName", ctx, doguName)} } -func (_c *mockDoguInstallationRepository_GetByName_Call) Run(run func(ctx context.Context, doguName common.SimpleDoguName)) *mockDoguInstallationRepository_GetByName_Call { +func (_c *mockDoguInstallationRepository_GetByName_Call) Run(run func(ctx context.Context, doguName config.SimpleDoguName)) *mockDoguInstallationRepository_GetByName_Call { _c.Call.Run(func(args mock.Arguments) { - run(args[0].(context.Context), args[1].(common.SimpleDoguName)) + run(args[0].(context.Context), args[1].(config.SimpleDoguName)) }) return _c } @@ -231,7 +231,7 @@ func (_c *mockDoguInstallationRepository_GetByName_Call) Return(_a0 *ecosystem.D return _c } -func (_c *mockDoguInstallationRepository_GetByName_Call) RunAndReturn(run func(context.Context, common.SimpleDoguName) (*ecosystem.DoguInstallation, error)) *mockDoguInstallationRepository_GetByName_Call { +func (_c *mockDoguInstallationRepository_GetByName_Call) RunAndReturn(run func(context.Context, config.SimpleDoguName) (*ecosystem.DoguInstallation, error)) *mockDoguInstallationRepository_GetByName_Call { _c.Call.Return(run) return _c } diff --git a/pkg/application/mock_doguRestartRepository_test.go b/pkg/application/mock_doguRestartRepository_test.go index 660bd1b..7cc8e28 100644 --- a/pkg/application/mock_doguRestartRepository_test.go +++ b/pkg/application/mock_doguRestartRepository_test.go @@ -5,7 +5,7 @@ package application import ( context "context" - common "github.com/cloudogu/k8s-blueprint-operator/pkg/domain/common" + config "github.com/cloudogu/k8s-registry-lib/config" mock "github.com/stretchr/testify/mock" ) @@ -24,7 +24,7 @@ func (_m *mockDoguRestartRepository) EXPECT() *mockDoguRestartRepository_Expecte } // RestartAll provides a mock function with given fields: _a0, _a1 -func (_m *mockDoguRestartRepository) RestartAll(_a0 context.Context, _a1 []common.SimpleDoguName) error { +func (_m *mockDoguRestartRepository) RestartAll(_a0 context.Context, _a1 []config.SimpleDoguName) error { ret := _m.Called(_a0, _a1) if len(ret) == 0 { @@ -32,7 +32,7 @@ func (_m *mockDoguRestartRepository) RestartAll(_a0 context.Context, _a1 []commo } var r0 error - if rf, ok := ret.Get(0).(func(context.Context, []common.SimpleDoguName) error); ok { + if rf, ok := ret.Get(0).(func(context.Context, []config.SimpleDoguName) error); ok { r0 = rf(_a0, _a1) } else { r0 = ret.Error(0) @@ -48,14 +48,14 @@ type mockDoguRestartRepository_RestartAll_Call struct { // RestartAll is a helper method to define mock.On call // - _a0 context.Context -// - _a1 []common.SimpleDoguName +// - _a1 []config.SimpleDoguName func (_e *mockDoguRestartRepository_Expecter) RestartAll(_a0 interface{}, _a1 interface{}) *mockDoguRestartRepository_RestartAll_Call { return &mockDoguRestartRepository_RestartAll_Call{Call: _e.mock.On("RestartAll", _a0, _a1)} } -func (_c *mockDoguRestartRepository_RestartAll_Call) Run(run func(_a0 context.Context, _a1 []common.SimpleDoguName)) *mockDoguRestartRepository_RestartAll_Call { +func (_c *mockDoguRestartRepository_RestartAll_Call) Run(run func(_a0 context.Context, _a1 []config.SimpleDoguName)) *mockDoguRestartRepository_RestartAll_Call { _c.Call.Run(func(args mock.Arguments) { - run(args[0].(context.Context), args[1].([]common.SimpleDoguName)) + run(args[0].(context.Context), args[1].([]config.SimpleDoguName)) }) return _c } @@ -65,7 +65,7 @@ func (_c *mockDoguRestartRepository_RestartAll_Call) Return(_a0 error) *mockDogu return _c } -func (_c *mockDoguRestartRepository_RestartAll_Call) RunAndReturn(run func(context.Context, []common.SimpleDoguName) error) *mockDoguRestartRepository_RestartAll_Call { +func (_c *mockDoguRestartRepository_RestartAll_Call) RunAndReturn(run func(context.Context, []config.SimpleDoguName) error) *mockDoguRestartRepository_RestartAll_Call { _c.Call.Return(run) return _c } diff --git a/pkg/application/mock_sensitiveDoguConfigEntryRepository_test.go b/pkg/application/mock_sensitiveDoguConfigEntryRepository_test.go index 36ddafe..ca8262e 100644 --- a/pkg/application/mock_sensitiveDoguConfigEntryRepository_test.go +++ b/pkg/application/mock_sensitiveDoguConfigEntryRepository_test.go @@ -3,9 +3,10 @@ package application import ( - context "context" - common "github.com/cloudogu/k8s-blueprint-operator/pkg/domain/common" + config "github.com/cloudogu/k8s-registry-lib/config" + + context "context" ecosystem "github.com/cloudogu/k8s-blueprint-operator/pkg/domain/ecosystem" @@ -332,7 +333,7 @@ func (_c *mockSensitiveDoguConfigEntryRepository_SaveAll_Call) RunAndReturn(run } // SaveAllForNotInstalledDogu provides a mock function with given fields: _a0, _a1, _a2 -func (_m *mockSensitiveDoguConfigEntryRepository) SaveAllForNotInstalledDogu(_a0 context.Context, _a1 common.SimpleDoguName, _a2 []*ecosystem.SensitiveDoguConfigEntry) error { +func (_m *mockSensitiveDoguConfigEntryRepository) SaveAllForNotInstalledDogu(_a0 context.Context, _a1 config.SimpleDoguName, _a2 []*ecosystem.SensitiveDoguConfigEntry) error { ret := _m.Called(_a0, _a1, _a2) if len(ret) == 0 { @@ -340,7 +341,7 @@ func (_m *mockSensitiveDoguConfigEntryRepository) SaveAllForNotInstalledDogu(_a0 } var r0 error - if rf, ok := ret.Get(0).(func(context.Context, common.SimpleDoguName, []*ecosystem.SensitiveDoguConfigEntry) error); ok { + if rf, ok := ret.Get(0).(func(context.Context, config.SimpleDoguName, []*ecosystem.SensitiveDoguConfigEntry) error); ok { r0 = rf(_a0, _a1, _a2) } else { r0 = ret.Error(0) @@ -356,15 +357,15 @@ type mockSensitiveDoguConfigEntryRepository_SaveAllForNotInstalledDogu_Call stru // SaveAllForNotInstalledDogu is a helper method to define mock.On call // - _a0 context.Context -// - _a1 common.SimpleDoguName +// - _a1 config.SimpleDoguName // - _a2 []*ecosystem.SensitiveDoguConfigEntry func (_e *mockSensitiveDoguConfigEntryRepository_Expecter) SaveAllForNotInstalledDogu(_a0 interface{}, _a1 interface{}, _a2 interface{}) *mockSensitiveDoguConfigEntryRepository_SaveAllForNotInstalledDogu_Call { return &mockSensitiveDoguConfigEntryRepository_SaveAllForNotInstalledDogu_Call{Call: _e.mock.On("SaveAllForNotInstalledDogu", _a0, _a1, _a2)} } -func (_c *mockSensitiveDoguConfigEntryRepository_SaveAllForNotInstalledDogu_Call) Run(run func(_a0 context.Context, _a1 common.SimpleDoguName, _a2 []*ecosystem.SensitiveDoguConfigEntry)) *mockSensitiveDoguConfigEntryRepository_SaveAllForNotInstalledDogu_Call { +func (_c *mockSensitiveDoguConfigEntryRepository_SaveAllForNotInstalledDogu_Call) Run(run func(_a0 context.Context, _a1 config.SimpleDoguName, _a2 []*ecosystem.SensitiveDoguConfigEntry)) *mockSensitiveDoguConfigEntryRepository_SaveAllForNotInstalledDogu_Call { _c.Call.Run(func(args mock.Arguments) { - run(args[0].(context.Context), args[1].(common.SimpleDoguName), args[2].([]*ecosystem.SensitiveDoguConfigEntry)) + run(args[0].(context.Context), args[1].(config.SimpleDoguName), args[2].([]*ecosystem.SensitiveDoguConfigEntry)) }) return _c } @@ -374,7 +375,7 @@ func (_c *mockSensitiveDoguConfigEntryRepository_SaveAllForNotInstalledDogu_Call return _c } -func (_c *mockSensitiveDoguConfigEntryRepository_SaveAllForNotInstalledDogu_Call) RunAndReturn(run func(context.Context, common.SimpleDoguName, []*ecosystem.SensitiveDoguConfigEntry) error) *mockSensitiveDoguConfigEntryRepository_SaveAllForNotInstalledDogu_Call { +func (_c *mockSensitiveDoguConfigEntryRepository_SaveAllForNotInstalledDogu_Call) RunAndReturn(run func(context.Context, config.SimpleDoguName, []*ecosystem.SensitiveDoguConfigEntry) error) *mockSensitiveDoguConfigEntryRepository_SaveAllForNotInstalledDogu_Call { _c.Call.Return(run) return _c } diff --git a/pkg/domainservice/mock_DoguInstallationRepository_test.go b/pkg/domainservice/mock_DoguInstallationRepository_test.go index ea12860..146547a 100644 --- a/pkg/domainservice/mock_DoguInstallationRepository_test.go +++ b/pkg/domainservice/mock_DoguInstallationRepository_test.go @@ -5,7 +5,7 @@ package domainservice import ( context "context" - common "github.com/cloudogu/k8s-blueprint-operator/pkg/domain/common" + config "github.com/cloudogu/k8s-registry-lib/config" ecosystem "github.com/cloudogu/k8s-blueprint-operator/pkg/domain/ecosystem" @@ -73,7 +73,7 @@ func (_c *MockDoguInstallationRepository_Create_Call) RunAndReturn(run func(cont } // Delete provides a mock function with given fields: ctx, doguName -func (_m *MockDoguInstallationRepository) Delete(ctx context.Context, doguName common.SimpleDoguName) error { +func (_m *MockDoguInstallationRepository) Delete(ctx context.Context, doguName config.SimpleDoguName) error { ret := _m.Called(ctx, doguName) if len(ret) == 0 { @@ -81,7 +81,7 @@ func (_m *MockDoguInstallationRepository) Delete(ctx context.Context, doguName c } var r0 error - if rf, ok := ret.Get(0).(func(context.Context, common.SimpleDoguName) error); ok { + if rf, ok := ret.Get(0).(func(context.Context, config.SimpleDoguName) error); ok { r0 = rf(ctx, doguName) } else { r0 = ret.Error(0) @@ -97,14 +97,14 @@ type MockDoguInstallationRepository_Delete_Call struct { // Delete is a helper method to define mock.On call // - ctx context.Context -// - doguName common.SimpleDoguName +// - doguName config.SimpleDoguName func (_e *MockDoguInstallationRepository_Expecter) Delete(ctx interface{}, doguName interface{}) *MockDoguInstallationRepository_Delete_Call { return &MockDoguInstallationRepository_Delete_Call{Call: _e.mock.On("Delete", ctx, doguName)} } -func (_c *MockDoguInstallationRepository_Delete_Call) Run(run func(ctx context.Context, doguName common.SimpleDoguName)) *MockDoguInstallationRepository_Delete_Call { +func (_c *MockDoguInstallationRepository_Delete_Call) Run(run func(ctx context.Context, doguName config.SimpleDoguName)) *MockDoguInstallationRepository_Delete_Call { _c.Call.Run(func(args mock.Arguments) { - run(args[0].(context.Context), args[1].(common.SimpleDoguName)) + run(args[0].(context.Context), args[1].(config.SimpleDoguName)) }) return _c } @@ -114,29 +114,29 @@ func (_c *MockDoguInstallationRepository_Delete_Call) Return(_a0 error) *MockDog return _c } -func (_c *MockDoguInstallationRepository_Delete_Call) RunAndReturn(run func(context.Context, common.SimpleDoguName) error) *MockDoguInstallationRepository_Delete_Call { +func (_c *MockDoguInstallationRepository_Delete_Call) RunAndReturn(run func(context.Context, config.SimpleDoguName) error) *MockDoguInstallationRepository_Delete_Call { _c.Call.Return(run) return _c } // GetAll provides a mock function with given fields: ctx -func (_m *MockDoguInstallationRepository) GetAll(ctx context.Context) (map[common.SimpleDoguName]*ecosystem.DoguInstallation, error) { +func (_m *MockDoguInstallationRepository) GetAll(ctx context.Context) (map[config.SimpleDoguName]*ecosystem.DoguInstallation, error) { ret := _m.Called(ctx) if len(ret) == 0 { panic("no return value specified for GetAll") } - var r0 map[common.SimpleDoguName]*ecosystem.DoguInstallation + var r0 map[config.SimpleDoguName]*ecosystem.DoguInstallation var r1 error - if rf, ok := ret.Get(0).(func(context.Context) (map[common.SimpleDoguName]*ecosystem.DoguInstallation, error)); ok { + if rf, ok := ret.Get(0).(func(context.Context) (map[config.SimpleDoguName]*ecosystem.DoguInstallation, error)); ok { return rf(ctx) } - if rf, ok := ret.Get(0).(func(context.Context) map[common.SimpleDoguName]*ecosystem.DoguInstallation); ok { + if rf, ok := ret.Get(0).(func(context.Context) map[config.SimpleDoguName]*ecosystem.DoguInstallation); ok { r0 = rf(ctx) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).(map[common.SimpleDoguName]*ecosystem.DoguInstallation) + r0 = ret.Get(0).(map[config.SimpleDoguName]*ecosystem.DoguInstallation) } } @@ -167,18 +167,18 @@ func (_c *MockDoguInstallationRepository_GetAll_Call) Run(run func(ctx context.C return _c } -func (_c *MockDoguInstallationRepository_GetAll_Call) Return(_a0 map[common.SimpleDoguName]*ecosystem.DoguInstallation, _a1 error) *MockDoguInstallationRepository_GetAll_Call { +func (_c *MockDoguInstallationRepository_GetAll_Call) Return(_a0 map[config.SimpleDoguName]*ecosystem.DoguInstallation, _a1 error) *MockDoguInstallationRepository_GetAll_Call { _c.Call.Return(_a0, _a1) return _c } -func (_c *MockDoguInstallationRepository_GetAll_Call) RunAndReturn(run func(context.Context) (map[common.SimpleDoguName]*ecosystem.DoguInstallation, error)) *MockDoguInstallationRepository_GetAll_Call { +func (_c *MockDoguInstallationRepository_GetAll_Call) RunAndReturn(run func(context.Context) (map[config.SimpleDoguName]*ecosystem.DoguInstallation, error)) *MockDoguInstallationRepository_GetAll_Call { _c.Call.Return(run) return _c } // GetByName provides a mock function with given fields: ctx, doguName -func (_m *MockDoguInstallationRepository) GetByName(ctx context.Context, doguName common.SimpleDoguName) (*ecosystem.DoguInstallation, error) { +func (_m *MockDoguInstallationRepository) GetByName(ctx context.Context, doguName config.SimpleDoguName) (*ecosystem.DoguInstallation, error) { ret := _m.Called(ctx, doguName) if len(ret) == 0 { @@ -187,10 +187,10 @@ func (_m *MockDoguInstallationRepository) GetByName(ctx context.Context, doguNam var r0 *ecosystem.DoguInstallation var r1 error - if rf, ok := ret.Get(0).(func(context.Context, common.SimpleDoguName) (*ecosystem.DoguInstallation, error)); ok { + if rf, ok := ret.Get(0).(func(context.Context, config.SimpleDoguName) (*ecosystem.DoguInstallation, error)); ok { return rf(ctx, doguName) } - if rf, ok := ret.Get(0).(func(context.Context, common.SimpleDoguName) *ecosystem.DoguInstallation); ok { + if rf, ok := ret.Get(0).(func(context.Context, config.SimpleDoguName) *ecosystem.DoguInstallation); ok { r0 = rf(ctx, doguName) } else { if ret.Get(0) != nil { @@ -198,7 +198,7 @@ func (_m *MockDoguInstallationRepository) GetByName(ctx context.Context, doguNam } } - if rf, ok := ret.Get(1).(func(context.Context, common.SimpleDoguName) error); ok { + if rf, ok := ret.Get(1).(func(context.Context, config.SimpleDoguName) error); ok { r1 = rf(ctx, doguName) } else { r1 = ret.Error(1) @@ -214,14 +214,14 @@ type MockDoguInstallationRepository_GetByName_Call struct { // GetByName is a helper method to define mock.On call // - ctx context.Context -// - doguName common.SimpleDoguName +// - doguName config.SimpleDoguName func (_e *MockDoguInstallationRepository_Expecter) GetByName(ctx interface{}, doguName interface{}) *MockDoguInstallationRepository_GetByName_Call { return &MockDoguInstallationRepository_GetByName_Call{Call: _e.mock.On("GetByName", ctx, doguName)} } -func (_c *MockDoguInstallationRepository_GetByName_Call) Run(run func(ctx context.Context, doguName common.SimpleDoguName)) *MockDoguInstallationRepository_GetByName_Call { +func (_c *MockDoguInstallationRepository_GetByName_Call) Run(run func(ctx context.Context, doguName config.SimpleDoguName)) *MockDoguInstallationRepository_GetByName_Call { _c.Call.Run(func(args mock.Arguments) { - run(args[0].(context.Context), args[1].(common.SimpleDoguName)) + run(args[0].(context.Context), args[1].(config.SimpleDoguName)) }) return _c } @@ -231,7 +231,7 @@ func (_c *MockDoguInstallationRepository_GetByName_Call) Return(_a0 *ecosystem.D return _c } -func (_c *MockDoguInstallationRepository_GetByName_Call) RunAndReturn(run func(context.Context, common.SimpleDoguName) (*ecosystem.DoguInstallation, error)) *MockDoguInstallationRepository_GetByName_Call { +func (_c *MockDoguInstallationRepository_GetByName_Call) RunAndReturn(run func(context.Context, config.SimpleDoguName) (*ecosystem.DoguInstallation, error)) *MockDoguInstallationRepository_GetByName_Call { _c.Call.Return(run) return _c } diff --git a/pkg/domainservice/mock_DoguRestartRepository_test.go b/pkg/domainservice/mock_DoguRestartRepository_test.go index e1f2e48..e80ea07 100644 --- a/pkg/domainservice/mock_DoguRestartRepository_test.go +++ b/pkg/domainservice/mock_DoguRestartRepository_test.go @@ -5,7 +5,7 @@ package domainservice import ( context "context" - common "github.com/cloudogu/k8s-blueprint-operator/pkg/domain/common" + config "github.com/cloudogu/k8s-registry-lib/config" mock "github.com/stretchr/testify/mock" ) @@ -24,7 +24,7 @@ func (_m *MockDoguRestartRepository) EXPECT() *MockDoguRestartRepository_Expecte } // RestartAll provides a mock function with given fields: _a0, _a1 -func (_m *MockDoguRestartRepository) RestartAll(_a0 context.Context, _a1 []common.SimpleDoguName) error { +func (_m *MockDoguRestartRepository) RestartAll(_a0 context.Context, _a1 []config.SimpleDoguName) error { ret := _m.Called(_a0, _a1) if len(ret) == 0 { @@ -32,7 +32,7 @@ func (_m *MockDoguRestartRepository) RestartAll(_a0 context.Context, _a1 []commo } var r0 error - if rf, ok := ret.Get(0).(func(context.Context, []common.SimpleDoguName) error); ok { + if rf, ok := ret.Get(0).(func(context.Context, []config.SimpleDoguName) error); ok { r0 = rf(_a0, _a1) } else { r0 = ret.Error(0) @@ -48,14 +48,14 @@ type MockDoguRestartRepository_RestartAll_Call struct { // RestartAll is a helper method to define mock.On call // - _a0 context.Context -// - _a1 []common.SimpleDoguName +// - _a1 []config.SimpleDoguName func (_e *MockDoguRestartRepository_Expecter) RestartAll(_a0 interface{}, _a1 interface{}) *MockDoguRestartRepository_RestartAll_Call { return &MockDoguRestartRepository_RestartAll_Call{Call: _e.mock.On("RestartAll", _a0, _a1)} } -func (_c *MockDoguRestartRepository_RestartAll_Call) Run(run func(_a0 context.Context, _a1 []common.SimpleDoguName)) *MockDoguRestartRepository_RestartAll_Call { +func (_c *MockDoguRestartRepository_RestartAll_Call) Run(run func(_a0 context.Context, _a1 []config.SimpleDoguName)) *MockDoguRestartRepository_RestartAll_Call { _c.Call.Run(func(args mock.Arguments) { - run(args[0].(context.Context), args[1].([]common.SimpleDoguName)) + run(args[0].(context.Context), args[1].([]config.SimpleDoguName)) }) return _c } @@ -65,7 +65,7 @@ func (_c *MockDoguRestartRepository_RestartAll_Call) Return(_a0 error) *MockDogu return _c } -func (_c *MockDoguRestartRepository_RestartAll_Call) RunAndReturn(run func(context.Context, []common.SimpleDoguName) error) *MockDoguRestartRepository_RestartAll_Call { +func (_c *MockDoguRestartRepository_RestartAll_Call) RunAndReturn(run func(context.Context, []config.SimpleDoguName) error) *MockDoguRestartRepository_RestartAll_Call { _c.Call.Return(run) return _c } diff --git a/pkg/domainservice/mock_SensitiveDoguConfigEntryRepository_test.go b/pkg/domainservice/mock_SensitiveDoguConfigEntryRepository_test.go index f820ba9..56c513f 100644 --- a/pkg/domainservice/mock_SensitiveDoguConfigEntryRepository_test.go +++ b/pkg/domainservice/mock_SensitiveDoguConfigEntryRepository_test.go @@ -3,9 +3,10 @@ package domainservice import ( - context "context" - common "github.com/cloudogu/k8s-blueprint-operator/pkg/domain/common" + config "github.com/cloudogu/k8s-registry-lib/config" + + context "context" ecosystem "github.com/cloudogu/k8s-blueprint-operator/pkg/domain/ecosystem" @@ -332,7 +333,7 @@ func (_c *MockSensitiveDoguConfigEntryRepository_SaveAll_Call) RunAndReturn(run } // SaveAllForNotInstalledDogu provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockSensitiveDoguConfigEntryRepository) SaveAllForNotInstalledDogu(_a0 context.Context, _a1 common.SimpleDoguName, _a2 []*ecosystem.SensitiveDoguConfigEntry) error { +func (_m *MockSensitiveDoguConfigEntryRepository) SaveAllForNotInstalledDogu(_a0 context.Context, _a1 config.SimpleDoguName, _a2 []*ecosystem.SensitiveDoguConfigEntry) error { ret := _m.Called(_a0, _a1, _a2) if len(ret) == 0 { @@ -340,7 +341,7 @@ func (_m *MockSensitiveDoguConfigEntryRepository) SaveAllForNotInstalledDogu(_a0 } var r0 error - if rf, ok := ret.Get(0).(func(context.Context, common.SimpleDoguName, []*ecosystem.SensitiveDoguConfigEntry) error); ok { + if rf, ok := ret.Get(0).(func(context.Context, config.SimpleDoguName, []*ecosystem.SensitiveDoguConfigEntry) error); ok { r0 = rf(_a0, _a1, _a2) } else { r0 = ret.Error(0) @@ -356,15 +357,15 @@ type MockSensitiveDoguConfigEntryRepository_SaveAllForNotInstalledDogu_Call stru // SaveAllForNotInstalledDogu is a helper method to define mock.On call // - _a0 context.Context -// - _a1 common.SimpleDoguName +// - _a1 config.SimpleDoguName // - _a2 []*ecosystem.SensitiveDoguConfigEntry func (_e *MockSensitiveDoguConfigEntryRepository_Expecter) SaveAllForNotInstalledDogu(_a0 interface{}, _a1 interface{}, _a2 interface{}) *MockSensitiveDoguConfigEntryRepository_SaveAllForNotInstalledDogu_Call { return &MockSensitiveDoguConfigEntryRepository_SaveAllForNotInstalledDogu_Call{Call: _e.mock.On("SaveAllForNotInstalledDogu", _a0, _a1, _a2)} } -func (_c *MockSensitiveDoguConfigEntryRepository_SaveAllForNotInstalledDogu_Call) Run(run func(_a0 context.Context, _a1 common.SimpleDoguName, _a2 []*ecosystem.SensitiveDoguConfigEntry)) *MockSensitiveDoguConfigEntryRepository_SaveAllForNotInstalledDogu_Call { +func (_c *MockSensitiveDoguConfigEntryRepository_SaveAllForNotInstalledDogu_Call) Run(run func(_a0 context.Context, _a1 config.SimpleDoguName, _a2 []*ecosystem.SensitiveDoguConfigEntry)) *MockSensitiveDoguConfigEntryRepository_SaveAllForNotInstalledDogu_Call { _c.Call.Run(func(args mock.Arguments) { - run(args[0].(context.Context), args[1].(common.SimpleDoguName), args[2].([]*ecosystem.SensitiveDoguConfigEntry)) + run(args[0].(context.Context), args[1].(config.SimpleDoguName), args[2].([]*ecosystem.SensitiveDoguConfigEntry)) }) return _c } @@ -374,7 +375,7 @@ func (_c *MockSensitiveDoguConfigEntryRepository_SaveAllForNotInstalledDogu_Call return _c } -func (_c *MockSensitiveDoguConfigEntryRepository_SaveAllForNotInstalledDogu_Call) RunAndReturn(run func(context.Context, common.SimpleDoguName, []*ecosystem.SensitiveDoguConfigEntry) error) *MockSensitiveDoguConfigEntryRepository_SaveAllForNotInstalledDogu_Call { +func (_c *MockSensitiveDoguConfigEntryRepository_SaveAllForNotInstalledDogu_Call) RunAndReturn(run func(context.Context, config.SimpleDoguName, []*ecosystem.SensitiveDoguConfigEntry) error) *MockSensitiveDoguConfigEntryRepository_SaveAllForNotInstalledDogu_Call { _c.Call.Return(run) return _c }