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 (
11
11
v1 "k8s.io/api/core/v1"
12
12
)
13
13
14
+ var (
15
+ defaultLabels = map [string ]string {
16
+ loadBalancerServiceUUIDLabel : "123" ,
17
+ loadBalancerClusterNameLabel : sanitizeLabelValue ("!@#cluster^&*" ),
18
+ }
19
+ )
20
+
14
21
func TestLoadBalancers_GetLoadBalancer (t * testing.T ) {
15
22
g := NewGomegaWithT (t )
16
23
@@ -244,6 +251,7 @@ func TestLoadBalancers_EnsureLoadBalancer(t *testing.T) {
244
251
},
245
252
},
246
253
},
254
+ Labels : defaultLabels ,
247
255
}
248
256
249
257
collection .EXPECT ().SetPerPage (100 ).Return (collection )
@@ -351,6 +359,7 @@ func TestLoadBalancers_EnsureLoadBalancerWithCreate(t *testing.T) {
351
359
},
352
360
},
353
361
},
362
+ Labels : defaultLabels ,
354
363
}
355
364
356
365
collection .EXPECT ().SetPerPage (100 ).Return (collection ).Times (2 )
@@ -476,6 +485,7 @@ func TestLoadBalancers_UpdateLoadBalancer(t *testing.T) {
476
485
},
477
486
},
478
487
},
488
+ Labels : defaultLabels ,
479
489
}
480
490
481
491
collection .EXPECT ().SetPerPage (100 ).Return (collection ).Times (2 )
You can’t perform that action at this time.
0 commit comments