Fix a bug in validation that was leftover from the previous way of externalizing services.

This commit is contained in:
Brendan Burns
2015-01-26 13:19:27 -08:00
parent 6410f37a32
commit 99583fc8c5
2 changed files with 2 additions and 17 deletions

View File

@@ -953,7 +953,7 @@ func TestValidateService(t *testing.T) {
numErrs: 0,
},
{
name: "invalid port in use",
name: "external port in use",
svc: api.Service{
ObjectMeta: api.ObjectMeta{Name: "abc123", Namespace: api.NamespaceDefault},
Spec: api.ServiceSpec{
@@ -970,7 +970,7 @@ func TestValidateService(t *testing.T) {
},
},
},
numErrs: 1,
numErrs: 0,
},
{
name: "same port in use, but not external",