Commit 0267c66
authored
tests, net, kmp: Add client arg (#2980)
##### Short description:
Updated VM fixtures - all calls to openshift-python-wrapper resource
should be updated to pass client.
##### What this PR does / why we need it:
As of its next release, openshift-python-wrapper will enforce passing
client when working with cluster resources.
openshift-virtualization-tests must align with this change.
All calls in the code to openshift-python-wrapper resources should be
updated to pass client arg.
Since the KMP NS is created with an admin_client the VMs must be created
with the same client - VMs under a namespace that is not created by a
project admin require admin privileges.
##### jira-ticket:
https://issues.redhat.com/browse/CNV-72392
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **Tests**
* Fixtures updated to exercise VMs with elevated/admin access to cover
additional scenarios.
* VMs are started and waited on during setup so tests hit running state
deterministically.
* Added explicit teardown to remove allocated MACs, preventing leftover
network state.
* Improves lifecycle validation and overall reliability across network
MAC pool configurations.
<sub>✏️ Tip: You can customize this high-level summary in your review
settings.</sub>
<!-- end of auto-generated comment: release notes by coderabbit.ai -->1 file changed
+6
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
265 | 265 | | |
266 | 266 | | |
267 | 267 | | |
268 | | - | |
| 268 | + | |
269 | 269 | | |
270 | 270 | | |
271 | 271 | | |
| |||
274 | 274 | | |
275 | 275 | | |
276 | 276 | | |
277 | | - | |
| 277 | + | |
278 | 278 | | |
279 | 279 | | |
280 | 280 | | |
| |||
284 | 284 | | |
285 | 285 | | |
286 | 286 | | |
287 | | - | |
| 287 | + | |
288 | 288 | | |
289 | 289 | | |
290 | 290 | | |
| |||
293 | 293 | | |
294 | 294 | | |
295 | 295 | | |
296 | | - | |
| 296 | + | |
297 | 297 | | |
298 | 298 | | |
299 | 299 | | |
| |||
303 | 303 | | |
304 | 304 | | |
305 | 305 | | |
306 | | - | |
| 306 | + | |
307 | 307 | | |
308 | 308 | | |
309 | 309 | | |
| |||
312 | 312 | | |
313 | 313 | | |
314 | 314 | | |
315 | | - | |
| 315 | + | |
316 | 316 | | |
317 | 317 | | |
318 | 318 | | |
| |||
0 commit comments