Skip to content

Commit d9f6104

Browse files
committed
Helm Charts have been rename to 'redhat-' prefix
Signed-off-by: Petr "Stone" Hracek <[email protected]>
1 parent 961c9ac commit d9f6104

3 files changed

+13
-13
lines changed

test/test_php_deploy_templates.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@
1616

1717
if VERSION == "7.4" or VERSION == "8.0":
1818
branch_to_test = "4.X"
19-
check_msg = "Welcome to CakePHP 4.5"
19+
check_msg = "Welcome to CakePHP"
2020
elif VERSION == "8.1" or VERSION == "8.2" or VERSION == "8.3":
2121
branch_to_test = "5.X"
22-
check_msg = "Welcome to CakePHP 5"
22+
check_msg = "Welcome to CakePHP"
2323
else:
2424
branch_to_test = "master"
2525
check_msg = "Welcome to your CakePHP application on OpenShift"

test/test_shared_helm_cakephp_application.py

+9-9
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@
2020
OS = os.getenv("TARGET")
2121

2222
if VERSION == "7.4" or VERSION == "8.0":
23-
check_msg = "Welcome to CakePHP 4.5"
23+
check_msg = "Welcome to CakePHP"
2424
elif VERSION == "8.1" or VERSION == "8.2" or VERSION == "8.3":
25-
check_msg = "Welcome to CakePHP 4.5"
25+
check_msg = "Welcome to CakePHP"
2626
else:
2727
check_msg = "Welcome to your CakePHP application on OpenShift"
2828

@@ -36,7 +36,7 @@
3636
class TestHelmCakePHPTemplate:
3737

3838
def setup_method(self):
39-
package_name = "php-cakephp-application"
39+
package_name = "redhat-php-cakephp-application"
4040
path = test_dir
4141
self.hc_api = HelmChartsAPI(path=path, package_name=package_name, tarball_dir=test_dir, remote=True)
4242
self.hc_api.clone_helm_chart_repo(
@@ -50,34 +50,34 @@ def teardown_method(self):
5050
def test_curl_connection(self):
5151
if self.hc_api.oc_api.shared_cluster:
5252
pytest.skip("Do NOT test on shared cluster")
53-
self.hc_api.package_name = "php-imagestreams"
53+
self.hc_api.package_name = "redhat-php-imagestreams"
5454
assert self.hc_api.helm_package()
5555
assert self.hc_api.helm_installation()
56-
self.hc_api.package_name = "php-cakephp-application"
56+
self.hc_api.package_name = "redhat-php-cakephp-application"
5757
assert self.hc_api.helm_package()
5858
assert self.hc_api.helm_installation(
5959
values={
6060
"php_version": f"{VERSION}{TAG}",
6161
"namespace": self.hc_api.namespace
6262
}
6363
)
64-
assert self.hc_api.is_s2i_pod_running(pod_name_prefix="cakephp-example")
64+
assert self.hc_api.is_s2i_pod_running(pod_name_prefix="cakephp-example", timeout=300)
6565
assert self.hc_api.test_helm_curl_output(
6666
route_name="cakephp-example",
6767
expected_str=check_msg
6868
)
6969

7070
def test_by_helm_test(self):
71-
self.hc_api.package_name = "php-imagestreams"
71+
self.hc_api.package_name = "redhat-php-imagestreams"
7272
assert self.hc_api.helm_package()
7373
assert self.hc_api.helm_installation()
74-
self.hc_api.package_name = "php-cakephp-application"
74+
self.hc_api.package_name = "redhat-php-cakephp-application"
7575
assert self.hc_api.helm_package()
7676
assert self.hc_api.helm_installation(
7777
values={
7878
"php_version": f"{VERSION}{TAG}",
7979
"namespace": self.hc_api.namespace
8080
}
8181
)
82-
assert self.hc_api.is_s2i_pod_running(pod_name_prefix="cakephp-example")
82+
assert self.hc_api.is_s2i_pod_running(pod_name_prefix="cakephp-example", timeout=300)
8383
assert self.hc_api.test_helm_chart(expected_str=[check_msg])

test/test_shared_helm_chart_imagestreams.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
class TestHelmRHELPHPImageStreams:
1919

2020
def setup_method(self):
21-
package_name = "php-imagestreams"
21+
package_name = "redhat-php-imagestreams"
2222
path = test_dir
2323
self.hc_api = HelmChartsAPI(path=path, package_name=package_name, tarball_dir=test_dir, remote=True)
2424
self.hc_api.clone_helm_chart_repo(
@@ -36,7 +36,7 @@ def teardown_method(self):
3636
("8.2-ubi8", "registry.redhat.io/ubi8/php-82:latest", True),
3737
("8.1-ubi9", "registry.redhat.io/ubi9/php-81:latest", True),
3838
("8.0-ubi9", "registry.redhat.io/ubi9/php-80:latest", True),
39-
("8.0-ubi8", "registry.redhat.io/ubi8/php-80:latest", True),
39+
("8.0-ubi8", "registry.redhat.io/ubi8/php-80:latest", False),
4040
("7.4-ubi8", "registry.redhat.io/ubi8/php-74:latest", True),
4141
],
4242
)

0 commit comments

Comments
 (0)