@@ -88,29 +88,6 @@ func TestFuzzyConversion(t *testing.T) {
88
88
status .ExternalNetwork .APIServerLoadBalancer = nil
89
89
}
90
90
},
91
-
92
- func (v1alpha8OpenStackMachine * infrav1.OpenStackMachine , c fuzz.Continue ) {
93
- c .FuzzNoCustom (v1alpha8OpenStackMachine )
94
-
95
- // None of the following fields have ever been set in v1alpha6
96
- v1alpha8OpenStackMachine .Status .ReferencedResources = infrav1.ReferencedMachineResources {}
97
- },
98
-
99
- func (v1alpha8OpenStackCluster * infrav1.OpenStackCluster , c fuzz.Continue ) {
100
- c .FuzzNoCustom (v1alpha8OpenStackCluster )
101
-
102
- // None of the following fields have ever been set in v1alpha6
103
- if v1alpha8OpenStackCluster .Status .Bastion != nil {
104
- v1alpha8OpenStackCluster .Status .Bastion .ReferencedResources = infrav1.ReferencedMachineResources {}
105
- }
106
- },
107
-
108
- func (v1alpha8ServerGroupFilter * infrav1.ServerGroupFilter , c fuzz.Continue ) {
109
- c .FuzzNoCustom (v1alpha8ServerGroupFilter )
110
-
111
- // None of the following fields have ever been set in v1alpha6
112
- v1alpha8ServerGroupFilter .Name = ""
113
- },
114
91
}
115
92
}
116
93
@@ -135,51 +112,42 @@ func TestFuzzyConversion(t *testing.T) {
135
112
Hub : & infrav1.OpenStackClusterTemplate {},
136
113
Spoke : & OpenStackClusterTemplate {},
137
114
HubAfterMutation : ignoreDataAnnotation ,
138
- FuzzerFuncs : []fuzzer.FuzzerFuncs {fuzzerFuncs },
139
115
})))
140
116
141
117
t .Run ("for OpenStackClusterTemplate with mutate" , runParallel (testhelpers .FuzzMutateTestFunc (testhelpers.FuzzMutateTestFuncInput {
142
118
FuzzTestFuncInput : utilconversion.FuzzTestFuncInput {
143
119
Hub : & infrav1.OpenStackClusterTemplate {},
144
120
Spoke : & OpenStackClusterTemplate {},
145
121
HubAfterMutation : ignoreDataAnnotation ,
146
- FuzzerFuncs : []fuzzer.FuzzerFuncs {fuzzerFuncs },
147
122
},
148
- MutateFuzzerFuncs : []fuzzer.FuzzerFuncs {fuzzerFuncs },
149
123
})))
150
124
151
125
t .Run ("for OpenStackMachine" , runParallel (utilconversion .FuzzTestFunc (utilconversion.FuzzTestFuncInput {
152
126
Hub : & infrav1.OpenStackMachine {},
153
127
Spoke : & OpenStackMachine {},
154
128
HubAfterMutation : ignoreDataAnnotation ,
155
- FuzzerFuncs : []fuzzer.FuzzerFuncs {fuzzerFuncs },
156
129
})))
157
130
158
131
t .Run ("for OpenStackMachine with mutate" , runParallel (testhelpers .FuzzMutateTestFunc (testhelpers.FuzzMutateTestFuncInput {
159
132
FuzzTestFuncInput : utilconversion.FuzzTestFuncInput {
160
133
Hub : & infrav1.OpenStackMachine {},
161
134
Spoke : & OpenStackMachine {},
162
135
HubAfterMutation : ignoreDataAnnotation ,
163
- FuzzerFuncs : []fuzzer.FuzzerFuncs {fuzzerFuncs },
164
136
},
165
- MutateFuzzerFuncs : []fuzzer.FuzzerFuncs {fuzzerFuncs },
166
137
})))
167
138
168
139
t .Run ("for OpenStackMachineTemplate" , runParallel (utilconversion .FuzzTestFunc (utilconversion.FuzzTestFuncInput {
169
140
Hub : & infrav1.OpenStackMachineTemplate {},
170
141
Spoke : & OpenStackMachineTemplate {},
171
142
HubAfterMutation : ignoreDataAnnotation ,
172
- FuzzerFuncs : []fuzzer.FuzzerFuncs {fuzzerFuncs },
173
143
})))
174
144
175
145
t .Run ("for OpenStackMachineTemplate with mutate" , runParallel (testhelpers .FuzzMutateTestFunc (testhelpers.FuzzMutateTestFuncInput {
176
146
FuzzTestFuncInput : utilconversion.FuzzTestFuncInput {
177
147
Hub : & infrav1.OpenStackMachineTemplate {},
178
148
Spoke : & OpenStackMachineTemplate {},
179
149
HubAfterMutation : ignoreDataAnnotation ,
180
- FuzzerFuncs : []fuzzer.FuzzerFuncs {fuzzerFuncs },
181
150
},
182
- MutateFuzzerFuncs : []fuzzer.FuzzerFuncs {fuzzerFuncs },
183
151
})))
184
152
}
185
153
@@ -213,7 +181,6 @@ func TestNetworksToPorts(t *testing.T) {
213
181
},
214
182
},
215
183
},
216
- ServerGroup : & infrav1.ServerGroupFilter {},
217
184
},
218
185
},
219
186
{
@@ -247,7 +214,6 @@ func TestNetworksToPorts(t *testing.T) {
247
214
},
248
215
},
249
216
},
250
- ServerGroup : & infrav1.ServerGroupFilter {},
251
217
},
252
218
},
253
219
{
@@ -279,7 +245,6 @@ func TestNetworksToPorts(t *testing.T) {
279
245
},
280
246
},
281
247
},
282
- ServerGroup : & infrav1.ServerGroupFilter {},
283
248
},
284
249
},
285
250
{
@@ -335,7 +300,6 @@ func TestNetworksToPorts(t *testing.T) {
335
300
},
336
301
},
337
302
},
338
- ServerGroup : & infrav1.ServerGroupFilter {},
339
303
},
340
304
},
341
305
{
@@ -406,7 +370,6 @@ func TestNetworksToPorts(t *testing.T) {
406
370
},
407
371
},
408
372
},
409
- ServerGroup : & infrav1.ServerGroupFilter {},
410
373
},
411
374
},
412
375
}
@@ -509,8 +472,7 @@ func TestPortOptsConvertTo(t *testing.T) {
509
472
Spec : infrav1.OpenStackMachineTemplateSpec {
510
473
Template : infrav1.OpenStackMachineTemplateResource {
511
474
Spec : infrav1.OpenStackMachineSpec {
512
- Ports : tt .hubPortOpts ,
513
- ServerGroup : & infrav1.ServerGroupFilter {},
475
+ Ports : tt .hubPortOpts ,
514
476
},
515
477
},
516
478
},
0 commit comments