mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-01-10 03:47:03 +02:00
config tests
This commit is contained in:
parent
ccd55bfc7d
commit
9e3230516b
@ -58,7 +58,7 @@ func TestFileNotFound(t *testing.T) {
|
||||
func TestInvalidFields(t *testing.T) {
|
||||
var assert = assert.New(t)
|
||||
_, err := Load("testdata/invalid_config.yml")
|
||||
assert.EqualError(err, "unknown fields in the config file: invalid_root, archive.invalid_archive, archive.format_overrides[0].invalid_archive_fmtoverrides, brew.invalid_brew, brew.github.invalid_brew_github, builds[0].invalid_builds, builds[0].hooks.invalid_builds_hooks, builds[0].ignored_builds[0].invalid_builds_ignore, fpm.invalid_fpm, release.invalid_release, release.github.invalid_release_github, build.invalid_build, builds.hooks.invalid_build_hook, builds.ignored_builds[0].invalid_build_ignore, snapshot.invalid_snapshot")
|
||||
assert.EqualError(err, "unknown fields in the config file: invalid_root, archive.invalid_archive, archive.format_overrides[0].invalid_archive_fmtoverrides, brew.invalid_brew, brew.github.invalid_brew_github, builds[0].invalid_builds, builds[0].hooks.invalid_builds_hooks, builds[0].ignored_builds[0].invalid_builds_ignore, fpm.invalid_fpm, release.invalid_release, release.github.invalid_release_github, build.invalid_build, builds.hooks.invalid_build_hook, builds.ignored_builds[0].invalid_build_ignore, snapshot.invalid_snapshot, docker[0].invalid_docker")
|
||||
}
|
||||
|
||||
func TestInvalidYaml(t *testing.T) {
|
||||
|
3
config/testdata/invalid_config.yml
vendored
3
config/testdata/invalid_config.yml
vendored
@ -27,4 +27,5 @@ fpm:
|
||||
invalid_fpm: 1
|
||||
snapshot:
|
||||
invalid_snapshot: 1
|
||||
|
||||
dockers:
|
||||
- invalid_docker: 1
|
||||
|
Loading…
Reference in New Issue
Block a user