File tree Expand file tree Collapse file tree 3 files changed +10
-3
lines changed
Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 22import sys
33
44import pytest
5+ from packaging .version import Version
56
67from container_ci_suite .openshift import OpenShiftAPI
78from container_ci_suite .utils import check_variables
2122IMAGE_TAG = "postgresql:10"
2223PSQL_VERSION = "10"
2324
24- if VERSION == "3.11" or VERSION == "3.12" :
25+ if Version (VERSION ) >= Version ("3.11" ):
26+ BRANCH_TO_TEST = "4.2.x"
2527 DEPLOYED_PSQL_IMAGE = "quay.io/sclorg/postgresql-12-c8s"
2628 IMAGE_TAG = "postgresql:12"
2729 PSQL_VERSION = "12"
Original file line number Diff line number Diff line change 22import sys
33
44import pytest
5+ from packaging .version import Version
56
67from container_ci_suite .openshift import OpenShiftAPI
78from container_ci_suite .utils import check_variables
2122IMAGE_TAG = "postgresql:10"
2223PSQL_VERSION = "10"
2324
24- if VERSION == "3.11" or VERSION == "3.12" :
25+ if Version ( VERSION ) >= Version ( "3.11" ) :
2526 BRANCH_TO_TEST = "4.2.x"
2627 DEPLOYED_PSQL_IMAGE = "quay.io/sclorg/postgresql-12-c8s"
2728 IMAGE_TAG = "postgresql:12"
Original file line number Diff line number Diff line change 22import sys
33
44import pytest
5+ from packaging .version import Version
56
67from container_ci_suite .utils import check_variables
78from container_ci_suite .openshift import OpenShiftAPI
1516IMAGE_NAME = os .getenv ("IMAGE_NAME" )
1617OS = os .getenv ("TARGET" )
1718
18- BRANCH_TO_TEST = "2.2.x"
19+ if Version (VERSION ) >= Version ("3.11" ):
20+ BRANCH_TO_TEST = "4.2.x"
21+ else :
22+ BRANCH_TO_TEST = "2.2.x"
1923
2024
2125# Replacement with 'test_python_s2i_app_ex'
You can’t perform that action at this time.
0 commit comments