refactor: update DataVolume resource #2708
Open
manage-repositories-app / tox
succeeded
May 8, 2026 in 0s
Tox
Details
warning: The `tool.uv.dev-dependencies` field (used in `pyproject.toml`) is deprecated and will be removed in a future release; use `dependency-groups.dev` instead
warning: `VIRTUAL_ENV=unittests` does not match the project environment path `.venv` and will be ignored; use `--active` to target the active environment instead
Using CPython 3.14.4 interpreter at: /usr/bin/python3
Creating virtual environment at: .venv
Building openshift-python-wrapper @ file:///tmp/github-webhook-openshift-python-wrapper-k6cty24f-worktree-4bc4c838-da5e-4120-b8e9-7e63e3cd312c
Downloading kubernetes (1.9MiB)
Downloading jedi (1.5MiB)
Downloading pygments (1.2MiB)
Downloading netaddr (2.2MiB)
Downloading cryptography (4.2MiB)
Downloading ruff (11.1MiB)
Building markupsafe==3.0.2
Building cffi==1.17.1
Building pyyaml==6.0.2
Downloaded pygments
Building python-simple-logger==2.0.14
Building pyhelper-utils==1.0.17
Building timeout-sampler==1.0.19
Downloaded netaddr
Downloaded kubernetes
Downloaded cryptography
Downloaded jedi
Built pyhelper-utils==1.0.17
Built python-simple-logger==2.0.14
Built timeout-sampler==1.0.19
Built openshift-python-wrapper @ file:///tmp/github-webhook-openshift-python-wrapper-k6cty24f-worktree-4bc4c838-da5e-4120-b8e9-7e63e3cd312c
Built markupsafe==3.0.2
Built pyyaml==6.0.2
Built cffi==1.17.1
Downloaded ruff
Installed 69 packages in 37ms
unittests: install_deps /tmp/github-webhook-openshift-python-wrapper-k6cty24f-worktree-4bc4c838-da5e-4120-b8e9-7e63e3cd312c> python -I -m pip install uv
unittests: commands[0] /tmp/github-webhook-openshift-python-wrapper-k6cty24f-worktree-4bc4c838-da5e-4120-b8e9-7e63e3cd312c> uv run --group tests pytest
============================= test session starts ==============================
platform linux -- Python 3.14.4, pytest-8.4.1, pluggy-1.6.0
cachedir: unittests/.pytest_cache
rootdir: /tmp/github-webhook-openshift-python-wrapper-k6cty24f-worktree-4bc4c838-da5e-4120-b8e9-7e63e3cd312c
configfile: pyproject.toml
plugins: cov-6.2.1
collected 391 items
class_generator/scripts/tests/test_scripts.py . [ 0%]
class_generator/tests/test_camelcase_to_snake.py .......... [ 2%]
class_generator/tests/test_class_generator.py ............... [ 6%]
tests/test_api_group_order.py . [ 6%]
tests/test_resource.py .................xx [ 11%]
tests/test_resources/test_aaq.py .... [ 12%]
tests/test_resources/test_api_server.py .... [ 13%]
tests/test_resources/test_authorino.py .... [ 14%]
tests/test_resources/test_cdi.py .... [ 15%]
tests/test_resources/test_cdi_config.py .... [ 16%]
tests/test_resources/test_cluster_resource_quota.py .... [ 17%]
tests/test_resources/test_cluster_user_defined_network.py .... [ 18%]
tests/test_resources/test_config_map.py .... [ 19%]
tests/test_resources/test_console_config_openshift_io.py .... [ 20%]
tests/test_resources/test_console_operator_openshift_io.py .... [ 21%]
tests/test_resources/test_csi_driver.py .... [ 23%]
tests/test_resources/test_data_import_cron.py .... [ 24%]
tests/test_resources/test_data_science_cluster.py .... [ 25%]
tests/test_resources/test_deployment.py .... [ 26%]
tests/test_resources/test_direct_volume_migration.py .... [ 27%]
tests/test_resources/test_direct_volume_migration_progress.py .... [ 28%]
tests/test_resources/test_dns_config_openshift_io.py .... [ 29%]
tests/test_resources/test_dns_operator_openshift_io.py .... [ 30%]
tests/test_resources/test_dsc_initialization.py .... [ 31%]
tests/test_resources/test_group.py .... [ 32%]
tests/test_resources/test_guardrails_orchestrator.py .... [ 33%]
tests/test_resources/test_image_caching_internal_knative_dev.py .... [ 34%]
tests/test_resources/test_image_config_openshift_io.py .... [ 35%]
tests/test_resources/test_image_content_source_policy.py .... [ 36%]
tests/test_resources/test_image_image_openshift_io.py .... [ 37%]
tests/test_resources/test_inference_graph.py .... [ 38%]
tests/test_resources/test_kube_descheduler.py .... [ 39%]
tests/test_resources/test_kubelet_config.py .... [ 40%]
tests/test_resources/test_kubevirt.py .... [ 41%]
tests/test_resources/test_llama_stack_distribution.py .... [ 42%]
tests/test_resources/test_lm_eval_job.py .... [ 43%]
tests/test_resources/test_machine.py .... [ 44%]
tests/test_resources/test_maria_db.py .... [ 45%]
tests/test_resources/test_mariadb_operator.py .... [ 46%]
tests/test_resources/test_mig_analytic.py .... [ 47%]
tests/test_resources/test_mig_cluster.py .... [ 48%]
tests/test_resources/test_mig_migration.py .... [ 49%]
tests/test_resources/test_mig_plan.py .... [ 50%]
tests/test_resources/test_model_registry.py .... [ 51%]
tests/test_resources/test_model_registry_components_platform_opendatahub_io.py . [ 51%]
... [ 52%]
tests/test_resources/test_model_registry_modelregistry_opendatahub_io.py . [ 52%]
... [ 53%]
tests/test_resources/test_mtq.py .... [ 54%]
tests/test_resources/test_namespace.py .... [ 55%]
tests/test_resources/test_network_config_openshift_io.py .... [ 56%]
tests/test_resources/test_network_operator_openshift_io.py .... [ 57%]
tests/test_resources/test_nm_state.py .... [ 58%]
tests/test_resources/test_node.py .... [ 59%]
tests/test_resources/test_node_config_openshift_io.py .... [ 60%]
tests/test_resources/test_node_network_configuration_policy_latest.py .. [ 61%]
.. [ 61%]
tests/test_resources/test_notebook.py .... [ 62%]
tests/test_resources/test_oauth.py .... [ 63%]
tests/test_resources/test_operator.py .... [ 64%]
tests/test_resources/test_pod.py .... [ 65%]
tests/test_resources/test_pod_metrics.py .... [ 67%]
tests/test_resources/test_project_config_openshift_io.py .... [ 68%]
tests/test_resources/test_project_project_openshift_io.py .... [ 69%]
tests/test_resources/test_project_request.py ... [ 69%]
tests/test_resources/test_prometheus.py .... [ 70%]
tests/test_resources/test_replica_set.py .... [ 71%]
tests/test_resources/test_scheduler.py .... [ 72%]
tests/test_resources/test_security_context_constraints.py .... [ 73%]
tests/test_resources/test_self_subject_review.py .... [ 74%]
tests/test_resources/test_service.py .... [ 75%]
tests/test_resources/test_service_mesh_member.py .... [ 76%]
tests/test_resources/test_service_serving_knative_dev.py .... [ 78%]
tests/test_resources/test_serving_runtime.py .... [ 79%]
tests/test_resources/test_snapshot.py .... [ 80%]
tests/test_resources/test_ssp.py .... [ 81%]
tests/test_resources/test_storage_cluster.py .... [ 82%]
tests/test_resources/test_user.py .... [ 83%]
tests/test_resources/test_user_defined_network.py .... [ 84%]
tests/test_resources/test_virtual_machine_cluster_instancetype.py .... [ 85%]
tests/test_resources/test_virtual_machine_cluster_preference.py .... [ 86%]
tests/test_resources/test_virtual_machine_export.py .... [ 87%]
tests/test_resources/test_virtual_machine_instance_migration.py .... [ 88%]
tests/test_resources/test_virtual_machine_instance_preset.py .... [ 89%]
tests/test_resources/test_virtual_machine_instance_replica_set.py .... [ 90%]
tests/test_resources/test_virtual_machine_instancetype.py .... [ 91%]
tests/test_resources/test_virtual_machine_preference.py .... [ 92%]
tests/test_resources/test_volume_snapshot.py .... [ 93%]
tests/test_resources/test_volume_snapshot_class.py .... [ 94%]
tests/test_unittests.py ........... [ 97%]
tests/test_validate_resources.py . [ 97%]
tests/test_validate_resources_script.py .......... [100%]
=============================== warnings summary ===============================
.venv/lib64/python3.14/site-packages/cloup/_util.py:10
/tmp/github-webhook-openshift-python-wrapper-k6cty24f-worktree-4bc4c838-da5e-4120-b8e9-7e63e3cd312c/.venv/lib64/python3.14/site-packages/cloup/_util.py:10: DeprecationWarning: The '__version__' attribute is deprecated and will be removed in Click 9.1. Use feature detection or 'importlib.metadata.version("click")' instead.
click_version_tuple = tuple(click.__version__.split('.'))
tests/test_resources/test_model_registry.py:3
/tmp/github-webhook-openshift-python-wrapper-k6cty24f-worktree-4bc4c838-da5e-4120-b8e9-7e63e3cd312c/tests/test_resources/test_model_registry.py:3: DeprecationWarning: model_registry.py module will be removed in the next release, please import `ModelRegistry` from model_registry_modelregistry_opendatahub_io.py or model_registry_components_platform_opendatahub_io.py instead
from ocp_resources.model_registry import ModelRegistry
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
================================ tests coverage ================================
_______________ coverage: platform linux, python 3.14.4-final-0 ________________
Name Stmts Miss Cover
---------------------------------------------------------------
class_generator/class_generator.py 418 197 53%
class_generator/scripts/tools.py 77 35 55%
ocp_resources/exceptions.py 41 16 61%
ocp_resources/resource.py 746 274 63%
ocp_resources/utils/constants.py 15 0 100%
ocp_resources/utils/resource_constants.py 64 0 100%
ocp_resources/utils/utils.py 22 18 18%
---------------------------------------------------------------
TOTAL 1383 540 61%
1 empty file skipped.
Coverage HTML written to dir .tests_coverage
Required test coverage of 60.0% reached. Total coverage: 60.95%
============ 389 passed, 2 xfailed, 2 warnings in 148.22s (0:02:28) ============
unittests: OK (226.13=setup[2.07]+cmd[224.05] seconds)
congratulations :) (226.14 seconds)
Loading