Skip to content

Commit ab8a9a5

Browse files
authored
Merge pull request #178 from brianhlin/SOFTWARE-3783.xcache11
Fix tests for XCache 1.1 (SOFTWARE-3561, SOFTWARE-3783)
2 parents d7695df + 1670ee4 commit ab8a9a5

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

osgtest/tests/test_155_stashcache.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,6 @@
9696
"""
9797

9898
XROOTD_ORIGIN_CFG_PATH = "/etc/xrootd/xrootd-stash-origin.cfg"
99-
HTTP_CFG_PATH = "/etc/xrootd/config.d/40-osg-http.cfg"
10099

101100
NAMESPACE = "stashcache"
102101

@@ -123,9 +122,11 @@ def setUp(self):
123122

124123
def test_01_configure(self):
125124
if core.PackageVersion('stash-cache') >= '1.1.0':
126-
CACHING_PLUGIN_CFG_PATH = "/etc/xrootd/config.d/40-stash-cache-plugin.cfg"
125+
caching_plugin_cfg_path = "/etc/xrootd/config.d/40-stash-cache-plugin.cfg"
126+
http_cfg_path = "/etc/xrootd/config.d/50-osg-http.cfg"
127127
else:
128-
CACHING_PLUGIN_CFG_PATH = "/etc/xrootd/config.d/40-osg-caching-plugin.cfg"
128+
caching_plugin_cfg_path = "/etc/xrootd/config.d/40-osg-caching-plugin.cfg"
129+
http_cfg_path = "/etc/xrootd/config.d/40-osg-http.cfg"
129130

130131
for key, val in PARAMS.items():
131132
setcfg(key, val)
@@ -148,8 +149,8 @@ def test_01_configure(self):
148149
# Delete the lines we can't override
149150
for path, regexp in [
150151
(XROOTD_ORIGIN_CFG_PATH, "^\s*all.manager.+$"),
151-
(HTTP_CFG_PATH, "^\s*xrd.protocol.+$"),
152-
(CACHING_PLUGIN_CFG_PATH, "^\s*(ofs.osslib|pss.cachelib|pss.origin).+$"),
152+
(http_cfg_path, "^\s*xrd.protocol.+$"),
153+
(caching_plugin_cfg_path, "^\s*(ofs.osslib|pss.cachelib|pss.origin).+$"),
153154
]:
154155
files.replace_regexpr(path, regexp, "", owner=NAMESPACE)
155156
filelist.append(path)

0 commit comments

Comments
 (0)