mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-08-24 19:39:16 +02:00
test: TDD - support Azure DevOps vs-ssh.visualstudio.com SSH remotes
This commit is contained in:
committed by
Stefan Haller
parent
0c0f53fa31
commit
8276d4a50a
@@ -223,6 +223,22 @@ func TestGetPullRequestURL(t *testing.T) {
|
||||
assert.Equal(t, "https://mycompany.azuredevops.com/collection/myproject/_git/myrepo/pullrequestcreate?sourceRef=feature%2Fnew", url)
|
||||
},
|
||||
},
|
||||
{
|
||||
testName: "Opens a link to new pull request on Azure DevOps (legacy vs-ssh.visualstudio.com SSH) with mapping to dev.azure.com",
|
||||
from: "feature/new",
|
||||
remoteUrl: "git@vs-ssh.visualstudio.com:v3/myorg/myproject/myrepo",
|
||||
configServiceDomains: map[string]string{
|
||||
"vs-ssh.visualstudio.com": "azuredevops:dev.azure.com",
|
||||
},
|
||||
test: func(url string, err error) {
|
||||
/* EXPECTED:
|
||||
assert.NoError(t, err)
|
||||
assert.Equal(t, "https://dev.azure.com/myorg/myproject/_git/myrepo/pullrequestcreate?sourceRef=feature%2Fnew", url)
|
||||
ACTUAL: */
|
||||
assert.Error(t, err)
|
||||
assert.Equal(t, "", url)
|
||||
},
|
||||
},
|
||||
{
|
||||
testName: "Opens a link to new pull request on Bitbucket Server (SSH)",
|
||||
from: "feature/new",
|
||||
|
Reference in New Issue
Block a user