mirror of https://github.com/databricks/cli.git
Fix tests for new repository name (#390)
This commit is contained in:
parent
98ebb78c9b
commit
8979ed1394
|
@ -9,7 +9,7 @@ import (
|
|||
func TestGitConfig(t *testing.T) {
|
||||
b := load(t, "./autoload_git")
|
||||
assert.Equal(t, "foo", b.Config.Bundle.Git.Branch)
|
||||
sshUrl := "git@github.com:databricks/bricks.git"
|
||||
httpsUrl := "https://github.com/databricks/bricks"
|
||||
sshUrl := "git@github.com:databricks/cli.git"
|
||||
httpsUrl := "https://github.com/databricks/cli"
|
||||
assert.Contains(t, []string{sshUrl, httpsUrl}, b.Config.Bundle.Git.OriginURL)
|
||||
}
|
||||
|
|
|
@ -10,7 +10,7 @@ import (
|
|||
func TestGetGitOrigin(t *testing.T) {
|
||||
this, err := RepositoryName()
|
||||
assert.NoError(t, err)
|
||||
assert.Equal(t, "bricks", this)
|
||||
assert.Equal(t, "cli", this)
|
||||
}
|
||||
|
||||
func TestHttpsOrigin(t *testing.T) {
|
||||
|
@ -18,5 +18,5 @@ func TestHttpsOrigin(t *testing.T) {
|
|||
assert.NoError(t, err)
|
||||
// must pass on the upcoming forks
|
||||
assert.True(t, strings.HasPrefix(url, "https://github.com"), url)
|
||||
assert.True(t, strings.HasSuffix(url, "bricks"), url)
|
||||
assert.True(t, strings.HasSuffix(url, "cli"), url)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue