@@ -18,11 +18,11 @@ def setup_method(self):
1818 self .oc_api = OpenShiftAPI (pod_name_prefix = "cakephp-example" )
1919 json_raw_file = self .oc_api .get_raw_url_for_json (container = "s2i-php-container" , dir = "imagestreams" ,
2020 filename = "php-rhel.json" )
21- self .oc_api .import_is (path = json_raw_file , name = "php" )
21+ self .oc_api .import_is (path = json_raw_file , name = "php" , skip_check = True )
2222 json_raw_file = self .oc_api .get_raw_url_for_json (
2323 container = "mysql-container" , dir = "imagestreams" , filename = "mysql-rhel.json"
2424 )
25- self .oc_api .import_is (path = json_raw_file , name = "mysql" )
25+ self .oc_api .import_is (path = json_raw_file , name = "mysql" , skip_check = True )
2626
2727 def teardown_method (self ):
2828 self .oc_api .delete_project ()
@@ -32,10 +32,10 @@ def test_remote_template_inside_cluster(self):
3232 expected_output = "Welcome to PHP"
3333 if VERSION .startswith ("7.4" ) or VERSION .startswith ("8.0" ):
3434 branch_to_test = "4.X"
35- expected_output = "Welcome to CakePHP 4 "
36- if VERSION .startswith ("8.1" ) or VERSION .startswith ("8.2" ):
35+ expected_output = "Welcome to CakePHP"
36+ if VERSION .startswith ("8.1" ) or VERSION .startswith ("8.2" ) or VERSION . startswith ( "8.3" ) :
3737 branch_to_test = "5.X"
38- expected_output = "Welcome to CakePHP 5 "
38+ expected_output = "Welcome to CakePHP"
3939
4040 template_json = self .oc_api .get_raw_url_for_json (
4141 container = "cakephp-ex" , branch = branch_to_test , dir = "openshift/templates" , filename = "cakephp-mysql-persistent.json"
@@ -46,7 +46,10 @@ def test_remote_template_inside_cluster(self):
4646 f"SOURCE_REPOSITORY_REF={ branch_to_test } " ,
4747 f"PHP_VERSION={ VERSION } " ,
4848 "NAME=cakephp-example" ,
49- "MYSQL_VERSION=8.0-el8"
49+ "MYSQL_VERSION=8.0-el8" ,
50+ "DATABASE_USER=testu" ,
51+ "DATABASE_PASSWORD=testp" ,
52+ "DATABASE_NAME=mysql"
5053 ]
5154 )
5255 assert self .oc_api .is_template_deployed (name_in_template = "cakephp-example" )
0 commit comments