databricks-cli/bundle/tests/autoload_git_test.go

16 lines
380 B
Go

package config_tests
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestGitConfig(t *testing.T) {
b := load(t, "./autoload_git")
assert.Equal(t, "foo", b.Config.Bundle.Git.Branch)
sshUrl := "git@github.com:databricks/cli.git"
httpsUrl := "https://github.com/databricks/cli"
assert.Contains(t, []string{sshUrl, httpsUrl}, b.Config.Bundle.Git.OriginURL)
}