96
96
"""
97
97
98
98
XROOTD_ORIGIN_CFG_PATH = "/etc/xrootd/xrootd-stash-origin.cfg"
99
- HTTP_CFG_PATH = "/etc/xrootd/config.d/40-osg-http.cfg"
100
99
101
100
NAMESPACE = "stashcache"
102
101
@@ -123,9 +122,11 @@ def setUp(self):
123
122
124
123
def test_01_configure (self ):
125
124
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"
127
127
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"
129
130
130
131
for key , val in PARAMS .items ():
131
132
setcfg (key , val )
@@ -148,8 +149,8 @@ def test_01_configure(self):
148
149
# Delete the lines we can't override
149
150
for path , regexp in [
150
151
(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).+$" ),
153
154
]:
154
155
files .replace_regexpr (path , regexp , "" , owner = NAMESPACE )
155
156
filelist .append (path )
0 commit comments