Add test case (#1410)

To ensure that `helmfile -l foo!=bar` does match against release without the label at all.
This commit is contained in:
KUOKA Yusuke 2020-08-12 09:07:22 +09:00 committed by GitHub
parent 9a03d79a84
commit c8c444debc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -250,6 +250,8 @@ func TestReadFromYaml_FilterNegatives(t *testing.T) {
[]bool{false, true, false}},
{LabelFilter{negativeLabels: [][]string{[]string{"stage", "pre"}, []string{"stage", "post"}}},
[]bool{false, false, true}},
{LabelFilter{negativeLabels: [][]string{[]string{"foo", "bar"}}},
[]bool{false, true, true}},
}
state, err := createFromYaml(yamlContent, yamlFile, DefaultEnv, logger)
if err != nil {