Skip to content

Commit 1a75815

Browse files
committed
Do not tests 22 / 22-minimal in OpenShift 4
Signed-off-by: Petr "Stone" Hracek <[email protected]>
1 parent 2f972dc commit 1a75815

File tree

8 files changed

+19
-4
lines changed

8 files changed

+19
-4
lines changed

14-minimal/test/run-openshift

-1
This file was deleted.

16-minimal/test/run-openshift

-1
This file was deleted.

18-minimal/test/run-openshift

-1
This file was deleted.

22-minimal/test/run-openshift

-1
This file was deleted.

test/run-openshift-remote-cluster

+5
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,11 @@ test -n "${VERSION-}" || false 'make sure $VERSION is defined'
4646
export CT_OCP4_TEST=true
4747
export CT_SKIP_UPLOAD_IMAGE=true
4848

49+
# TODO VERSION 22 is not supported at all
50+
if [ "${VERSION}" == "22" ] || [ "${VERSION}" == "22-minimal" ]; then
51+
exit 0
52+
fi
53+
4954
TEST_SUMMARY=''
5055
TEST_SET=${TESTS:-$TEST_LIST} ct_run_tests_from_testset "openshift-remote-cluster"
5156

test/test_helm_nodejs_application.py

+6
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ def teardown_method(self):
3939
self.hc_api.delete_project()
4040

4141
def test_curl_connection(self):
42+
# TODO VERSION 22 is not supported at all
43+
if VERSION.startswith("22"):
44+
pass
4245
if self.hc_api.oc_api.shared_cluster:
4346
pytest.skip("Do NOT test on shared cluster")
4447
self.hc_api.package_name = "nodejs-imagestreams"
@@ -59,6 +62,9 @@ def test_curl_connection(self):
5962
)
6063

6164
def test_by_helm_test(self):
65+
# TODO VERSION 22 is not supported at all
66+
if VERSION.startswith("22"):
67+
pass
6268
self.hc_api.package_name = "nodejs-imagestreams"
6369
self.hc_api.helm_package()
6470
assert self.hc_api.helm_installation()

test/test_latest_imagestreams.py

+4
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ def setup_method(self):
2222
print(TEST_DIR.parent.parent)
2323

2424
def test_latest_imagestream(self):
25+
# TODO VERSION 22 is not supported at all
26+
if VERSION.startswith("22"):
27+
pass
28+
2529
self.latest_version = self.isc.get_latest_version()
2630
assert self.latest_version != ""
2731
self.isc.check_imagestreams(self.latest_version)

test/test_nodejs_ex_templates.py

+4
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ def teardown_method(self):
4242
]
4343
)
4444
def test_nodejs_ex_template_inside_cluster(self, template):
45+
# TODO VERSION 22 is not supported at all
46+
if VERSION.startswith("22"):
47+
pass
48+
4549
service_name = "nodejs-testing"
4650
template_url = self.oc_api.get_raw_url_for_json(
4751
container="nodejs-ex", dir="openshift/templates", filename=template, branch="master"

0 commit comments

Comments
 (0)