Skip to content

Commit

Permalink
#94 Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sklein94 committed Jun 27, 2024
1 parent 5eca585 commit 021cab3
Show file tree
Hide file tree
Showing 3 changed files with 655 additions and 541 deletions.
4 changes: 2 additions & 2 deletions app/setup/dogus/installDogusStep_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ func Test_installDogusStep_PerformSetupStep(t *testing.T) {
Status: v1.DoguStatus{},
}

doguClientMock := newMockDoguClient(t)
doguClientMock := NewDoguInterface(t)
doguClientMock.EXPECT().Create(context.Background(), doguCr, metav1.CreateOptions{}).Return(nil, assert.AnError)
ecoSystemClientMock := newMockEcoSystemClient(t)
ecoSystemClientMock.EXPECT().Dogus("namespace").Return(doguClientMock)
Expand Down Expand Up @@ -110,7 +110,7 @@ func Test_installDogusStep_PerformSetupStep(t *testing.T) {
Status: v1.DoguStatus{},
}

doguClientMock := newMockDoguClient(t)
doguClientMock := NewDoguInterface(t)
doguClientMock.EXPECT().Create(context.Background(), doguCr, metav1.CreateOptions{}).Return(doguCr, nil)
ecoSystemClientMock := newMockEcoSystemClient(t)
ecoSystemClientMock.EXPECT().Dogus("namespace").Return(doguClientMock)
Expand Down
Loading

0 comments on commit 021cab3

Please sign in to comment.