|
@@ -54,8 +54,9 @@ func TestTagInvalidUnprefixedRepo(t *testing.T) {
|
|
|
|
|
|
// ensure we don't allow the use of invalid tags; these tag operations should fail
|
|
|
func TestTagInvalidPrefixedRepo(t *testing.T) {
|
|
|
+ long_tag := makeRandomString(121)
|
|
|
|
|
|
- invalidTags := []string{"repo:fo$z$", "repo:Foo@3cc", "repo:Foo$3", "repo:Foo*3", "repo:Fo^3", "repo:Foo!3", "repo:%goodbye", "repo:#hashtagit", "repo:F)xcz(", "repo:fwaytoolongandwaymorethan30characterslong", "repo:-foo", "repo:.."}
|
|
|
+ invalidTags := []string{"repo:fo$z$", "repo:Foo@3cc", "repo:Foo$3", "repo:Foo*3", "repo:Fo^3", "repo:Foo!3", "repo:%goodbye", "repo:#hashtagit", "repo:F)xcz(", "repo:-foo", "repo:..", long_tag}
|
|
|
|
|
|
for _, repotag := range invalidTags {
|
|
|
tagCmd := exec.Command(dockerBinary, "tag", "busybox", repotag)
|