From 8979ed1394fdfa181b3113eae318399dab82f70f Mon Sep 17 00:00:00 2001 From: Pieter Noordhuis Date: Tue, 16 May 2023 19:02:07 +0200 Subject: [PATCH] Fix tests for new repository name (#390) --- bundle/tests/autoload_git_test.go | 4 ++-- libs/git/git_test.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bundle/tests/autoload_git_test.go b/bundle/tests/autoload_git_test.go index dd456a5c..87c7180e 100644 --- a/bundle/tests/autoload_git_test.go +++ b/bundle/tests/autoload_git_test.go @@ -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) } diff --git a/libs/git/git_test.go b/libs/git/git_test.go index 1190ab1a..818ba842 100644 --- a/libs/git/git_test.go +++ b/libs/git/git_test.go @@ -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) }