Skip to content

Commit d6f633e

Browse files
committed
Support testing nginx-container on shared_cluster
Signed-off-by: Petr "Stone" Hracek <[email protected]>
1 parent 3b98367 commit d6f633e

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

test/test_nginx_imagestream_s2i.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class TestNginxImagestreamS2I:
2525

2626
def setup_method(self):
2727
self.template_name = get_service_image(IMAGE_NAME)
28-
self.oc_api = OpenShiftAPI(pod_name_prefix=self.template_name, version=VERSION)
28+
self.oc_api = OpenShiftAPI(pod_name_prefix=self.template_name, version=VERSION, shared_cluster=True)
2929

3030
def teardown_method(self):
3131
self.oc_api.delete_project()

test/test_nginx_local_example.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class TestNginxLocalEx:
1919

2020
def setup_method(self):
2121
self.template_name = get_service_image(IMAGE_NAME)
22-
self.oc_api = OpenShiftAPI(pod_name_prefix=self.template_name, version=VERSION)
22+
self.oc_api = OpenShiftAPI(pod_name_prefix=self.template_name, version=VERSION, shared_cluster=True)
2323

2424
def teardown_method(self):
2525
self.oc_api.delete_project()

test/test_nginx_remote_example.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class TestNginxLocalEx:
2020

2121
def setup_method(self):
2222
self.template_name = get_service_image(IMAGE_NAME)
23-
self.oc_api = OpenShiftAPI(pod_name_prefix=self.template_name, version=VERSION)
23+
self.oc_api = OpenShiftAPI(pod_name_prefix=self.template_name, version=VERSION, shared_cluster=True)
2424

2525
def teardown_method(self):
2626
self.oc_api.delete_project()

test/test_nginx_template_example_app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
class TestNginxDeployTemplate:
2323

2424
def setup_method(self):
25-
self.oc_api = OpenShiftAPI(pod_name_prefix="nginx-testing", version=VERSION)
25+
self.oc_api = OpenShiftAPI(pod_name_prefix="nginx-testing", version=VERSION, shared_cluster=True)
2626

2727
def teardown_method(self):
2828
self.oc_api.delete_project()

0 commit comments

Comments
 (0)