Skip to content

Commit

Permalink
Naming changes from rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
KnVerey committed Jan 9, 2023
1 parent 0699946 commit 64d2366
Showing 1 changed file with 31 additions and 31 deletions.
62 changes: 31 additions & 31 deletions api/internal/git/repospec_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand All @@ -130,7 +130,7 @@ func TestNewRepoSpecFromUrlErrors(t *testing.T) {
},
"username unsupported with file": {
"file://git@/path/to/repo",
"url lacks orgRepo",
"url lacks repoPath",
},
}

Expand Down Expand Up @@ -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",
},
Expand All @@ -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",
},
},
{
Expand All @@ -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",
},
},
{
Expand Down Expand Up @@ -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",
},
},
{
Expand All @@ -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",
},
},
{
Expand All @@ -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",
},
},
{
Expand All @@ -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",
},
},
}
Expand Down

0 comments on commit 64d2366

Please sign in to comment.