Skip to content

Commit

Permalink
add new unit test case
Browse files Browse the repository at this point in the history
  • Loading branch information
ashleyvjoy committed Jun 10, 2024
1 parent 16be871 commit 47125be
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions controllers/acc_controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -723,17 +723,12 @@ func (suite *AccControllerTestSuite) debugAccFakeObjects() {

func (suite *AccControllerTestSuite) TestDeployApexConnectivityClient() {
mockClient := suite.fakeClient
fmt.Printf("1")

csm := shared.MakeCSM("csm", suite.namespace, shared.PmaxConfigVersion)
csmList := &csmv1.ContainerStorageModuleList{
Items: []csmv1.ContainerStorageModule{csm},
}

acc := shared.MakeAcc(accName, suite.namespace, accConfigVersion)
fmt.Printf("2")
suite.fakeClient.List(accCtx, csmList)
fmt.Printf("3")
// mockClient.On("List", mock.Anything, mock.Anything, mock.Anything).Return(nil, csmList)
err := DeployApexConnectivityClient(accCtx, false, accOperatorConfig, acc, mockClient)
fmt.Printf("4")
Expand Down

0 comments on commit 47125be

Please sign in to comment.