mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 13:37:30 +00:00
Fix tests.
This commit is contained in:
parent
e9edfc754e
commit
b59dcbbb80
@ -33,6 +33,7 @@ func TestServiceRegistry(t *testing.T) {
|
|||||||
|
|
||||||
svc := api.Service{
|
svc := api.Service{
|
||||||
JSONBase: api.JSONBase{ID: "foo"},
|
JSONBase: api.JSONBase{ID: "foo"},
|
||||||
|
Selector: map[string]string{"bar": "baz"},
|
||||||
}
|
}
|
||||||
c, _ := storage.Create(svc)
|
c, _ := storage.Create(svc)
|
||||||
<-c
|
<-c
|
||||||
@ -56,6 +57,7 @@ func TestServiceRegistryExternalService(t *testing.T) {
|
|||||||
|
|
||||||
svc := api.Service{
|
svc := api.Service{
|
||||||
JSONBase: api.JSONBase{ID: "foo"},
|
JSONBase: api.JSONBase{ID: "foo"},
|
||||||
|
Selector: map[string]string{"bar": "baz"},
|
||||||
CreateExternalLoadBalancer: true,
|
CreateExternalLoadBalancer: true,
|
||||||
}
|
}
|
||||||
c, _ := storage.Create(svc)
|
c, _ := storage.Create(svc)
|
||||||
@ -82,6 +84,7 @@ func TestServiceRegistryExternalServiceError(t *testing.T) {
|
|||||||
|
|
||||||
svc := api.Service{
|
svc := api.Service{
|
||||||
JSONBase: api.JSONBase{ID: "foo"},
|
JSONBase: api.JSONBase{ID: "foo"},
|
||||||
|
Selector: map[string]string{"bar": "baz"},
|
||||||
CreateExternalLoadBalancer: true,
|
CreateExternalLoadBalancer: true,
|
||||||
}
|
}
|
||||||
c, _ := storage.Create(svc)
|
c, _ := storage.Create(svc)
|
||||||
@ -106,6 +109,7 @@ func TestServiceRegistryDelete(t *testing.T) {
|
|||||||
|
|
||||||
svc := api.Service{
|
svc := api.Service{
|
||||||
JSONBase: api.JSONBase{ID: "foo"},
|
JSONBase: api.JSONBase{ID: "foo"},
|
||||||
|
Selector: map[string]string{"bar": "baz"},
|
||||||
}
|
}
|
||||||
memory.CreateService(svc)
|
memory.CreateService(svc)
|
||||||
|
|
||||||
@ -131,6 +135,7 @@ func TestServiceRegistryDeleteExternal(t *testing.T) {
|
|||||||
|
|
||||||
svc := api.Service{
|
svc := api.Service{
|
||||||
JSONBase: api.JSONBase{ID: "foo"},
|
JSONBase: api.JSONBase{ID: "foo"},
|
||||||
|
Selector: map[string]string{"bar": "baz"},
|
||||||
CreateExternalLoadBalancer: true,
|
CreateExternalLoadBalancer: true,
|
||||||
}
|
}
|
||||||
memory.CreateService(svc)
|
memory.CreateService(svc)
|
||||||
|
Loading…
Reference in New Issue
Block a user