Commit 41702f7
authored
utils: add client to create_dv and assert_pvc_snapshot_clone_annotation (#5120)
##### What this PR does / why we need it:
Missing client on files causes warning:
```
openshift-virtualization-tests/.venv/lib64/python3.14/site-packages/ocp_resources/resource.py:1636: FutureWarning: 'client' arg will be mandatory in the next major release. `config_file` and `context` args will be removed.
super().__init__(
```
This PR fixes the warning for `create_dv` and
`assert_pvc_snapshot_clone_annotation`
##### Which issue(s) this PR fixes:
`FutureWarning` showing
##### Special notes for reviewer:
##### jira-ticket:
<!-- full-ticket-url needs to be provided. This would add a link to the
pull request to the jira and close it when the pull request is merged
If the task is not tracked by a Jira ticket, just write "NONE".
-->
NONE
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **Tests**
* Updated test utilities to use the test cluster client when validating
storage-related behavior, improving consistency and reliability.
* **Chores**
* Adjusted storage helper logic to retrieve secrets and config from the
provided test client/namespace, ensuring correct cluster-scoped
configuration handling.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
Signed-off-by: rkishner <rkishner@redhat.com>1 parent ec593a3 commit 41702f7
2 files changed
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
330 | 330 | | |
331 | 331 | | |
332 | 332 | | |
333 | | - | |
| 333 | + | |
334 | 334 | | |
335 | 335 | | |
336 | 336 | | |
| |||
451 | 451 | | |
452 | 452 | | |
453 | 453 | | |
454 | | - | |
| 454 | + | |
455 | 455 | | |
456 | 456 | | |
457 | 457 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
145 | | - | |
| 145 | + | |
146 | 146 | | |
147 | 147 | | |
148 | | - | |
| 148 | + | |
149 | 149 | | |
150 | 150 | | |
151 | 151 | | |
| |||
0 commit comments