Skip to content

Commit

Permalink
Cosmetic
Browse files Browse the repository at this point in the history
  • Loading branch information
errordeveloper committed Sep 15, 2023
1 parent b09e449 commit d494ce9
Showing 1 changed file with 15 additions and 60 deletions.
75 changes: 15 additions & 60 deletions manifest/image/alias_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,68 +15,23 @@ func TestMakeAliasesForNames(t *testing.T) {
alias string
}{
{
{
alias: "bar/foo",
image: "example.com/a1/bar/foo",
},
{
alias: "foo1",
image: "example.com/a1/bar/foo1",
},
{
alias: "baz/foo",
image: "example.io/b1/baz/foo",
},
{
alias: "baz/foo",
image: "example.io/b1/baz/foo",
},
{
alias: "f1/foo",
image: "example.com/f1/foo",
},
{
alias: "f2/foo",
image: "example.io/f2/foo",
},
{
alias: "foo",
image: "foo",
},
{
alias: "example.io/b2/barfoo",
image: "example.io/b2/barfoo",
},
{
alias: "example.sh/b2/barfoo",
image: "example.sh/b2/barfoo",
},
{
alias: "b1/barfoo",
image: "example.io/b1/barfoo",
},
{image: "example.com/a1/bar/foo", alias: "bar/foo"},
{image: "example.com/a1/bar/foo1", alias: "foo1"},
{image: "example.io/b1/baz/foo", alias: "baz/foo"},
{image: "example.io/b1/baz/foo", alias: "baz/foo"},
{image: "example.com/f1/foo", alias: "f1/foo"},
{image: "example.io/f2/foo", alias: "f2/foo"},
{image: "foo", alias: "foo"},
{image: "example.io/b2/barfoo", alias: "example.io/b2/barfoo"},
{image: "example.sh/b2/barfoo", alias: "example.sh/b2/barfoo"},
{image: "example.io/b1/barfoo", alias: "b1/barfoo"},
},
{
{
alias: "b1/barfoo",
image: "example.io/b1/barfoo",
},
{
alias: "x/barfoo",
image: "example.io/b1/x/barfoo",
},
{
alias: "baz/foo",
image: "example.io/b1/baz/foo",
},
{
alias: "baz",
image: "example.io/b1/foo/baz",
},
{
alias: "b1/foo",
image: "example.io/b1/foo",
},
{image: "example.io/b1/barfoo", alias: "b1/barfoo"},
{image: "example.io/b1/x/barfoo", alias: "x/barfoo"},
{image: "example.io/b1/baz/foo", alias: "baz/foo"},
{image: "example.io/b1/foo/baz", alias: "baz"},
{image: "example.io/b1/foo", alias: "b1/foo"},
},
{
{image: "foo", alias: "foo"},
Expand Down

0 comments on commit d494ce9

Please sign in to comment.