Skip to content

Commit 6667de3

Browse files
committed
Do not test VERSIONS 3.9-minimal and 3.11-minimal in OpenShift 4.
They are not present in RedHat Container Catalog. Skip test_python_imagestream for VERSION 3.12 and RHEL8 We do not provide this combination. Signed-off-by: Petr "Stone" Hracek <[email protected]>
1 parent 2a45dae commit 6667de3

File tree

2 files changed

+13
-6
lines changed

2 files changed

+13
-6
lines changed

test/run-openshift-remote-cluster

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,12 @@ export CT_OCP4_TEST=true
4141
test -n "${IMAGE_NAME-}" || false 'make sure $IMAGE_NAME is defined'
4242
test -n "${VERSION-}" || false 'make sure $VERSION is defined'
4343

44-
45-
TEST_SUMMARY=''
46-
TEST_SET=${TESTS:-$TEST_LIST} ct_run_tests_from_testset "openshift-remote-cluster"
44+
if [[ "${VERSION}" == "3.9-minimal" ]] || [[ "${VERSION}" == "3.11-minimal" ]]; then
45+
echo "Skipping tests for minimal images. We do not provide them in container catalog registry."
46+
exit 0
47+
else
48+
TEST_SUMMARY=''
49+
TEST_SET=${TESTS:-$TEST_LIST} ct_run_tests_from_testset "openshift-remote-cluster"
50+
fi
4751

4852
# vim: set tabstop=2:shiftwidth=2:expandtab:
49-

test/test-lib-python.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ function ct_pull_or_import_postgresql() {
3737

3838
# Check the imagestream
3939
function test_python_imagestream() {
40+
if [[ "${VERSIONS}" == "3.12" ]] && [[ "${OS}" == "rhel8" ]]; then
41+
echo "Skipping tests for ${VERSIONS}. It is not supported in Container Catalog. Imagestreams do not exist for them."
42+
return 0
43+
fi
4044
if [[ "${VERSIONS}" == "3.9-minimal" ]] || [[ "${VERSIONS}" == "3.11-minimal" ]]; then
4145
echo "Skipping tests for ${VERSIONS}. It is not supported in Container Catalog. Imagestreams do not exist for them."
4246
return 0
@@ -83,7 +87,7 @@ function test_python_s2i_app_ex() {
8387
if [[ "${VERSION}" == *"minimal"* ]]; then
8488
VERSION=$(echo "${VERSION}" | cut -d "-" -f 1)
8589
fi
86-
if [[ "${VERSION}" == "3.11" ]] || [[ "${VERSION}" == "3.12" ]]; then
90+
if [[ "${VERSION}" == "3.11" ]] || [[ "${VERSION}" == "3.12" ]] || [[ "${VERSION}" == "3.12-minimal" ]]; then
8791
branch="4.2.x"
8892
else
8993
branch="2.2.x"
@@ -106,7 +110,7 @@ django-postgresql-persistent.json"
106110
if [[ "${VERSION}" == *"minimal"* ]]; then
107111
VERSION=$(echo "${VERSION}" | cut -d "-" -f 1)
108112
fi
109-
if [[ "${VERSION}" == "3.11" ]] || [[ "${VERSION}" == "3.12" ]]; then
113+
if [[ "${VERSION}" == "3.11" ]] || [[ "${VERSION}" == "3.12" ]] || [[ "${VERSION}" == "3.12-minimal" ]]; then
110114
postgresql_image="quay.io/sclorg/postgresql-12-c8s|postgresql:12"
111115
postgresql_version="12"
112116
branch="4.2.x"

0 commit comments

Comments
 (0)