Skip to content

Commit 2fe5555

Browse files
committed
Fix PyTest test suite to not use obsoleted names
Signed-off-by: Petr "Stone" Hracek <[email protected]>
1 parent 87b3707 commit 2fe5555

File tree

4 files changed

+1
-10
lines changed

4 files changed

+1
-10
lines changed

test/test_httpd_ex_template.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717

1818
VERSION = os.getenv("VERSION")
1919
IMAGE_NAME = os.getenv("IMAGE_NAME")
20-
BRANCH_TO_TEST = BRANCH_TO_MASTER
2120

2221

2322
class TestHTTPDExExampleRepo:
@@ -32,7 +31,7 @@ def teardown_method(self):
3231
def test_httpd_ex_template_inside_cluster(self):
3332
assert self.oc_api.deploy_s2i_app(
3433
image_name=IMAGE_NAME,
35-
app=f"https://github.com/sclorg/httpd-ex#{BRANCH_TO_TEST}",
34+
app=f"https://github.com/sclorg/httpd-ex#{BRANCH_TO_MASTER}",
3635
context="."
3736
)
3837
assert self.oc_api.is_template_deployed(name_in_template=self.template_name)

test/test_httpd_imagestream_s2i.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,11 @@
66
from container_ci_suite.openshift import OpenShiftAPI
77
from container_ci_suite.utils import get_service_image, check_variables
88

9-
from constants import BRANCH_TO_MASTER
10-
119

1210
if not check_variables():
1311
print("At least one variable from IMAGE_NAME, OS, SINGLE_VERSION is missing.")
1412
sys.exit(1)
1513

16-
BRANCH_TO_TEST = BRANCH_TO_MASTER
1714
IMAGE_NAME = os.getenv("IMAGE_NAME")
1815
OS = os.getenv("OS")
1916
VERSION = os.getenv("VERSION")

test/test_httpd_integration.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,12 @@
66
from container_ci_suite.openshift import OpenShiftAPI
77
from container_ci_suite.utils import get_service_image, check_variables
88

9-
from constants import BRANCH_TO_MASTER
10-
11-
129
if not check_variables():
1310
print("At least one variable from IMAGE_NAME, OS, VERSION is missing.")
1411
sys.exit(1)
1512

1613
VERSION = os.getenv("VERSION")
1714
IMAGE_NAME = os.getenv("IMAGE_NAME")
18-
BRANCH_TO_TEST = BRANCH_TO_MASTER
1915

2016

2117
class TestHTTPDIntegrationTemplate:

test/test_httpd_shared_helm_template.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212

1313
VERSION = os.getenv("VERSION")
1414
IMAGE_NAME = os.getenv("IMAGE_NAME")
15-
BRANCH_TO_TEST = BRANCH_TO_MASTER
1615
OS = os.getenv("OS")
1716

1817
TAG = TAGS.get(OS)

0 commit comments

Comments
 (0)