-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
31 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -94,7 +94,7 @@ func TestNewRepoSpecFromUrlErrors(t *testing.T) { | |
}, | ||
"bad_scp": { | ||
"git@local/path:file/system", | ||
"url lacks orgRepo", | ||
"url lacks repoPath", | ||
}, | ||
"no_org_repo": { | ||
"ssh://git.example.com", | ||
|
@@ -118,7 +118,7 @@ func TestNewRepoSpecFromUrlErrors(t *testing.T) { | |
}, | ||
"mysterious gh: prefix previously supported is no longer handled": { | ||
"gh:org/repo", | ||
"url lacks orgRepo", | ||
"url lacks repoPath", | ||
}, | ||
"username unsupported with http": { | ||
"http://[email protected]/path/to/repo", | ||
|
@@ -130,7 +130,7 @@ func TestNewRepoSpecFromUrlErrors(t *testing.T) { | |
}, | ||
"username unsupported with file": { | ||
"file://git@/path/to/repo", | ||
"url lacks orgRepo", | ||
"url lacks repoPath", | ||
}, | ||
} | ||
|
||
|
@@ -223,7 +223,7 @@ func TestNewRepoSpecFromUrl_Smoke(t *testing.T) { | |
absPath: notCloned.String(), | ||
repoSpec: RepoSpec{ | ||
Host: "[email protected]:", | ||
RepoPath: "infra/kubernetes/thanos-base", | ||
RepoPath: "infra/kubernetes/thanos-base", | ||
Ref: "v0.1.0", | ||
GitSuffix: ".git", | ||
}, | ||
|
@@ -234,11 +234,11 @@ func TestNewRepoSpecFromUrl_Smoke(t *testing.T) { | |
cloneSpec: "[email protected]:company/project.git", | ||
absPath: notCloned.Join("path"), | ||
repoSpec: RepoSpec{ | ||
Host: "[email protected]:", | ||
RepoPath: "company/project", | ||
KustRootPath: "/path", | ||
Ref: "branch", | ||
GitSuffix: ".git", | ||
Host: "[email protected]:", | ||
RepoPath: "company/project", | ||
KustRootPath: "/path", | ||
Ref: "branch", | ||
GitSuffix: ".git", | ||
}, | ||
}, | ||
{ | ||
|
@@ -247,11 +247,11 @@ func TestNewRepoSpecFromUrl_Smoke(t *testing.T) { | |
cloneSpec: "ssh://[email protected]/company/project.git", | ||
absPath: notCloned.Join("path"), | ||
repoSpec: RepoSpec{ | ||
Host: "ssh://[email protected]/", | ||
RepoPath: "company/project", | ||
KustRootPath: "/path", | ||
Ref: "branch", | ||
GitSuffix: ".git", | ||
Host: "ssh://[email protected]/", | ||
RepoPath: "company/project", | ||
KustRootPath: "/path", | ||
Ref: "branch", | ||
GitSuffix: ".git", | ||
}, | ||
}, | ||
{ | ||
|
@@ -505,11 +505,11 @@ func TestNewRepoSpecFromUrl_Smoke(t *testing.T) { | |
cloneSpec: "ssh://[email protected]/ourteamname/ourrepositoryname.git", | ||
absPath: notCloned.Join("path"), | ||
repoSpec: RepoSpec{ | ||
Host: "ssh://[email protected]/", | ||
OrgRepo: "ourteamname/ourrepositoryname", | ||
Path: "/path", | ||
Ref: "branch", | ||
GitSuffix: ".git", | ||
Host: "ssh://[email protected]/", | ||
RepoPath: "ourteamname/ourrepositoryname", | ||
KustRootPath: "/path", | ||
Ref: "branch", | ||
GitSuffix: ".git", | ||
}, | ||
}, | ||
{ | ||
|
@@ -518,10 +518,10 @@ func TestNewRepoSpecFromUrl_Smoke(t *testing.T) { | |
cloneSpec: "git@scp://github.com/org/repo.git", | ||
absPath: notCloned.Join("path"), | ||
repoSpec: RepoSpec{ | ||
Host: "git@scp:", | ||
OrgRepo: "//github.com/org/repo", | ||
Path: "/path", | ||
GitSuffix: ".git", | ||
Host: "git@scp:", | ||
RepoPath: "//github.com/org/repo", | ||
KustRootPath: "/path", | ||
GitSuffix: ".git", | ||
}, | ||
}, | ||
{ | ||
|
@@ -530,10 +530,10 @@ func TestNewRepoSpecFromUrl_Smoke(t *testing.T) { | |
cloneSpec: "git@ssh://github.com/org/repo.git", | ||
absPath: notCloned.Join("path"), | ||
repoSpec: RepoSpec{ | ||
Host: "git@ssh:", | ||
OrgRepo: "//github.com/org/repo", | ||
Path: "/path", | ||
GitSuffix: ".git", | ||
Host: "git@ssh:", | ||
RepoPath: "//github.com/org/repo", | ||
KustRootPath: "/path", | ||
GitSuffix: ".git", | ||
}, | ||
}, | ||
{ | ||
|
@@ -542,10 +542,10 @@ func TestNewRepoSpecFromUrl_Smoke(t *testing.T) { | |
cloneSpec: "ssh://[email protected]:443/YOUR-USERNAME/YOUR-REPOSITORY.git", | ||
absPath: notCloned.String(), | ||
repoSpec: RepoSpec{ | ||
Host: "ssh://[email protected]:443/", | ||
OrgRepo: "YOUR-USERNAME/YOUR-REPOSITORY", | ||
Path: "", | ||
GitSuffix: ".git", | ||
Host: "ssh://[email protected]:443/", | ||
RepoPath: "YOUR-USERNAME/YOUR-REPOSITORY", | ||
KustRootPath: "", | ||
GitSuffix: ".git", | ||
}, | ||
}, | ||
} | ||
|