Skip to content

Commit 714d80d

Browse files
committed
Fix syntax errors in test in ingress package
1 parent 088ee78 commit 714d80d

File tree

3 files changed

+65
-64
lines changed

3 files changed

+65
-64
lines changed

pkg/alb/ingress/alb_spec_test.go

Lines changed: 39 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -154,15 +154,15 @@ func fixtureIngressClass(mods ...func(*networkingv1.IngressClass)) *networkingv1
154154
func fixtureAlbPayload(mods ...func(*albsdk.CreateLoadBalancerPayload)) *albsdk.CreateLoadBalancerPayload {
155155
payload := &albsdk.CreateLoadBalancerPayload{
156156
Name: ptr.To("k8s-ingress-" + testIngressClassName),
157-
Listeners: &[]albsdk.Listener{
157+
Listeners: []albsdk.Listener{
158158
{
159-
Port: ptr.To(int64(80)),
160-
Protocol: albsdk.LISTENERPROTOCOL_HTTP.Ptr(),
159+
Port: ptr.To(int32(80)),
160+
Protocol: ptr.To("PROTOCOL_HTTP"),
161161
Http: &albsdk.ProtocolOptionsHTTP{
162-
Hosts: &[]albsdk.HostConfig{
162+
Hosts: []albsdk.HostConfig{
163163
{
164164
Host: ptr.To(testHost),
165-
Rules: &[]albsdk.Rule{
165+
Rules: []albsdk.Rule{
166166
{
167167
Path: &albsdk.Path{
168168
Prefix: ptr.To(testPath),
@@ -175,10 +175,10 @@ func fixtureAlbPayload(mods ...func(*albsdk.CreateLoadBalancerPayload)) *albsdk.
175175
},
176176
},
177177
},
178-
Networks: &[]albsdk.Network{{NetworkId: ptr.To(testNetworkID), Role: albsdk.NETWORKROLE_LISTENERS_AND_TARGETS.Ptr()}},
178+
Networks: []albsdk.Network{{NetworkId: ptr.To(testNetworkID), Role: ptr.To("ROLE_LISTENERS_AND_TARGETS")}},
179179
Options: &albsdk.LoadBalancerOptions{EphemeralAddress: ptr.To(true)},
180-
TargetPools: &[]albsdk.TargetPool{
181-
{Name: ptr.To("pool-30080"), TargetPort: ptr.To(int64(30080)), Targets: &[]albsdk.Target{{DisplayName: ptr.To(testNodeName), Ip: ptr.To(testNodeIP)}}},
180+
TargetPools: []albsdk.TargetPool{
181+
{Name: ptr.To("pool-30080"), TargetPort: ptr.To(int32(30080)), Targets: []albsdk.Target{{DisplayName: ptr.To(testNodeName), Ip: ptr.To(testNodeIP)}}},
182182
},
183183
}
184184
for _, mod := range mods {
@@ -247,23 +247,23 @@ func Test_albSpecFromIngress(t *testing.T) {
247247
"svc2": *fixtureServiceWithParams(testServicePort, 30002),
248248
},
249249
want: fixtureAlbPayload(func(p *albsdk.CreateLoadBalancerPayload) {
250-
(*p.Listeners)[0].Http.Hosts = &[]albsdk.HostConfig{
250+
p.Listeners[0].Http.Hosts = []albsdk.HostConfig{
251251
{
252252
Host: ptr.To("a-host.com"),
253-
Rules: &[]albsdk.Rule{
253+
Rules: []albsdk.Rule{
254254
{Path: &albsdk.Path{Prefix: ptr.To("/a")}, TargetPool: ptr.To("pool-30002")},
255255
},
256256
},
257257
{
258258
Host: ptr.To("z-host.com"),
259-
Rules: &[]albsdk.Rule{
259+
Rules: []albsdk.Rule{
260260
{Path: &albsdk.Path{Prefix: ptr.To("/a")}, TargetPool: ptr.To("pool-30001")},
261261
},
262262
},
263263
}
264-
p.TargetPools = &[]albsdk.TargetPool{
265-
{Name: ptr.To("pool-30001"), TargetPort: ptr.To(int64(30001)), Targets: &[]albsdk.Target{{DisplayName: ptr.To(testNodeName), Ip: ptr.To(testNodeIP)}}},
266-
{Name: ptr.To("pool-30002"), TargetPort: ptr.To(int64(30002)), Targets: &[]albsdk.Target{{DisplayName: ptr.To(testNodeName), Ip: ptr.To(testNodeIP)}}},
264+
p.TargetPools = []albsdk.TargetPool{
265+
{Name: ptr.To("pool-30001"), TargetPort: ptr.To(int32(30001)), Targets: []albsdk.Target{{DisplayName: ptr.To(testNodeName), Ip: ptr.To(testNodeIP)}}},
266+
{Name: ptr.To("pool-30002"), TargetPort: ptr.To(int32(30002)), Targets: []albsdk.Target{{DisplayName: ptr.To(testNodeName), Ip: ptr.To(testNodeIP)}}},
267267
}
268268
}),
269269
},
@@ -283,14 +283,14 @@ func Test_albSpecFromIngress(t *testing.T) {
283283
"svc2": *fixtureServiceWithParams(testServicePort, 30004),
284284
},
285285
want: fixtureAlbPayload(func(p *albsdk.CreateLoadBalancerPayload) {
286-
(*(*p.Listeners)[0].Http.Hosts)[0].Host = ptr.To("host.com")
287-
(*(*p.Listeners)[0].Http.Hosts)[0].Rules = &[]albsdk.Rule{
286+
p.Listeners[0].Http.Hosts[0].Host = ptr.To("host.com")
287+
p.Listeners[0].Http.Hosts[0].Rules = []albsdk.Rule{
288288
{Path: &albsdk.Path{Prefix: ptr.To("/x")}, TargetPool: ptr.To("pool-30004")},
289289
{Path: &albsdk.Path{Prefix: ptr.To("/x")}, TargetPool: ptr.To("pool-30003")},
290290
}
291-
p.TargetPools = &[]albsdk.TargetPool{
292-
{Name: ptr.To("pool-30003"), TargetPort: ptr.To(int64(30003)), Targets: &[]albsdk.Target{{DisplayName: ptr.To(testNodeName), Ip: ptr.To(testNodeIP)}}},
293-
{Name: ptr.To("pool-30004"), TargetPort: ptr.To(int64(30004)), Targets: &[]albsdk.Target{{DisplayName: ptr.To(testNodeName), Ip: ptr.To(testNodeIP)}}},
291+
p.TargetPools = []albsdk.TargetPool{
292+
{Name: ptr.To("pool-30003"), TargetPort: ptr.To(int32(30003)), Targets: []albsdk.Target{{DisplayName: ptr.To(testNodeName), Ip: ptr.To(testNodeIP)}}},
293+
{Name: ptr.To("pool-30004"), TargetPort: ptr.To(int32(30004)), Targets: []albsdk.Target{{DisplayName: ptr.To(testNodeName), Ip: ptr.To(testNodeIP)}}},
294294
}
295295
}),
296296
},
@@ -310,14 +310,14 @@ func Test_albSpecFromIngress(t *testing.T) {
310310
"svc2": *fixtureServiceWithParams(testServicePort, 30006),
311311
},
312312
want: fixtureAlbPayload(func(p *albsdk.CreateLoadBalancerPayload) {
313-
(*(*p.Listeners)[0].Http.Hosts)[0].Host = ptr.To("host.com")
314-
(*(*p.Listeners)[0].Http.Hosts)[0].Rules = &[]albsdk.Rule{
313+
p.Listeners[0].Http.Hosts[0].Host = ptr.To("host.com")
314+
p.Listeners[0].Http.Hosts[0].Rules = []albsdk.Rule{
315315
{Path: &albsdk.Path{Prefix: ptr.To("/very/very/long/specific")}, TargetPool: ptr.To("pool-30006")},
316316
{Path: &albsdk.Path{Prefix: ptr.To("/short")}, TargetPool: ptr.To("pool-30005")},
317317
}
318-
p.TargetPools = &[]albsdk.TargetPool{
319-
{Name: ptr.To("pool-30005"), TargetPort: ptr.To(int64(30005)), Targets: &[]albsdk.Target{{DisplayName: ptr.To(testNodeName), Ip: ptr.To(testNodeIP)}}},
320-
{Name: ptr.To("pool-30006"), TargetPort: ptr.To(int64(30006)), Targets: &[]albsdk.Target{{DisplayName: ptr.To(testNodeName), Ip: ptr.To(testNodeIP)}}},
318+
p.TargetPools = []albsdk.TargetPool{
319+
{Name: ptr.To("pool-30005"), TargetPort: ptr.To(int32(30005)), Targets: []albsdk.Target{{DisplayName: ptr.To(testNodeName), Ip: ptr.To(testNodeIP)}}},
320+
{Name: ptr.To("pool-30006"), TargetPort: ptr.To(int32(30006)), Targets: []albsdk.Target{{DisplayName: ptr.To(testNodeName), Ip: ptr.To(testNodeIP)}}},
321321
}
322322
}),
323323
},
@@ -337,14 +337,14 @@ func Test_albSpecFromIngress(t *testing.T) {
337337
"svc-prefix": *fixtureServiceWithParams(testServicePort, 30101),
338338
},
339339
want: fixtureAlbPayload(func(p *albsdk.CreateLoadBalancerPayload) {
340-
(*(*p.Listeners)[0].Http.Hosts)[0].Host = ptr.To("host.com")
341-
(*(*p.Listeners)[0].Http.Hosts)[0].Rules = &[]albsdk.Rule{
340+
p.Listeners[0].Http.Hosts[0].Host = ptr.To("host.com")
341+
p.Listeners[0].Http.Hosts[0].Rules = []albsdk.Rule{
342342
{Path: &albsdk.Path{ExactMatch: ptr.To("/same")}, TargetPool: ptr.To("pool-30100")},
343343
{Path: &albsdk.Path{Prefix: ptr.To("/same")}, TargetPool: ptr.To("pool-30101")},
344344
}
345-
p.TargetPools = &[]albsdk.TargetPool{
346-
{Name: ptr.To("pool-30100"), TargetPort: ptr.To(int64(30100)), Targets: &[]albsdk.Target{{DisplayName: ptr.To(testNodeName), Ip: ptr.To(testNodeIP)}}},
347-
{Name: ptr.To("pool-30101"), TargetPort: ptr.To(int64(30101)), Targets: &[]albsdk.Target{{DisplayName: ptr.To(testNodeName), Ip: ptr.To(testNodeIP)}}},
345+
p.TargetPools = []albsdk.TargetPool{
346+
{Name: ptr.To("pool-30100"), TargetPort: ptr.To(int32(30100)), Targets: []albsdk.Target{{DisplayName: ptr.To(testNodeName), Ip: ptr.To(testNodeIP)}}},
347+
{Name: ptr.To("pool-30101"), TargetPort: ptr.To(int32(30101)), Targets: []albsdk.Target{{DisplayName: ptr.To(testNodeName), Ip: ptr.To(testNodeIP)}}},
348348
}
349349
}),
350350
},
@@ -364,14 +364,14 @@ func Test_albSpecFromIngress(t *testing.T) {
364364
"svc2": *fixtureServiceWithParams(testServicePort, 30008),
365365
},
366366
want: fixtureAlbPayload(func(p *albsdk.CreateLoadBalancerPayload) {
367-
(*(*p.Listeners)[0].Http.Hosts)[0].Host = ptr.To("host.com")
368-
(*(*p.Listeners)[0].Http.Hosts)[0].Rules = &[]albsdk.Rule{
367+
p.Listeners[0].Http.Hosts[0].Host = ptr.To("host.com")
368+
p.Listeners[0].Http.Hosts[0].Rules = []albsdk.Rule{
369369
{Path: &albsdk.Path{Prefix: ptr.To("/x")}, TargetPool: ptr.To("pool-30008")},
370370
{Path: &albsdk.Path{Prefix: ptr.To("/x")}, TargetPool: ptr.To("pool-30007")},
371371
}
372-
p.TargetPools = &[]albsdk.TargetPool{
373-
{Name: ptr.To("pool-30007"), TargetPort: ptr.To(int64(30007)), Targets: &[]albsdk.Target{{DisplayName: ptr.To(testNodeName), Ip: ptr.To(testNodeIP)}}},
374-
{Name: ptr.To("pool-30008"), TargetPort: ptr.To(int64(30008)), Targets: &[]albsdk.Target{{DisplayName: ptr.To(testNodeName), Ip: ptr.To(testNodeIP)}}},
372+
p.TargetPools = []albsdk.TargetPool{
373+
{Name: ptr.To("pool-30007"), TargetPort: ptr.To(int32(30007)), Targets: []albsdk.Target{{DisplayName: ptr.To(testNodeName), Ip: ptr.To(testNodeIP)}}},
374+
{Name: ptr.To("pool-30008"), TargetPort: ptr.To(int32(30008)), Targets: []albsdk.Target{{DisplayName: ptr.To(testNodeName), Ip: ptr.To(testNodeIP)}}},
375375
}
376376
}),
377377
},
@@ -391,14 +391,14 @@ func Test_albSpecFromIngress(t *testing.T) {
391391
"svc2": *fixtureServiceWithParams(testServicePort, 30010),
392392
},
393393
want: fixtureAlbPayload(func(p *albsdk.CreateLoadBalancerPayload) {
394-
(*(*p.Listeners)[0].Http.Hosts)[0].Host = ptr.To("host.com")
395-
(*(*p.Listeners)[0].Http.Hosts)[0].Rules = &[]albsdk.Rule{
394+
p.Listeners[0].Http.Hosts[0].Host = ptr.To("host.com")
395+
p.Listeners[0].Http.Hosts[0].Rules = []albsdk.Rule{
396396
{Path: &albsdk.Path{Prefix: ptr.To("/x")}, TargetPool: ptr.To("pool-30010")},
397397
{Path: &albsdk.Path{Prefix: ptr.To("/x")}, TargetPool: ptr.To("pool-30009")},
398398
}
399-
p.TargetPools = &[]albsdk.TargetPool{
400-
{Name: ptr.To("pool-30009"), TargetPort: ptr.To(int64(30009)), Targets: &[]albsdk.Target{{DisplayName: ptr.To(testNodeName), Ip: ptr.To(testNodeIP)}}},
401-
{Name: ptr.To("pool-30010"), TargetPort: ptr.To(int64(30010)), Targets: &[]albsdk.Target{{DisplayName: ptr.To(testNodeName), Ip: ptr.To(testNodeIP)}}},
399+
p.TargetPools = []albsdk.TargetPool{
400+
{Name: ptr.To("pool-30009"), TargetPort: ptr.To(int32(30009)), Targets: []albsdk.Target{{DisplayName: ptr.To(testNodeName), Ip: ptr.To(testNodeIP)}}},
401+
{Name: ptr.To("pool-30010"), TargetPort: ptr.To(int32(30010)), Targets: []albsdk.Target{{DisplayName: ptr.To(testNodeName), Ip: ptr.To(testNodeIP)}}},
402402
}
403403
}),
404404
},

pkg/alb/ingress/controller_test.go

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ import (
1818
"sigs.k8s.io/controller-runtime/pkg/controller/controllerutil"
1919
"sigs.k8s.io/controller-runtime/pkg/metrics/server"
2020

21-
albclient "github.com/stackitcloud/cloud-provider-stackit/pkg/stackit"
21+
"github.com/stackitcloud/cloud-provider-stackit/pkg/alb/ingress"
22+
"github.com/stackitcloud/cloud-provider-stackit/pkg/stackit"
2223

2324
"go.uber.org/mock/gomock"
2425
)
@@ -34,8 +35,8 @@ var _ = Describe("IngressClassReconciler", func() {
3435
k8sClient client.Client
3536
namespace *corev1.Namespace
3637
mockCtrl *gomock.Controller
37-
albClient *albclient.MockClient
38-
certClient *certificateclient.MockClient
38+
albClient *stackit.MockApplicationLoadBalancerClient
39+
certClient *stackit.MockCertificatesClient
3940
ctx context.Context
4041
cancel context.CancelFunc
4142
)
@@ -45,8 +46,8 @@ var _ = Describe("IngressClassReconciler", func() {
4546
DeferCleanup(cancel)
4647

4748
mockCtrl = gomock.NewController(GinkgoT())
48-
albClient = albclient.NewMockClient(mockCtrl)
49-
certClient = certificateclient.NewMockClient(mockCtrl)
49+
albClient = stackit.NewMockApplicationLoadBalancerClient(mockCtrl)
50+
certClient = stackit.NewMockCertificatesClient(mockCtrl)
5051

5152
var err error
5253
k8sClient, err = client.New(cfg, client.Options{Scheme: scheme.Scheme})
@@ -73,7 +74,7 @@ var _ = Describe("IngressClassReconciler", func() {
7374
})
7475
Expect(err).NotTo(HaveOccurred())
7576

76-
reconciler := &controller.IngressClassReconciler{
77+
reconciler := &ingress.IngressClassReconciler{
7778
Client: mgr.GetClient(),
7879
Scheme: scheme.Scheme,
7980
ALBClient: albClient,

pkg/alb/ingress/ingressclass_controller_test.go

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import (
1515
"sigs.k8s.io/controller-runtime/pkg/client/fake"
1616
"sigs.k8s.io/controller-runtime/pkg/reconcile"
1717

18-
albclient "github.com/stackitcloud/cloud-provider-stackit/pkg/stackit"
18+
"github.com/stackitcloud/cloud-provider-stackit/pkg/stackit"
1919
albsdk "github.com/stackitcloud/stackit-sdk-go/services/alb/v2api"
2020
)
2121

@@ -39,7 +39,7 @@ func TestIngressClassReconciler_updateStatus(t *testing.T) {
3939
name string
4040
ingresses []*networkingv1.Ingress
4141
mockK8sClient func(client.Client) error
42-
mockALBClient func(*mock_albclient.MockClient)
42+
mockALBClient func(*stackit.MockApplicationLoadBalancerClient)
4343
wantResult reconcile.Result
4444
wantErr bool
4545
}{
@@ -50,11 +50,11 @@ func TestIngressClassReconciler_updateStatus(t *testing.T) {
5050
ObjectMeta: metav1.ObjectMeta{Namespace: testNamespace, Name: testIngressName},
5151
})
5252
},
53-
mockALBClient: func(m *mock_albclient.MockClient) {
53+
mockALBClient: func(m *stackit.MockApplicationLoadBalancerClient) {
5454
m.EXPECT().
5555
GetLoadBalancer(gomock.Any(), testProjectID, testRegion, testALBName).
5656
Return(&albsdk.LoadBalancer{
57-
Status: albsdk.LOADBALANCERSTATUS_TERMINATING.Ptr(),
57+
Status: ptr.To("STATUS_TERMINATING"),
5858
}, nil)
5959
},
6060
wantResult: reconcile.Result{RequeueAfter: 10 * time.Second},
@@ -72,11 +72,11 @@ func TestIngressClassReconciler_updateStatus(t *testing.T) {
7272
ObjectMeta: metav1.ObjectMeta{Namespace: testNamespace, Name: testIngressName},
7373
})
7474
},
75-
mockALBClient: func(m *mock_albclient.MockClient) {
75+
mockALBClient: func(m *stackit.MockApplicationLoadBalancerClient) {
7676
m.EXPECT().
7777
GetLoadBalancer(gomock.Any(), testProjectID, testRegion, testALBName).
7878
Return(&albsdk.LoadBalancer{
79-
Status: albsdk.LOADBALANCERSTATUS_READY.Ptr(),
79+
Status: ptr.To("STATUS_READY"),
8080
ExternalAddress: ptr.To(testPublicIP),
8181
}, nil)
8282
},
@@ -95,11 +95,11 @@ func TestIngressClassReconciler_updateStatus(t *testing.T) {
9595
ObjectMeta: metav1.ObjectMeta{Namespace: testNamespace, Name: testIngressName},
9696
})
9797
},
98-
mockALBClient: func(m *mock_albclient.MockClient) {
98+
mockALBClient: func(m *stackit.MockApplicationLoadBalancerClient) {
9999
m.EXPECT().
100100
GetLoadBalancer(gomock.Any(), testProjectID, testRegion, testALBName).
101101
Return(&albsdk.LoadBalancer{
102-
Status: albsdk.LOADBALANCERSTATUS_READY.Ptr(),
102+
Status: ptr.To("STATUS_READY"),
103103
PrivateAddress: ptr.To(testPrivateIP),
104104
}, nil)
105105
},
@@ -130,11 +130,11 @@ func TestIngressClassReconciler_updateStatus(t *testing.T) {
130130
},
131131
})
132132
},
133-
mockALBClient: func(m *mock_albclient.MockClient) {
133+
mockALBClient: func(m *stackit.MockApplicationLoadBalancerClient) {
134134
m.EXPECT().
135135
GetLoadBalancer(gomock.Any(), testProjectID, testRegion, testALBName).
136136
Return(&albsdk.LoadBalancer{
137-
Status: albsdk.LOADBALANCERSTATUS_READY.Ptr(),
137+
Status: ptr.To("STATUS_READY"),
138138
PrivateAddress: ptr.To(testPublicIP),
139139
}, nil)
140140
},
@@ -146,8 +146,8 @@ func TestIngressClassReconciler_updateStatus(t *testing.T) {
146146
ingresses: []*networkingv1.Ingress{
147147
{ObjectMeta: metav1.ObjectMeta{Namespace: testNamespace, Name: testIngressName}},
148148
},
149-
mockALBClient: func(m *mock_albclient.MockClient) {
150-
m.EXPECT().GetLoadBalancer(gomock.Any(), testProjectID, testRegion, testALBName).Return(nil, albclient.ErrorNotFound)
149+
mockALBClient: func(m *stackit.MockApplicationLoadBalancerClient) {
150+
m.EXPECT().GetLoadBalancer(gomock.Any(), testProjectID, testRegion, testALBName).Return(nil, stackit.ErrorNotFound)
151151
},
152152
wantResult: reconcile.Result{},
153153
wantErr: true,
@@ -157,11 +157,11 @@ func TestIngressClassReconciler_updateStatus(t *testing.T) {
157157
ingresses: []*networkingv1.Ingress{
158158
{ObjectMeta: metav1.ObjectMeta{Namespace: testNamespace, Name: testIngressName}},
159159
},
160-
mockALBClient: func(m *mock_albclient.MockClient) {
160+
mockALBClient: func(m *stackit.MockApplicationLoadBalancerClient) {
161161
m.EXPECT().
162162
GetLoadBalancer(gomock.Any(), testProjectID, testRegion, testALBName).
163163
Return(&albsdk.LoadBalancer{
164-
Status: albsdk.LOADBALANCERSTATUS_READY.Ptr(),
164+
Status: ptr.To("STATUS_READY"),
165165
PrivateAddress: ptr.To(testPublicIP),
166166
}, nil)
167167
},
@@ -175,11 +175,11 @@ func TestIngressClassReconciler_updateStatus(t *testing.T) {
175175
ingresses: []*networkingv1.Ingress{
176176
{ObjectMeta: metav1.ObjectMeta{Namespace: testNamespace, Name: testIngressName}},
177177
},
178-
mockALBClient: func(m *mock_albclient.MockClient) {
178+
mockALBClient: func(m *stackit.MockApplicationLoadBalancerClient) {
179179
m.EXPECT().
180180
GetLoadBalancer(gomock.Any(), testProjectID, testRegion, testALBName).
181181
Return(&albsdk.LoadBalancer{
182-
Status: albsdk.LOADBALANCERSTATUS_READY.Ptr(),
182+
Status: ptr.To("STATUS_READY"),
183183
PrivateAddress: ptr.To(testPublicIP),
184184
}, nil)
185185
},
@@ -191,11 +191,11 @@ func TestIngressClassReconciler_updateStatus(t *testing.T) {
191191
ingresses: []*networkingv1.Ingress{
192192
{ObjectMeta: metav1.ObjectMeta{Namespace: testNamespace, Name: testIngressName}},
193193
},
194-
mockALBClient: func(m *mock_albclient.MockClient) {
194+
mockALBClient: func(m *stackit.MockApplicationLoadBalancerClient) {
195195
m.EXPECT().
196196
GetLoadBalancer(gomock.Any(), testProjectID, testRegion, testALBName).
197197
Return(&albsdk.LoadBalancer{
198-
Status: albsdk.LOADBALANCERSTATUS_READY.Ptr(),
198+
Status: ptr.To("STATUS_READY"),
199199
}, nil)
200200
},
201201
wantResult: reconcile.Result{RequeueAfter: 10 * time.Second},
@@ -207,7 +207,7 @@ func TestIngressClassReconciler_updateStatus(t *testing.T) {
207207
t.Run(tt.name, func(t *testing.T) {
208208
ctrl := gomock.NewController(t)
209209

210-
mockAlbClient := mock_albclient.NewMockClient(ctrl)
210+
mockAlbClient := stackit.NewMockApplicationLoadBalancerClient(ctrl)
211211
fakeClient := fake.NewClientBuilder().WithScheme(scheme.Scheme).Build()
212212
r := &IngressClassReconciler{
213213
Client: fakeClient,

0 commit comments

Comments
 (0)