From ed69ef01ee1d5d218fdcc44839942cbd77d0d0db Mon Sep 17 00:00:00 2001 From: Derek McGowan Date: Thu, 8 Oct 2015 17:16:43 -0700 Subject: [PATCH] Update distribution package Pick up name regexp change in distribution to allow matching of hostnames as a valid component of a repository. Signed-off-by: Derek McGowan (github: dmcgowan) --- docs/registry_test.go | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/docs/registry_test.go b/docs/registry_test.go index f75d7d66..5b36210a 100644 --- a/docs/registry_test.go +++ b/docs/registry_test.go @@ -767,6 +767,9 @@ func TestValidRemoteName(t *testing.T) { // Allow embedded hyphens. "docker-rules/docker", + // Allow multiple hyphens as well. + "docker---rules/docker", + //Username doc and image name docker being tested. "doc/docker", @@ -800,8 +803,11 @@ func TestValidRemoteName(t *testing.T) { "_docker/_docker", - // Disallow consecutive hyphens. - "dock--er/docker", + // Disallow consecutive underscores and periods. + "dock__er/docker", + "dock..er/docker", + "dock_.er/docker", + "dock-.er/docker", // No repository. "docker/",