Unit test quota for nodeport associated with loadbalancer

pull/6/head
Derek Carr 2017-03-13 11:21:56 -04:00
parent ab9b299c30
commit 39b380c7bd
1 changed files with 17 additions and 0 deletions

View File

@ -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{