5
5
import osgtest .library .service as service
6
6
import osgtest .library .osgunittest as osgunittest
7
7
8
+
9
+ XROOTD_PORT = 1096 # chosen so it doesn't conflict w/ the stashcache instances
10
+
8
11
XROOTD_CFG_TEXT = """\
9
12
cms.space min 2g 5g
10
13
xrootd.seclib /usr/lib64/libXrdSec-4.so
17
20
%s
18
21
acc.authdb /etc/xrootd/auth_file
19
22
ofs.authorize
23
+ xrd.port %d
20
24
"""
21
25
22
26
AUTHFILE_TEXT = """\
@@ -32,6 +36,7 @@ def test_01_start_xrootd(self):
32
36
core .config ['certs.xrootdcert' ] = '/etc/grid-security/xrd/xrdcert.pem'
33
37
core .config ['certs.xrootdkey' ] = '/etc/grid-security/xrd/xrdkey.pem'
34
38
core .config ['xrootd.config' ] = '/etc/xrootd/xrootd-clustered.cfg'
39
+ core .config ['xrootd.port' ] = XROOTD_PORT
35
40
core .config ['xrootd.gsi' ] = "ON"
36
41
core .state ['xrootd.started-server' ] = False
37
42
core .state ['xrootd.backups-exist' ] = False
@@ -58,7 +63,7 @@ def test_01_start_xrootd(self):
58
63
owner = "xrootd" ,
59
64
chown = (user .pw_uid , user .pw_gid ))
60
65
61
- files .append (core .config ['xrootd.config' ], XROOTD_CFG_TEXT % sec_protocol , owner = 'xrootd' , backup = True )
66
+ files .append (core .config ['xrootd.config' ], XROOTD_CFG_TEXT % ( sec_protocol , core . config [ 'xrootd.port' ]) , owner = 'xrootd' , backup = True )
62
67
authfile = '/etc/xrootd/auth_file'
63
68
files .write (authfile , AUTHFILE_TEXT , owner = "xrootd" , chown = (user .pw_uid , user .pw_gid ))
64
69
0 commit comments