Naming changes from rebase

This commit is contained in:
Katrina Verey
2023-01-09 13:15:26 -05:00
parent 06999462e7
commit 64d2366e87

View File

@@ -94,7 +94,7 @@ func TestNewRepoSpecFromUrlErrors(t *testing.T) {
}, },
"bad_scp": { "bad_scp": {
"git@local/path:file/system", "git@local/path:file/system",
"url lacks orgRepo", "url lacks repoPath",
}, },
"no_org_repo": { "no_org_repo": {
"ssh://git.example.com", "ssh://git.example.com",
@@ -118,7 +118,7 @@ func TestNewRepoSpecFromUrlErrors(t *testing.T) {
}, },
"mysterious gh: prefix previously supported is no longer handled": { "mysterious gh: prefix previously supported is no longer handled": {
"gh:org/repo", "gh:org/repo",
"url lacks orgRepo", "url lacks repoPath",
}, },
"username unsupported with http": { "username unsupported with http": {
"http://git@foo.com/path/to/repo", "http://git@foo.com/path/to/repo",
@@ -130,7 +130,7 @@ func TestNewRepoSpecFromUrlErrors(t *testing.T) {
}, },
"username unsupported with file": { "username unsupported with file": {
"file://git@/path/to/repo", "file://git@/path/to/repo",
"url lacks orgRepo", "url lacks repoPath",
}, },
} }
@@ -223,7 +223,7 @@ func TestNewRepoSpecFromUrl_Smoke(t *testing.T) {
absPath: notCloned.String(), absPath: notCloned.String(),
repoSpec: RepoSpec{ repoSpec: RepoSpec{
Host: "git@gitlab2.sqtools.ru:", Host: "git@gitlab2.sqtools.ru:",
RepoPath: "infra/kubernetes/thanos-base", RepoPath: "infra/kubernetes/thanos-base",
Ref: "v0.1.0", Ref: "v0.1.0",
GitSuffix: ".git", GitSuffix: ".git",
}, },
@@ -234,11 +234,11 @@ func TestNewRepoSpecFromUrl_Smoke(t *testing.T) {
cloneSpec: "git@bitbucket.org:company/project.git", cloneSpec: "git@bitbucket.org:company/project.git",
absPath: notCloned.Join("path"), absPath: notCloned.Join("path"),
repoSpec: RepoSpec{ repoSpec: RepoSpec{
Host: "git@bitbucket.org:", Host: "git@bitbucket.org:",
RepoPath: "company/project", RepoPath: "company/project",
KustRootPath: "/path", KustRootPath: "/path",
Ref: "branch", Ref: "branch",
GitSuffix: ".git", GitSuffix: ".git",
}, },
}, },
{ {
@@ -247,11 +247,11 @@ func TestNewRepoSpecFromUrl_Smoke(t *testing.T) {
cloneSpec: "ssh://git@bitbucket.org/company/project.git", cloneSpec: "ssh://git@bitbucket.org/company/project.git",
absPath: notCloned.Join("path"), absPath: notCloned.Join("path"),
repoSpec: RepoSpec{ repoSpec: RepoSpec{
Host: "ssh://git@bitbucket.org/", Host: "ssh://git@bitbucket.org/",
RepoPath: "company/project", RepoPath: "company/project",
KustRootPath: "/path", KustRootPath: "/path",
Ref: "branch", Ref: "branch",
GitSuffix: ".git", GitSuffix: ".git",
}, },
}, },
{ {
@@ -505,11 +505,11 @@ func TestNewRepoSpecFromUrl_Smoke(t *testing.T) {
cloneSpec: "ssh://myusername@bitbucket.org/ourteamname/ourrepositoryname.git", cloneSpec: "ssh://myusername@bitbucket.org/ourteamname/ourrepositoryname.git",
absPath: notCloned.Join("path"), absPath: notCloned.Join("path"),
repoSpec: RepoSpec{ repoSpec: RepoSpec{
Host: "ssh://myusername@bitbucket.org/", Host: "ssh://myusername@bitbucket.org/",
OrgRepo: "ourteamname/ourrepositoryname", RepoPath: "ourteamname/ourrepositoryname",
Path: "/path", KustRootPath: "/path",
Ref: "branch", Ref: "branch",
GitSuffix: ".git", GitSuffix: ".git",
}, },
}, },
{ {
@@ -518,10 +518,10 @@ func TestNewRepoSpecFromUrl_Smoke(t *testing.T) {
cloneSpec: "git@scp://github.com/org/repo.git", cloneSpec: "git@scp://github.com/org/repo.git",
absPath: notCloned.Join("path"), absPath: notCloned.Join("path"),
repoSpec: RepoSpec{ repoSpec: RepoSpec{
Host: "git@scp:", Host: "git@scp:",
OrgRepo: "//github.com/org/repo", RepoPath: "//github.com/org/repo",
Path: "/path", KustRootPath: "/path",
GitSuffix: ".git", GitSuffix: ".git",
}, },
}, },
{ {
@@ -530,10 +530,10 @@ func TestNewRepoSpecFromUrl_Smoke(t *testing.T) {
cloneSpec: "git@ssh://github.com/org/repo.git", cloneSpec: "git@ssh://github.com/org/repo.git",
absPath: notCloned.Join("path"), absPath: notCloned.Join("path"),
repoSpec: RepoSpec{ repoSpec: RepoSpec{
Host: "git@ssh:", Host: "git@ssh:",
OrgRepo: "//github.com/org/repo", RepoPath: "//github.com/org/repo",
Path: "/path", KustRootPath: "/path",
GitSuffix: ".git", GitSuffix: ".git",
}, },
}, },
{ {
@@ -542,10 +542,10 @@ func TestNewRepoSpecFromUrl_Smoke(t *testing.T) {
cloneSpec: "ssh://git@ssh.github.com:443/YOUR-USERNAME/YOUR-REPOSITORY.git", cloneSpec: "ssh://git@ssh.github.com:443/YOUR-USERNAME/YOUR-REPOSITORY.git",
absPath: notCloned.String(), absPath: notCloned.String(),
repoSpec: RepoSpec{ repoSpec: RepoSpec{
Host: "ssh://git@ssh.github.com:443/", Host: "ssh://git@ssh.github.com:443/",
OrgRepo: "YOUR-USERNAME/YOUR-REPOSITORY", RepoPath: "YOUR-USERNAME/YOUR-REPOSITORY",
Path: "", KustRootPath: "",
GitSuffix: ".git", GitSuffix: ".git",
}, },
}, },
} }