Skip to content

Commit d85b929

Browse files
committed
Fix the HTTP config location based on stash-cache version
1 parent 1fa6912 commit d85b929

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

osgtest/tests/test_155_stashcache.py

Lines changed: 3 additions & 2 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

@@ -124,8 +123,10 @@ def setUp(self):
124123
def test_01_configure(self):
125124
if core.PackageVersion('stash-cache') >= '1.1.0':
126125
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:
128128
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,7 +149,7 @@ 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+
(http_cfg_path, "^\s*xrd.protocol.+$"),
152153
(CACHING_PLUGIN_CFG_PATH, "^\s*(ofs.osslib|pss.cachelib|pss.origin).+$"),
153154
]:
154155
files.replace_regexpr(path, regexp, "", owner=NAMESPACE)

0 commit comments

Comments
 (0)