Skip to content

Commit

Permalink
Revert "add test for nil nb config"
Browse files Browse the repository at this point in the history
This reverts commit 66d7892.
  • Loading branch information
amold1 committed Apr 24, 2024
1 parent 9c0ac38 commit 3c24cfa
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions controller/linodecluster_controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,25 +134,6 @@ var _ = Describe("cluster-lifecycle", Ordered, Label("cluster", "cluster-lifecyc
Expect(err.Error()).To(ContainSubstring("nodeBalancer created was nil"))
}),
),
Path(
Call("cluster is not created because nb config was nil", func(ctx context.Context, m Mock) {
cScope.LinodeClient = m.NodeBalancerClient
getNB := m.NodeBalancerClient.EXPECT().ListNodeBalancers(gomock.Any(), gomock.Any()).Return(nil, nil)
m.NodeBalancerClient.EXPECT().CreateNodeBalancer(gomock.Any(), gomock.Any()).
After(getNB).
Return(&linodego.NodeBalancer{
ID: nodebalancerID,
IPv4: &controlPlaneEndpointHost,
}, nil)
m.NodeBalancerClient.EXPECT().CreateNodeBalancerConfig(gomock.Any(), gomock.Any(), gomock.Any()).
After(getNB).
Return(nil, errors.New("nodeBalancer config created was nil"))
}),
Result("created nb config is nil", func(ctx context.Context, m Mock) {
_, err := reconciler.reconcile(ctx, cScope, logr.Logger{})
Expect(err.Error()).To(ContainSubstring("nodeBalancer config created was nil"))
}),
),
Path(
Call("cluster is not created because there is no capl cluster", func(ctx context.Context, m Mock) {
cScope.LinodeClient = m.NodeBalancerClient
Expand Down

0 comments on commit 3c24cfa

Please sign in to comment.