ensure nil step does not cause problems

This commit is contained in:
Brad Rydzewski
2019-10-17 15:52:05 -07:00
parent b198003a0c
commit 983f1badde
6 changed files with 26 additions and 1 deletions

View File

@@ -105,6 +105,14 @@ func TestParseLintErr(t *testing.T) {
}
}
func TestParseLintNilStep(t *testing.T) {
_, err := manifest.ParseFile("testdata/nilstep.yml")
if err == nil {
t.Errorf("Expect linter returns error")
return
}
}
func TestParseNoMatch(t *testing.T) {
r := &manifest.RawResource{Kind: "pipeline", Type: "exec"}
_, match, _ := parse(r)