Fixed negation for slice field elements during profile/node merge

- Fixes: #1677

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
This commit is contained in:
Jonathon Anderson
2025-01-30 00:56:16 -07:00
committed by Christian Goll
parent 8855fa9a0f
commit f931eb6a0a
6 changed files with 156 additions and 71 deletions

View File

@@ -214,7 +214,7 @@ nodes:
assert.Contains(nodemap, "node4")
assert.ElementsMatch(nodemap["node4"].RuntimeOverlay, []string{"p1o1", "p1o2", "p2o1", "p2o2", "n1o1", "n1o2"})
assert.Contains(nodemap, "node5")
assert.ElementsMatch(nodemap["node5"].RuntimeOverlay, []string{"p1o1", "p1o2", "~p1o2", "p2o1", "p2o2", "n1o1"})
assert.ElementsMatch(nodemap["node5"].RuntimeOverlay, []string{"p1o1", "p2o1", "p2o2", "n1o1"})
}
func Test_negated_list(t *testing.T) {