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 <derek@mcgstyle.net> (github: dmcgowan)
This commit is contained in:
Derek McGowan 2015-10-08 17:16:43 -07:00
parent 0b543b4767
commit ed69ef01ee

View file

@ -767,6 +767,9 @@ func TestValidRemoteName(t *testing.T) {
// Allow embedded hyphens. // Allow embedded hyphens.
"docker-rules/docker", "docker-rules/docker",
// Allow multiple hyphens as well.
"docker---rules/docker",
//Username doc and image name docker being tested. //Username doc and image name docker being tested.
"doc/docker", "doc/docker",
@ -800,8 +803,11 @@ func TestValidRemoteName(t *testing.T) {
"_docker/_docker", "_docker/_docker",
// Disallow consecutive hyphens. // Disallow consecutive underscores and periods.
"dock--er/docker", "dock__er/docker",
"dock..er/docker",
"dock_.er/docker",
"dock-.er/docker",
// No repository. // No repository.
"docker/", "docker/",