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:
parent
9a03d79a84
commit
c8c444debc
|
|
@ -250,6 +250,8 @@ func TestReadFromYaml_FilterNegatives(t *testing.T) {
|
||||||
[]bool{false, true, false}},
|
[]bool{false, true, false}},
|
||||||
{LabelFilter{negativeLabels: [][]string{[]string{"stage", "pre"}, []string{"stage", "post"}}},
|
{LabelFilter{negativeLabels: [][]string{[]string{"stage", "pre"}, []string{"stage", "post"}}},
|
||||||
[]bool{false, false, true}},
|
[]bool{false, false, true}},
|
||||||
|
{LabelFilter{negativeLabels: [][]string{[]string{"foo", "bar"}}},
|
||||||
|
[]bool{false, true, true}},
|
||||||
}
|
}
|
||||||
state, err := createFromYaml(yamlContent, yamlFile, DefaultEnv, logger)
|
state, err := createFromYaml(yamlContent, yamlFile, DefaultEnv, logger)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue