@@ -36,6 +36,7 @@ def test_01_start_xrootd(self):
36
36
core .config ['certs.xrootdcert' ] = '/etc/grid-security/xrd/xrdcert.pem'
37
37
core .config ['certs.xrootdkey' ] = '/etc/grid-security/xrd/xrdkey.pem'
38
38
core .config ['xrootd.config' ] = '/etc/xrootd/xrootd-clustered.cfg'
39
+ core .config ['xrootd.config-extra' ] = '/etc/xrootd/config.d/99-osg-test.cfg'
39
40
core .config ['xrootd.port' ] = XROOTD_PORT
40
41
core .config ['xrootd.multiuser' ] = False
41
42
core .state ['xrootd.started-server' ] = False
@@ -62,9 +63,14 @@ def test_01_start_xrootd(self):
62
63
owner = "xrootd" ,
63
64
chown = (user .pw_uid , user .pw_gid ))
64
65
65
- files .append (core .config ['xrootd.config' ],
66
- XROOTD_CFG_TEXT % (sec_protocol , core .config ['xrootd.port' ]),
67
- owner = 'xrootd' , backup = True )
66
+ if core .PackageVersion ('xrootd' ) < '1:4.9.0' :
67
+ files .append (core .config ['xrootd.config' ],
68
+ XROOTD_CFG_TEXT % (sec_protocol , core .config ['xrootd.port' ]),
69
+ owner = 'xrootd' , backup = True )
70
+ else :
71
+ files .write (core .config ['xrootd.config-extra' ],
72
+ XROOTD_CFG_TEXT % (sec_protocol , core .config ['xrootd.port' ]),
73
+ owner = 'xrootd' , backup = True , chmod = 0o644 )
68
74
authfile = '/etc/xrootd/auth_file'
69
75
files .write (authfile , AUTHFILE_TEXT , owner = "xrootd" , chown = (user .pw_uid , user .pw_gid ))
70
76
@@ -73,12 +79,18 @@ def test_01_start_xrootd(self):
73
79
def test_02_configure_hdfs (self ):
74
80
core .skip_ok_unless_installed ('xrootd-hdfs' )
75
81
hdfs_config = "ofs.osslib /usr/lib64/libXrdHdfs.so"
76
- files .append (core .config ['xrootd.config' ], hdfs_config , backup = False )
82
+ if core .PackageVersion ('xrootd' ) < '1:4.9.0' :
83
+ files .append (core .config ['xrootd.config' ], hdfs_config , backup = False )
84
+ else :
85
+ files .append (core .config ['xrootd.config-extra' ], hdfs_config , backup = False )
77
86
78
87
def test_03_configure_multiuser (self ):
79
88
core .skip_ok_unless_installed ('xrootd-multiuser' ,'globus-proxy-utils' , by_dependency = True )
80
89
xrootd_multiuser_conf = "xrootd.fslib libXrdMultiuser.so default"
81
- files .append (core .config ['xrootd.config' ], xrootd_multiuser_conf , owner = 'xrootd' , backup = False )
90
+ if core .PackageVersion ('xrootd' ) < '1:4.9.0' :
91
+ files .append (core .config ['xrootd.config' ], xrootd_multiuser_conf , owner = 'xrootd' , backup = False )
92
+ else :
93
+ files .append (core .config ['xrootd.config-extra' ], xrootd_multiuser_conf , owner = 'xrootd' , backup = False )
82
94
core .config ['xrootd.multiuser' ] = True
83
95
84
96
def test_04_start_xrootd (self ):
0 commit comments