File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff 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+
1421func 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 )
You can’t perform that action at this time.
0 commit comments