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
+2
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 {