20
20
OS = os .getenv ("TARGET" )
21
21
22
22
if VERSION == "7.4" or VERSION == "8.0" :
23
- check_msg = "Welcome to CakePHP 4.5 "
23
+ check_msg = "Welcome to CakePHP"
24
24
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"
26
26
else :
27
27
check_msg = "Welcome to your CakePHP application on OpenShift"
28
28
36
36
class TestHelmCakePHPTemplate :
37
37
38
38
def setup_method (self ):
39
- package_name = "php-cakephp-application"
39
+ package_name = "redhat- php-cakephp-application"
40
40
path = test_dir
41
41
self .hc_api = HelmChartsAPI (path = path , package_name = package_name , tarball_dir = test_dir , remote = True )
42
42
self .hc_api .clone_helm_chart_repo (
@@ -50,34 +50,34 @@ def teardown_method(self):
50
50
def test_curl_connection (self ):
51
51
if self .hc_api .oc_api .shared_cluster :
52
52
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"
54
54
assert self .hc_api .helm_package ()
55
55
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"
57
57
assert self .hc_api .helm_package ()
58
58
assert self .hc_api .helm_installation (
59
59
values = {
60
60
"php_version" : f"{ VERSION } { TAG } " ,
61
61
"namespace" : self .hc_api .namespace
62
62
}
63
63
)
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 )
65
65
assert self .hc_api .test_helm_curl_output (
66
66
route_name = "cakephp-example" ,
67
67
expected_str = check_msg
68
68
)
69
69
70
70
def test_by_helm_test (self ):
71
- self .hc_api .package_name = "php-imagestreams"
71
+ self .hc_api .package_name = "redhat- php-imagestreams"
72
72
assert self .hc_api .helm_package ()
73
73
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"
75
75
assert self .hc_api .helm_package ()
76
76
assert self .hc_api .helm_installation (
77
77
values = {
78
78
"php_version" : f"{ VERSION } { TAG } " ,
79
79
"namespace" : self .hc_api .namespace
80
80
}
81
81
)
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 )
83
83
assert self .hc_api .test_helm_chart (expected_str = [check_msg ])
0 commit comments