test(cmd-edit-add-label): add multiple labels without selector test

This commit is contained in:
isarns
2025-10-12 12:08:34 +03:00
parent 9df8bbdc44
commit d427f61f84

View File

@@ -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{