Skip to content

Commit 0269272

Browse files
committed
Fix BRANCH_TO_TEST. It is either 4.X or 5.X
Signed-off-by: Petr "Stone" Hracek <phracek@redhat.com>
1 parent 728c045 commit 0269272

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

test/conftest.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@
2525
VERSION = os.getenv("VERSION")
2626
OS = os.getenv("TARGET").lower()
2727

28+
BRANCH_TO_TEST = "4.X"
29+
if VERSION == "8.2" or VERSION == "8.3":
30+
BRANCH_TO_TEST = "5.X"
31+
2832
VARS = Vars(
2933
OS=OS,
3034
TAG=TAGS.get(OS),
@@ -33,8 +37,8 @@
3337
IS_MINIMAL="minimal" in VERSION,
3438
SHORT_VERSION=VERSION.replace(".", ""),
3539
TEST_DIR=Path(__file__).parent.absolute(),
36-
BRANCH_TO_TEST="master",
37-
CHECK_MSG="Welcome to your CakePHP",
40+
BRANCH_TO_TEST=BRANCH_TO_TEST,
41+
CHECK_MSG="Welcome to CakePHP",
3842
)
3943

4044

test/test_container_basics.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,6 @@ def test_dockerfiles(self, dockerfile):
5353
assert cip
5454
assert self.app.test_response(
5555
url=cip,
56-
expected_output=VARS.CHECK_MSG,
56+
expected_output="Welcome to your CakePHP application on OpenShift",
5757
debug=True
5858
)

test/test_ocp_php_deploy_templates.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from container_ci_suite.openshift import OpenShiftAPI
22

3-
from conftest import VARS
3+
from conftest import VARS, skip_clear_env_tests
44

55

66
class TestDeployTemplate:
@@ -16,6 +16,7 @@ def test_php_template_inside_cluster(self):
1616
Test checks if local imagestreams and example application `cakephp-ex` works with properly
1717
and response is as expected
1818
"""
19+
skip_clear_env_tests()
1920
self.oc_api.import_is("imagestreams/php-rhel.json", "", skip_check=True)
2021
service_name = f"php-{VARS.SHORT_VERSION}-testing"
2122
template_url = self.oc_api.get_raw_url_for_json(
@@ -32,7 +33,7 @@ def test_php_template_inside_cluster(self):
3233
name_in_template="php",
3334
openshift_args=openshift_args
3435
)
35-
assert self.oc_api.is_template_deployed(name_in_template=service_name)
36+
assert self.oc_api.is_template_deployed(name_in_template=service_name, timeout=480)
3637
assert self.oc_api.check_response_inside_cluster(
3738
name_in_template=service_name, expected_output=VARS.CHECK_MSG
3839
)

0 commit comments

Comments
 (0)