mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-05-17 18:25:26 +00:00
Add test for behaviour of scp-like non-github that incorrectly uses slash
This commit is contained in:
@@ -229,6 +229,19 @@ func TestNewRepoSpecFromUrl_Smoke(t *testing.T) {
|
||||
GitSuffix: ".git",
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "non-github_scp incorrectly using slash (invalid but currently passed through to git)",
|
||||
input: "git@bitbucket.org/company/project.git//path?ref=branch",
|
||||
cloneSpec: "git@bitbucket.org/company/project.git",
|
||||
absPath: notCloned.Join("path"),
|
||||
repoSpec: RepoSpec{
|
||||
Host: "git@bitbucket.org/",
|
||||
RepoPath: "company/project",
|
||||
KustRootPath: "/path",
|
||||
Ref: "branch",
|
||||
GitSuffix: ".git",
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "non-github_git-user_ssh",
|
||||
input: "ssh://git@bitbucket.org/company/project.git//path?ref=branch",
|
||||
|
||||
Reference in New Issue
Block a user