Commit 9f9fb59c authored by Oren Shomron's avatar Oren Shomron
Browse files

Add test for GitHub enterprise URI detection


Signed-off-by: default avatarOren Shomron <shomron@gmail.com>
parent 22719fcd
......@@ -43,6 +43,12 @@ func TestRegistryAdd(t *testing.T) {
expectedURI: "github.com/foo/bar",
protocol: registry.ProtocolGitHub,
},
{
name: "github enterprise",
uri: "github.foo.com/foo/bar",
expectedURI: "github.foo.com/foo/bar",
protocol: registry.ProtocolGitHub,
},
{
name: "github override",
uri: "github.com/foo/bar",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment