mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 20:24:09 +00:00
Fix integration tests.
This commit is contained in:
parent
b59dcbbb80
commit
5bf0820580
@ -145,13 +145,19 @@ func runAtomicPutTest(c *client.Client) {
|
|||||||
Labels: map[string]string{
|
Labels: map[string]string{
|
||||||
"name": "atomicService",
|
"name": "atomicService",
|
||||||
},
|
},
|
||||||
|
// This is here because validation requires it.
|
||||||
|
Selector: map[string]string{
|
||||||
|
"foo": "bar",
|
||||||
|
},
|
||||||
},
|
},
|
||||||
).Do().Into(&svc)
|
).Do().Into(&svc)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
glog.Fatalf("Failed creating atomicService: %v", err)
|
glog.Fatalf("Failed creating atomicService: %v", err)
|
||||||
}
|
}
|
||||||
glog.Info("Created atomicService")
|
glog.Info("Created atomicService")
|
||||||
testLabels := labels.Set{}
|
testLabels := labels.Set{
|
||||||
|
"foo": "bar",
|
||||||
|
}
|
||||||
for i := 0; i < 5; i++ {
|
for i := 0; i < 5; i++ {
|
||||||
// a: z, b: y, etc...
|
// a: z, b: y, etc...
|
||||||
testLabels[string([]byte{byte('a' + i)})] = string([]byte{byte('z' - i)})
|
testLabels[string([]byte{byte('a' + i)})] = string([]byte{byte('z' - i)})
|
||||||
|
Loading…
Reference in New Issue
Block a user