Service names conform to RFC 1035

This commit is contained in:
Michael Fraenkel
2016-07-24 13:01:38 -04:00
parent 31da82df52
commit b1e7e6cf46
9 changed files with 43 additions and 43 deletions

View File

@@ -3449,7 +3449,7 @@ func TestValidateService(t *testing.T) {
{
name: "too long name",
tweakSvc: func(s *api.Service) {
s.Name = strings.Repeat("a", 25)
s.Name = strings.Repeat("a", 64)
},
numErrs: 1,
},
@@ -3463,7 +3463,7 @@ func TestValidateService(t *testing.T) {
{
name: "too long generateName",
tweakSvc: func(s *api.Service) {
s.GenerateName = strings.Repeat("a", 25)
s.GenerateName = strings.Repeat("a", 64)
},
numErrs: 1,
},