Skip to content

Commit b9e6677

Browse files
committed
Do not test imagestreams yet for RHEL10. They are not prepared yet.
Signed-off-by: Petr "Stone" Hracek <[email protected]>
1 parent 9664771 commit b9e6677

8 files changed

+28
-5
lines changed

test/run-openshift-remote-cluster

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ ct_os_check_login || exit $OC_ERR
3232

3333
ct_os_tag_image_for_cvp "perl"
3434

35-
set -u
35+
set -ux
3636

3737
# For testing on OpenShift 4 we use internal registry
3838
export CT_OCP4_TEST=true

test/test_dancer_ex_standalone.py

+5
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@
1515
IMAGE_NAME = os.getenv("IMAGE_NAME")
1616
OS = os.getenv("TARGET")
1717

18+
if VERSION == "5.30-mod_fcgid":
19+
VERSION = "5.30"
20+
21+
if VERSION == "5.26-mod_fcgid":
22+
VERSION = "5.26"
1823

1924
# Replacement with 'test_python_s2i_app_ex'
2025
class TestPerlDancerExTemplate:

test/test_dancer_ex_templates.py

+6-2
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,15 @@
3535
class TestDeployDancerExTemplateWithoutMySQL:
3636

3737
def setup_method(self):
38-
self.oc_api = OpenShiftAPI(pod_name_prefix="perl-testing", version=VERSION)
39-
self.oc_api.import_is("imagestreams/perl-rhel.json", "", skip_check=True)
38+
self.oc_api = OpenShiftAPI(pod_name_prefix="perl-testing", version=VERSION, shared_cluster=True)
4039

4140
def teardown_method(self):
4241
self.oc_api.delete_project()
4342

4443
def test_perl_template_inside_cluster(self):
44+
if OS == "rhel10":
45+
pytest.skip("Do NOT test on RHEL10 yet.")
46+
self.oc_api.import_is("imagestreams/perl-rhel.json", "", skip_check=True)
4547
service_name = "perl-testing"
4648
template_url = self.oc_api.get_raw_url_for_json(
4749
container="dancer-ex", dir="openshift/templates", filename="dancer.json", branch="master"
@@ -73,6 +75,8 @@ def teardown_method(self):
7375
self.oc_api.delete_project()
7476

7577
def test_perl_template_inside_cluster(self):
78+
if OS == "rhel10":
79+
pytest.skip("Do NOT test on RHEL10 yet.")
7680
service_name = "perl-testing"
7781
template_url = self.oc_api.get_raw_url_for_json(
7882
container="dancer-ex", dir="openshift/templates", filename="dancer-mysql-persistent.json", branch="master"

test/test_deploy_templates.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import os
22
import sys
33

4+
import pytest
5+
46
from container_ci_suite.openshift import OpenShiftAPI
57
from container_ci_suite.utils import check_variables
68

@@ -23,13 +25,15 @@
2325
class TestDeployTemplate:
2426

2527
def setup_method(self):
26-
self.oc_api = OpenShiftAPI(pod_name_prefix="perl-testing", version=VERSION)
28+
self.oc_api = OpenShiftAPI(pod_name_prefix="perl-testing", version=VERSION, shared_cluster=True)
2729
self.oc_api.import_is("imagestreams/perl-rhel.json", "", skip_check=True)
2830

2931
def teardown_method(self):
3032
self.oc_api.delete_project()
3133

3234
def test_perl_template_inside_cluster(self):
35+
if OS == "rhel10":
36+
pytest.skip("Do NOT test on RHEL10 yet.")
3337
service_name = "perl-testing"
3438
assert self.oc_api.deploy_template_with_image(
3539
image_name=IMAGE_NAME,

test/test_helm_dancer_app.py

+4
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ def teardown_method(self):
4949
def test_dancer_application_curl_output(self):
5050
if self.hc_api.oc_api.shared_cluster:
5151
pytest.skip("Do NOT test on shared cluster")
52+
if OS == "rhel10":
53+
pytest.skip("Do NOT test on RHEL10 yet.")
5254
self.hc_api.package_name = "redhat-perl-imagestreams"
5355
assert self.hc_api.helm_package()
5456
assert self.hc_api.helm_installation()
@@ -67,6 +69,8 @@ def test_dancer_application_curl_output(self):
6769
)
6870

6971
def test_dancer_application_helm_test(self):
72+
if OS == "rhel10":
73+
pytest.skip("Do NOT test on RHEL10 yet.")
7074
self.hc_api.package_name = "redhat-perl-imagestreams"
7175
assert self.hc_api.helm_package()
7276
assert self.hc_api.helm_installation()

test/test_helm_dancer_mysql_template.py

+4
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ def teardown_method(self):
4848
def test_dancer_application(self):
4949
if self.hc_api.oc_api.shared_cluster:
5050
pytest.skip("Do NOT test on shared cluster")
51+
if OS == "rhel10":
52+
pytest.skip("Do NOT test on RHEL10 yet.")
5153
self.hc_api.package_name = "redhat-perl-imagestreams"
5254
assert self.hc_api.helm_package()
5355
assert self.hc_api.helm_installation()
@@ -67,6 +69,8 @@ def test_dancer_application(self):
6769

6870

6971
def test_dancer_application_helm_test(self):
72+
if OS == "rhel10":
73+
pytest.skip("Do NOT test on RHEL10 yet.")
7074
self.hc_api.package_name = "redhat-perl-imagestreams"
7175
assert self.hc_api.helm_package()
7276
assert self.hc_api.helm_installation()

test/test_helm_perl_imagestreams.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class TestHelmRHELPerlImageStreams:
2020
def setup_method(self):
2121
package_name = "redhat-perl-imagestreams"
2222
path = test_dir
23-
self.hc_api = HelmChartsAPI(path=path, package_name=package_name, tarball_dir=test_dir)
23+
self.hc_api = HelmChartsAPI(path=path, package_name=package_name, tarball_dir=test_dir, shared_cluster=True)
2424
self.hc_api.clone_helm_chart_repo(
2525
repo_url="https://github.com/sclorg/helm-charts", repo_name="helm-charts",
2626
subdir="charts/redhat"

test/test_imagestreams_quickstart.py

+2
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ def teardown_method(self):
4141
self.oc_api.delete_project()
4242

4343
def test_perl_template_inside_cluster(self):
44+
if OS == "rhel10":
45+
pytest.skip("Do NOT test on RHEL10 yet.")
4446
service_name = "perl-testing"
4547
assert self.oc_api.imagestream_quickstart(
4648
imagestream_file="imagestreams/perl-rhel.json",

0 commit comments

Comments
 (0)