mirror of
https://github.com/helmfile/helmfile.git
synced 2026-10-17 23:37:03 +02:00
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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user