From 9230cad697c7fa003e3811b9bfbda0e77f714524 Mon Sep 17 00:00:00 2001 From: "Petr \"Stone\" Hracek" Date: Mon, 15 Dec 2025 13:02:47 +0100 Subject: [PATCH] Rename OpenShift 4 Python tests from test_* to test_ocp_* name This is the first step of PyTest container on-boarding Signed-off-by: Petr "Stone" Hracek --- test/run-openshift-pytest | 7 +++++-- ...tgresql_imagestream.py => test_ocp_psql_imagestream.py} | 0 ...m_template.py => test_ocp_psql_imagestream_template.py} | 0 ...magestreams.py => test_ocp_psql_latest_imagestreams.py} | 0 ...st_postgresql_template.py => test_ocp_psql_template.py} | 0 ...treams.py => test_ocp_shared_helm_psql_imagestreams.py} | 0 ...l_template.py => test_ocp_shared_helm_psql_template.py} | 0 7 files changed, 5 insertions(+), 2 deletions(-) rename test/{test_postgresql_imagestream.py => test_ocp_psql_imagestream.py} (100%) rename test/{test_postgresql_imagestream_template.py => test_ocp_psql_imagestream_template.py} (100%) rename test/{test_postgresql_latest_imagestreams.py => test_ocp_psql_latest_imagestreams.py} (100%) rename test/{test_postgresql_template.py => test_ocp_psql_template.py} (100%) rename test/{test_shared_helm_postgresql_imagestreams.py => test_ocp_shared_helm_psql_imagestreams.py} (100%) rename test/{test_shared_helm_postgresql_template.py => test_ocp_shared_helm_psql_template.py} (100%) diff --git a/test/run-openshift-pytest b/test/run-openshift-pytest index df843e0c..c9817770 100755 --- a/test/run-openshift-pytest +++ b/test/run-openshift-pytest @@ -9,5 +9,8 @@ THISDIR=$(dirname ${BASH_SOURCE[0]}) git show -s - -cd "${THISDIR}" && python3.12 -m pytest -s -rA --showlocals -vv test_*.py +PYTHON_VERSION="3.12" +if [[ ! -f "/usr/bin/python$PYTHON_VERSION" ]]; then + PYTHON_VERSION="3.13" +fi +cd "${THISDIR}" && "python$PYTHON_VERSION" -m pytest -s -rA --showlocals -vv test_ocp_*.py diff --git a/test/test_postgresql_imagestream.py b/test/test_ocp_psql_imagestream.py similarity index 100% rename from test/test_postgresql_imagestream.py rename to test/test_ocp_psql_imagestream.py diff --git a/test/test_postgresql_imagestream_template.py b/test/test_ocp_psql_imagestream_template.py similarity index 100% rename from test/test_postgresql_imagestream_template.py rename to test/test_ocp_psql_imagestream_template.py diff --git a/test/test_postgresql_latest_imagestreams.py b/test/test_ocp_psql_latest_imagestreams.py similarity index 100% rename from test/test_postgresql_latest_imagestreams.py rename to test/test_ocp_psql_latest_imagestreams.py diff --git a/test/test_postgresql_template.py b/test/test_ocp_psql_template.py similarity index 100% rename from test/test_postgresql_template.py rename to test/test_ocp_psql_template.py diff --git a/test/test_shared_helm_postgresql_imagestreams.py b/test/test_ocp_shared_helm_psql_imagestreams.py similarity index 100% rename from test/test_shared_helm_postgresql_imagestreams.py rename to test/test_ocp_shared_helm_psql_imagestreams.py diff --git a/test/test_shared_helm_postgresql_template.py b/test/test_ocp_shared_helm_psql_template.py similarity index 100% rename from test/test_shared_helm_postgresql_template.py rename to test/test_ocp_shared_helm_psql_template.py