Fix parse URL tests

This commit is contained in:
CJ Ketchum
2020-04-10 14:36:53 -07:00
parent df357bd567
commit 611ed55c8c
3 changed files with 3 additions and 3 deletions

View File

@@ -610,7 +610,7 @@ func TestExecute_BitbucketServerBaseURLScheme(t *testing.T) {
RepoWhitelistFlag: "*",
BitbucketBaseURLFlag: "://mydomain.com",
})
ErrEquals(t, "error parsing --bitbucket-webhook-secret flag value \"://mydomain.com\": parse ://mydomain.com: missing protocol scheme", c.Execute())
ErrEquals(t, "error parsing --bitbucket-webhook-secret flag value \"://mydomain.com\": parse \"://mydomain.com\": missing protocol scheme", c.Execute())
}
// Port should be retained on base url.

View File

@@ -35,7 +35,7 @@ func TestNewRepo_EmptyCloneURL(t *testing.T) {
func TestNewRepo_InvalidCloneURL(t *testing.T) {
_, err := models.NewRepo(models.Github, "owner/repo", ":", "u", "p")
ErrEquals(t, "invalid clone url: parse :.git: missing protocol scheme", err)
ErrEquals(t, "invalid clone url: parse \":.git\": missing protocol scheme", err)
}
func TestNewRepo_CloneURLWrongRepo(t *testing.T) {

View File

@@ -217,7 +217,7 @@ func TestParseAtlantisURL(t *testing.T) {
// Must be valid URL.
{
In: "::",
ExpErr: "parse ::: missing protocol scheme",
ExpErr: "parse \"::\": missing protocol scheme",
},
// Must be absolute.