Skip to content

Commit 56665cf

Browse files
committed
"exclude" gratia tests on el7+ instead of okskipping them
1 parent 57ff414 commit 56665cf

File tree

3 files changed

+6
-19
lines changed

3 files changed

+6
-19
lines changed

osgtest/tests/test_230_gratia.py

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@
88

99
class TestStartGratia(osgunittest.OSGTestCase):
1010

11+
@core.elrelease(6)
1112
def setUp(self):
12-
self.skip_ok_if(core.el_release() > 6, "Do not run Gratia tests on EL7")
13+
pass
1314

1415
def patternreplace(self, infile_name, pattern, full_line):
1516
"""This helper method loops through the passed in infile line by line.
@@ -168,13 +169,3 @@ def test_09_config_user_vo_map(self):
168169
files.write(core.config['gratia.user-vo-map'],
169170
conFileContents,
170171
owner='root')
171-
172-
def test_10_fix_tomcat_template(self):
173-
# Fix EL7 bug in Gratia template
174-
if core.el_release() == 7:
175-
core.skip_ok_unless_installed(tomcat.pkgname(), 'gratia-service')
176-
core.config['gratia.broken_template'] = '/usr/share/gratia/server.xml.template'
177-
bad_line = r'\s+sSLImplementation=.*'
178-
fixed_line = ' '*15 + 'sslImplementationName="org.glite.security.trustmanager.tomcat.TMSSLImplementation"'
179-
files.replace_regexpr(core.config['gratia.broken_template'], bad_line, fixed_line, owner='gratia')
180-

osgtest/tests/test_540_gratia.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@
77

88
class TestGratia(osgunittest.OSGTestCase):
99

10+
@core.elrelease(6)
1011
def setUp(self):
11-
self.skip_ok_if(core.el_release() > 6, "Do not run Gratia tests on EL7")
12+
pass
1213

1314
def patternreplace(self, infile_name, pattern, full_line, insert_after=False):
1415
"""This method is taken from test_28 - we can consider moving it to core.py module

osgtest/tests/test_800_gratia.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
import osgtest.library.core as core
44
import osgtest.library.files as files
55
import osgtest.library.osgunittest as osgunittest
6-
import osgtest.library.tomcat as tomcat
76

87
class TestStopGratia(osgunittest.OSGTestCase):
98

9+
@core.elrelease(6)
1010
def setUp(self):
11-
self.skip_ok_if(core.el_release() > 6, "Do not run Gratia tests on EL7")
11+
pass
1212

1313
#This test removes the http certificates, if not already removed earlier
1414
def test_01_remove_certs(self):
@@ -153,8 +153,3 @@ def test_12_restore_user_vo_map_file(self):
153153
core.skip_ok_unless_installed('gratia-service')
154154
if files.filesBackedup(core.config['gratia.user-vo-map'], 'root'):
155155
files.restore(core.config['gratia.user-vo-map'], 'root')
156-
157-
def test_13_restore_tomcat_template(self):
158-
if core.el_release() == 7:
159-
core.skip_ok_unless_installed(tomcat.pkgname(), 'gratia-service')
160-
files.restore(core.config['gratia.broken_template'], 'gratia')

0 commit comments

Comments
 (0)