3131class TestHelmRubyExTemplate :
3232
3333 def setup_method (self ):
34- package_name = "ruby-rails-application"
34+ package_name = "redhat- ruby-rails-application"
3535 path = test_dir
3636 self .hc_api = HelmChartsAPI (path = path , package_name = package_name , tarball_dir = test_dir , remote = True )
3737 self .hc_api .clone_helm_chart_repo (
@@ -48,41 +48,45 @@ def test_curl_connection(self):
4848 rails_ex_branch = "master"
4949 if VERSION == "3.3" :
5050 rails_ex_branch = VERSION
51- self .hc_api .package_name = "ruby-imagestreams"
51+ self .hc_api .package_name = "redhat- ruby-imagestreams"
5252 assert self .hc_api .helm_package ()
5353 assert self .hc_api .helm_installation ()
54- self .hc_api .package_name = "ruby-rails-application"
54+ self .hc_api .package_name = "redhat- ruby-rails-application"
5555 assert self .hc_api .helm_package ()
56+ pod_name = f"rails_{ VERSION .replace ("." , "" )} "
5657 assert self .hc_api .helm_installation (
5758 values = {
5859 "ruby_version" : f"{ VERSION } { TAG } " ,
5960 "namespace" : self .hc_api .namespace ,
6061 "source_repository_ref" : rails_ex_branch ,
6162 "source_repository_url" : "https://github.com/sclorg/ruby-ex.git" ,
63+ "name" : pod_name ,
6264 }
6365 )
64- assert self .hc_api .is_s2i_pod_running (pod_name_prefix = "ruby-example" )
66+ assert self .hc_api .is_s2i_pod_running (pod_name_prefix = pod_name , timeout = 300 )
6567 assert self .hc_api .test_helm_curl_output (
66- route_name = "ruby-example" ,
68+ route_name = pod_name ,
6769 expected_str = "Welcome to your Ruby application"
6870 )
6971
7072 def test_by_helm_test (self ):
7173 rails_ex_branch = "master"
7274 if VERSION == "3.3" :
7375 rails_ex_branch = VERSION
74- self .hc_api .package_name = "ruby-imagestreams"
76+ self .hc_api .package_name = "redhat- ruby-imagestreams"
7577 assert self .hc_api .helm_package ()
7678 assert self .hc_api .helm_installation ()
77- self .hc_api .package_name = "ruby-rails-application"
79+ self .hc_api .package_name = "redhat- ruby-rails-application"
7880 assert self .hc_api .helm_package ()
81+ pod_name = f"rails_{ VERSION .replace ("." , "" )} "
7982 assert self .hc_api .helm_installation (
8083 values = {
8184 "ruby_version" : f"{ VERSION } { TAG } " ,
8285 "namespace" : self .hc_api .namespace ,
8386 "source_repository_ref" : rails_ex_branch ,
8487 "source_repository_url" : "https://github.com/sclorg/ruby-ex.git" ,
88+ "name" : pod_name ,
8589 }
8690 )
87- assert self .hc_api .is_s2i_pod_running (pod_name_prefix = "ruby-example" )
91+ assert self .hc_api .is_s2i_pod_running (pod_name_prefix = pod_name , timeout = 300 )
8892 assert self .hc_api .test_helm_chart (expected_str = ["Welcome to your Ruby application" ])
0 commit comments