Skip to content
Snippets Groups Projects
Unverified Commit 4f5da697 authored by Damiano Donati's avatar Damiano Donati
Browse files

controller: vsphere: TestPatchMachine check Label map init

parent 045db507
No related branches found
No related tags found
No related merge requests found
......@@ -401,6 +401,9 @@ func TestPatchMachine(t *testing.T) {
{
name: "Test changing labels",
mutate: func(m *machinev1.Machine) {
if m.Labels == nil {
m.Labels = map[string]string{}
}
m.Labels["testlabel"] = "test"
},
expect: func(m *machinev1.Machine) error {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment