Skip to content

Commit 17f284e

Browse files
committed
restore TestGitAutoLoad
1 parent 8922dba commit 17f284e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

bundle/tests/git_test.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,13 @@ import (
1212
"github.com/stretchr/testify/assert"
1313
)
1414

15+
func TestGitAutoLoad(t *testing.T) {
16+
b := load(t, "./autoload_git", mutator.LoadGitDetails())
17+
assert.True(t, b.Config.Bundle.Git.Inferred)
18+
validUrl := strings.Contains(b.Config.Bundle.Git.OriginURL, "/cli") || strings.Contains(b.Config.Bundle.Git.OriginURL, "/bricks")
19+
assert.True(t, validUrl, fmt.Sprintf("Expected URL to contain '/cli' or '/bricks', got %s", b.Config.Bundle.Git.OriginURL))
20+
}
21+
1522
func TestGitManuallySetBranch(t *testing.T) {
1623
b := loadTarget(t, "./autoload_git", "production", mutator.LoadGitDetails())
1724
assert.False(t, b.Config.Bundle.Git.Inferred)

0 commit comments

Comments
 (0)