mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-11 17:12:51 +00:00
test(cmd-edit-add-label): add multiple labels without selector test
This commit is contained in:
@@ -375,6 +375,19 @@ func TestAddLabelWithoutSelector(t *testing.T) {
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "add multiple labels without selector",
|
||||
baseLabels: []types.Label{},
|
||||
options: addMetadataOptions{
|
||||
labelsWithoutSelector: true,
|
||||
metadata: map[string]string{"test1": "a", "test2": "b"},
|
||||
},
|
||||
expected: []types.Label{
|
||||
{
|
||||
Pairs: map[string]string{"test1": "a", "test2": "b"},
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "overwrite label with same settings",
|
||||
baseLabels: []types.Label{
|
||||
|
||||
Reference in New Issue
Block a user