File tree Expand file tree Collapse file tree
tests/model_registry/rest_api/mariadb Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44
55from ocp_resources .maria_db import MariaDB
66from ocp_resources .mariadb_operator import MariadbOperator
7+ from ocp_resources .persistent_volume_claim import PersistentVolumeClaim
78from tests .model_registry .rest_api .mariadb .utils import get_mariadb_dict
89from tests .model_registry .utils import wait_for_pods_running
910from utilities .constants import OPENSHIFT_OPERATORS , MARIADB
@@ -41,6 +42,10 @@ def deployed_mariadb(
4142 secret = Secret (name = secret_name , namespace = OPENSHIFT_OPERATORS )
4243 if secret .exists :
4344 secret .clean_up ()
45+ for pvc in PersistentVolumeClaim .get (dyn_client = admin_client ):
46+ if mariadb_str in pvc .name :
47+ LOGGER .warning (f"Deleting pvc: { pvc .name } " )
48+ pvc .clean_up ()
4449
4550
4651@pytest .fixture (scope = "class" )
You can’t perform that action at this time.
0 commit comments