Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions test/test-lib-python.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ source "${THISDIR}/test-lib.sh"
source "${THISDIR}/test-lib-openshift.sh"

function ct_pull_or_import_postgresql() {
if [[ "${VERSION}" == "3.11" ]] || [[ "${VERSION}" == "3.12" ]] || [[ "${VERSION}" == "3.12-minimal" ]]; then
if [[ "${VERSION}" == "3.11" ]] || [[ "${VERSION}" == "3.11-minimal" ]] || [[ "${VERSION}" == "3.12" ]] || [[ "${VERSION}" == "3.12-minimal" ]]; then
postgresql_image="quay.io/sclorg/postgresql-12-c8s"
image_short="postgresql:12"
image_tag="${image_short}"
Expand All @@ -28,7 +28,7 @@ function ct_pull_or_import_postgresql() {
# Exit in case of failure, because postgresql container is mandatory
ct_pull_image "${postgresql_image}" "true"
else
# Import postgresql-10-centos7 image before running tests on CVP
# Import postgresql-10-c8s image before running tests on CVP
oc import-image "${image_short}:latest" --from="${postgresql_image}:latest" --insecure=true --confirm
# Tag postgresql image to "postgresql:10" which is expected by test suite
oc tag "${image_short}:latest" "${image_tag}"
Expand All @@ -37,6 +37,10 @@ function ct_pull_or_import_postgresql() {

# Check the imagestream
function test_python_imagestream() {
if [[ "${VERSIONS}" == "3.9-minimal" ]] || [[ "${VERSIONS}" == "3.11-minimal" ]]; then
echo "Skipping tests for ${VERSIONS}. It is not supported in Container Catalog. Imagestreams do not exist for them."
return 0
fi
local tag="-ubi8"
if [ "${OS}" == "rhel9" ]; then
tag="-ubi9"
Expand Down