Fix tests for new repository name (#390)

This commit is contained in:
Pieter Noordhuis 2023-05-16 19:02:07 +02:00 committed by GitHub
parent 98ebb78c9b
commit 8979ed1394
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -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)
}

View File

@ -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)
}