Skip to content

Commit d83e3d8

Browse files
committed
Add support for NodeJS-22 imagestreams.
RHEL-9.5.0 reached GA and imagestream is present in registry. The commit allows to test it. Signed-off-by: Petr "Stone" Hracek <[email protected]>
1 parent 09bf01b commit d83e3d8

File tree

6 files changed

+20
-28
lines changed

6 files changed

+20
-28
lines changed

imagestreams/imagestreams.yaml

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@
99
https://github.com/sclorg/s2i-nodejs-container/blob/master/APP_VERSION/README.md.
1010
imagestream_files:
1111
- filename: nodejs-centos.json
12-
latest: "20-ubi9"
12+
latest: "22-ubi9"
1313
distros:
1414
- name: UBI 8
1515
app_versions: ["18", "18-minimal", "20", "20-minimal"]
1616

1717
- name: UBI 9
18-
app_versions: ["18", "18-minimal", "20", "20-minimal"]
18+
app_versions: ["18", "18-minimal", "20", "20-minimal", "22", "22-minimal"]
1919
custom_tags:
2020
- name: "18-ubi8-minimal"
2121
distro: UBI 8
@@ -29,15 +29,18 @@
2929
- name: "20-ubi9-minimal"
3030
distro: UBI 9
3131
app_version: "20-minimal"
32+
- name: "22-ubi9-minimal"
33+
distro: UBI 9
34+
app_version: "22-minimal"
3235

3336
- filename: nodejs-rhel.json
34-
latest: "20-ubi9"
37+
latest: "22-ubi9"
3538
distros:
3639
- name: UBI 8
3740
app_versions: ["18", "18-minimal", "20", "20-minimal"]
3841

3942
- name: UBI 9
40-
app_versions: ["18", "18-minimal", "20", "20-minimal"]
43+
app_versions: ["18", "18-minimal", "20", "20-minimal", "22", "22-minimal"]
4144
# these are non standard tags, maintained for backwards compatibility
4245
custom_tags:
4346
- name: "18-ubi8-minimal"
@@ -52,6 +55,9 @@
5255
- name: "20-ubi9-minimal"
5356
distro: UBI 9
5457
app_version: "20-minimal"
58+
- name: "22-ubi9-minimal"
59+
distro: UBI 9
60+
app_version: "22-minimal"
5561

5662
- filename: nodejs-rhel-aarch64.json
5763
latest: "20-ubi9"
@@ -60,7 +66,7 @@
6066
app_versions: ["18", "18-minimal", "20", "20-minimal"]
6167

6268
- name: UBI 9
63-
app_versions: ["18", "18-minimal", "20", "20-minimal"]
69+
app_versions: ["18", "18-minimal", "20", "20-minimal", "22", "22-minimal"]
6470
custom_tags:
6571
- name: "18-ubi8-minimal"
6672
distro: UBI 8
@@ -74,4 +80,7 @@
7480
- name: "20-ubi9-minimal"
7581
distro: UBI 9
7682
app_version: "20-minimal"
83+
- name: "22-ubi9-minimal"
84+
distro: UBI 9
85+
app_version: "22-minimal"
7786
...

test/run-openshift-remote-cluster

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,6 @@ 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-
5449
TEST_SUMMARY=''
5550
TEST_SET=${TESTS:-$TEST_LIST} ct_run_tests_from_testset "openshift-remote-cluster"
5651

test/test_latest_imagestreams.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,6 @@ 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-
2925
self.latest_version = self.isc.get_latest_version()
3026
assert self.latest_version != ""
3127
self.isc.check_imagestreams(self.latest_version)

test/test_nodejs_ex_templates.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,6 @@ 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-
4945
service_name = "nodejs-testing"
5046
template_url = self.oc_api.get_raw_url_for_json(
5147
container="nodejs-ex", dir="openshift/templates", filename=template, branch="master"

test/test_shared_helm_nodejs_application.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@
2727
class TestHelmNodeJSApplication:
2828

2929
def setup_method(self):
30-
package_name = "nodejs-application"
30+
package_name = "redhat-nodejs-application"
3131
path = test_dir
32-
self.hc_api = HelmChartsAPI(path=path, package_name=package_name, tarball_dir=test_dir, remote=True)
32+
self.hc_api = HelmChartsAPI(path=path, package_name=package_name, tarball_dir=test_dir)
3333
self.hc_api.clone_helm_chart_repo(
3434
repo_url="https://github.com/sclorg/helm-charts", repo_name="helm-charts",
3535
subdir="charts/redhat"
@@ -39,9 +39,6 @@ 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
4542
if self.hc_api.oc_api.shared_cluster:
4643
pytest.skip("Do NOT test on shared cluster")
4744
self.hc_api.package_name = "nodejs-imagestreams"
@@ -62,9 +59,6 @@ def test_curl_connection(self):
6259
)
6360

6461
def test_by_helm_test(self):
65-
# TODO VERSION 22 is not supported at all
66-
if VERSION.startswith("22"):
67-
pass
6862
self.hc_api.package_name = "nodejs-imagestreams"
6963
self.hc_api.helm_package()
7064
assert self.hc_api.helm_installation()

test/test_shared_helm_nodejs_imagestreams.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
class TestHelmRHELNodeJSImageStreams:
1818

1919
def setup_method(self):
20-
package_name = "nodejs-imagestreams"
20+
package_name = "redhat-nodejs-imagestreams"
2121
path = test_dir
22-
self.hc_api = HelmChartsAPI(path=path, package_name=package_name, tarball_dir=test_dir, remote=True)
22+
self.hc_api = HelmChartsAPI(path=path, package_name=package_name, tarball_dir=test_dir)
2323
self.hc_api.clone_helm_chart_repo(
2424
repo_url="https://github.com/sclorg/helm-charts", repo_name="helm-charts",
2525
subdir="charts/redhat"
@@ -31,6 +31,8 @@ def teardown_method(self):
3131
@pytest.mark.parametrize(
3232
"version,registry",
3333
[
34+
("22-ubi9", "registry.redhat.io/ubi9/nodejs-22:latest"),
35+
("22-ubi9-minimal", "registry.redhat.io/ubi9/nodejs-22-minimal:latest"),
3436
("20-ubi9", "registry.redhat.io/ubi9/nodejs-20:latest"),
3537
("20-ubi9-minimal", "registry.redhat.io/ubi9/nodejs-20-minimal:latest"),
3638
("20-ubi8", "registry.redhat.io/ubi8/nodejs-20:latest"),

0 commit comments

Comments
 (0)