31
31
class TestHelmRubyExTemplate :
32
32
33
33
def setup_method (self ):
34
- package_name = "ruby-rails-application"
34
+ package_name = "redhat- ruby-rails-application"
35
35
path = test_dir
36
36
self .hc_api = HelmChartsAPI (path = path , package_name = package_name , tarball_dir = test_dir , remote = True )
37
37
self .hc_api .clone_helm_chart_repo (
@@ -48,41 +48,45 @@ def test_curl_connection(self):
48
48
rails_ex_branch = "master"
49
49
if VERSION == "3.3" :
50
50
rails_ex_branch = VERSION
51
- self .hc_api .package_name = "ruby-imagestreams"
51
+ self .hc_api .package_name = "redhat- ruby-imagestreams"
52
52
assert self .hc_api .helm_package ()
53
53
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"
55
55
assert self .hc_api .helm_package ()
56
+ pod_name = f"rails_{ VERSION .replace ("." , "" )} "
56
57
assert self .hc_api .helm_installation (
57
58
values = {
58
59
"ruby_version" : f"{ VERSION } { TAG } " ,
59
60
"namespace" : self .hc_api .namespace ,
60
61
"source_repository_ref" : rails_ex_branch ,
61
62
"source_repository_url" : "https://github.com/sclorg/ruby-ex.git" ,
63
+ "name" : pod_name ,
62
64
}
63
65
)
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 )
65
67
assert self .hc_api .test_helm_curl_output (
66
- route_name = "ruby-example" ,
68
+ route_name = pod_name ,
67
69
expected_str = "Welcome to your Ruby application"
68
70
)
69
71
70
72
def test_by_helm_test (self ):
71
73
rails_ex_branch = "master"
72
74
if VERSION == "3.3" :
73
75
rails_ex_branch = VERSION
74
- self .hc_api .package_name = "ruby-imagestreams"
76
+ self .hc_api .package_name = "redhat- ruby-imagestreams"
75
77
assert self .hc_api .helm_package ()
76
78
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"
78
80
assert self .hc_api .helm_package ()
81
+ pod_name = f"rails_{ VERSION .replace ("." , "" )} "
79
82
assert self .hc_api .helm_installation (
80
83
values = {
81
84
"ruby_version" : f"{ VERSION } { TAG } " ,
82
85
"namespace" : self .hc_api .namespace ,
83
86
"source_repository_ref" : rails_ex_branch ,
84
87
"source_repository_url" : "https://github.com/sclorg/ruby-ex.git" ,
88
+ "name" : pod_name ,
85
89
}
86
90
)
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 )
88
92
assert self .hc_api .test_helm_chart (expected_str = ["Welcome to your Ruby application" ])
0 commit comments