aboutsummaryrefslogtreecommitdiff
path: root/config_test.go
diff options
context:
space:
mode:
authorHenrique Dias <hacdias@gmail.com>2023-11-07 20:45:45 +0100
committerGitHub <noreply@github.com>2023-11-07 11:45:45 -0800
commit550450a3b1e07a70a506d872137ea43774d2c5e0 (patch)
treed75e2174eeb6ba9197fbf70ce97f3567a6322859 /config_test.go
parent35e7777d1a11bff5e192aaae3145685a6a2aec60 (diff)
downloadsally-550450a3b1e07a70a506d872137ea43774d2c5e0.tar.gz
feat: add support for other vcs systems (#128)
Adds support to other VCS systems as per the specification. Defaults to `git` for backwards compatibility. Renames the internally used `.GitURL` to `.RepoURL` for clarity.
Diffstat (limited to 'config_test.go')
-rw-r--r--config_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/config_test.go b/config_test.go
index 0eb93e2..e7ac247 100644
--- a/config_test.go
+++ b/config_test.go
@@ -16,6 +16,7 @@ packages:
grpc:
repo: github.com/grpc/grpc-go
branch: main
+ vcs: svn
`)
defer clean()
@@ -28,8 +29,7 @@ packages:
pkg, ok := config.Packages["grpc"]
assert.True(t, ok)
-
- assert.Equal(t, pkg, PackageConfig{Repo: "github.com/grpc/grpc-go"})
+ assert.Equal(t, PackageConfig{Repo: "github.com/grpc/grpc-go", VCS: "svn"}, pkg)
}
func TestParsePackageLevelURL(t *testing.T) {
@@ -83,7 +83,7 @@ packages:
pkg, ok := config.Packages["grpc"]
assert.True(t, ok)
- assert.Equal(t, PackageConfig{Repo: "github.com/grpc/grpc-go"}, pkg)
+ assert.Equal(t, PackageConfig{Repo: "github.com/grpc/grpc-go", VCS: "git"}, pkg)
})
}
}