Skip to content

Commit 63c6a03

Browse files
committed
update tests with labels
1 parent 264c398 commit 63c6a03

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

serverscom/loadbalancers_test.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,13 @@ import (
1111
v1 "k8s.io/api/core/v1"
1212
)
1313

14+
var (
15+
defaultLabels = map[string]string{
16+
loadBalancerServiceUUIDLabel: "123",
17+
loadBalancerClusterNameLabel: sanitizeLabelValue("!@#cluster^&*"),
18+
}
19+
)
20+
1421
func TestLoadBalancers_GetLoadBalancer(t *testing.T) {
1522
g := NewGomegaWithT(t)
1623

@@ -244,6 +251,7 @@ func TestLoadBalancers_EnsureLoadBalancer(t *testing.T) {
244251
},
245252
},
246253
},
254+
Labels: defaultLabels,
247255
}
248256

249257
collection.EXPECT().SetPerPage(100).Return(collection)
@@ -351,6 +359,7 @@ func TestLoadBalancers_EnsureLoadBalancerWithCreate(t *testing.T) {
351359
},
352360
},
353361
},
362+
Labels: defaultLabels,
354363
}
355364

356365
collection.EXPECT().SetPerPage(100).Return(collection).Times(2)
@@ -476,6 +485,7 @@ func TestLoadBalancers_UpdateLoadBalancer(t *testing.T) {
476485
},
477486
},
478487
},
488+
Labels: defaultLabels,
479489
}
480490

481491
collection.EXPECT().SetPerPage(100).Return(collection).Times(2)

0 commit comments

Comments
 (0)