31
31
class TestImagestreamsQuickstart :
32
32
33
33
def setup_method (self ):
34
- self .oc_api = OpenShiftAPI (pod_name_prefix = "nodejs-example" , version = VERSION )
34
+ self .oc_api = OpenShiftAPI (pod_name_prefix = "nodejs-example" , version = VERSION , shared_cluster = True )
35
35
assert self .oc_api .upload_image (DEPLOYED_PGSQL_IMAGE , PGSQL_IMAGE_TAG )
36
36
37
37
def teardown_method (self ):
@@ -49,21 +49,23 @@ def test_nodejs_template_inside_cluster(self, template):
49
49
if "minimal" in VERSION :
50
50
new_version = VERSION .replace ("-minimal" , "" )
51
51
service_name = "nodejs-example"
52
+ if os == "rhel10" :
53
+ pytest .skip ("Do NOT test on RHEL10 yet." )
52
54
template_url = self .oc_api .get_raw_url_for_json (
53
55
container = "nodejs-ex" , dir = "openshift/templates" , filename = template , branch = "master"
54
56
)
55
57
openshift_args = [
56
58
f"SOURCE_REPOSITORY_URL=https://github.com/sclorg/nodejs-ex.git" ,
57
59
f"SOURCE_REPOSITORY_REF=master" ,
58
- f"NODEJS_VERSION={ new_version } " ,
60
+ f"NODEJS_VERSION={ VERSION } " ,
59
61
f"NAME={ service_name } "
60
62
]
61
63
if template != "nodejs.json" :
62
64
openshift_args = [
63
65
f"SOURCE_REPOSITORY_URL=https://github.com/sclorg/nodejs-ex.git" ,
64
66
f"SOURCE_REPOSITORY_REF=master" ,
65
67
f"POSTGRESQL_VERSION={ IMAGE_TAG } " ,
66
- f"NODEJS_VERSION={ new_version } " ,
68
+ f"NODEJS_VERSION={ VERSION } " ,
67
69
f"NAME={ service_name } " ,
68
70
f"DATABASE_USER=testu" ,
69
71
f"DATABASE_PASSWORD=testpwd" ,
@@ -76,7 +78,7 @@ def test_nodejs_template_inside_cluster(self, template):
76
78
name_in_template = "nodejs" ,
77
79
openshift_args = openshift_args
78
80
)
79
- assert self .oc_api .template_deployed (name_in_template = service_name )
81
+ assert self .oc_api .is_template_deployed (name_in_template = service_name )
80
82
assert self .oc_api .check_response_inside_cluster (
81
83
name_in_template = service_name , expected_output = "Node.js Crud Application"
82
84
)
0 commit comments