Skip to content

Commit

Permalink
unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
mitalipaygude committed Jan 24, 2024
1 parent b7d3bfc commit f4f36cc
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pkg/workflows/management/create_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,8 @@ func TestCreateInstallCustomComponentsFailure(t *testing.T) {
c.expectPreflightValidationsToPass()
c.expectCAPIInstall(nil, nil, nil)

c.eksdInstaller.EXPECT().InstallEksdCRDs(c.ctx, c.clusterSpec, c.bootstrapCluster).Return(nil)

c.clusterManager.EXPECT().InstallCustomComponents(
c.ctx, c.clusterSpec, c.bootstrapCluster, c.provider).Return(errors.New("test"))

Expand All @@ -314,9 +316,6 @@ func TestCreateInstallCRDFailure(t *testing.T) {
c.expectCAPIInstall(nil, nil, nil)

gomock.InOrder(
c.clusterManager.EXPECT().InstallCustomComponents(
c.ctx, c.clusterSpec, c.bootstrapCluster, c.provider),

c.eksdInstaller.EXPECT().InstallEksdCRDs(c.ctx, c.clusterSpec, c.bootstrapCluster).Return(errors.New("test")),
)

Expand Down

0 comments on commit f4f36cc

Please sign in to comment.