Commit 39b380c7 authored by Derek Carr's avatar Derek Carr

Unit test quota for nodeport associated with loadbalancer

parent ab9b299c
......@@ -67,6 +67,23 @@ func TestServiceEvaluatorUsage(t *testing.T) {
api.ResourceServices: resource.MustParse("1"),
},
},
"loadbalancer_ports": {
service: &api.Service{
Spec: api.ServiceSpec{
Type: api.ServiceTypeLoadBalancer,
Ports: []api.ServicePort{
{
Port: 27443,
},
},
},
},
usage: api.ResourceList{
api.ResourceServicesNodePorts: resource.MustParse("1"),
api.ResourceServicesLoadBalancers: resource.MustParse("1"),
api.ResourceServices: resource.MustParse("1"),
},
},
"clusterip": {
service: &api.Service{
Spec: api.ServiceSpec{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment