Skip to content

Commit 333f493

Browse files
author
efajardo
committed
Adding the configuration to use xrootd multiuser
1 parent 4d18182 commit 333f493

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

osgtest/tests/test_150_xrootd.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ def test_01_start_xrootd(self):
3333
core.config['certs.xrootdkey'] = '/etc/grid-security/xrd/xrdkey.pem'
3434
core.config['xrootd.config'] = '/etc/xrootd/xrootd-clustered.cfg'
3535
core.config['xrootd.gsi'] = "ON"
36+
core.config['xrootd.multiuser'] = "ON"
3637
core.state['xrootd.started-server'] = False
3738
core.state['xrootd.backups-exist'] = False
3839

@@ -69,7 +70,15 @@ def test_02_configure_hdfs(self):
6970
hdfs_config = "ofs.osslib /usr/lib64/libXrdHdfs.so"
7071
files.append(core.config['xrootd.config'], hdfs_config, backup=False)
7172

72-
def test_03_start_xrootd(self):
73+
def test_03_configure_multiuser(self):
74+
core.skip_ok_unless_installed('xrootd-multiuser')
75+
core.config['xrootd.multiuser'] = "ON"
76+
# We need both multiuser and gsi part to test multiuser
77+
if core.config['xrootd.multiuser'] == "ON" && core.config['xrootd.gsi'] == "ON":
78+
xrootd_multiuser_conf = "xrootd.fslib libXrdMultiuser.so default"
79+
files.append(core.config['xrootd.config'], xrootd_multiuser_conf, owner='xrootd', backup=True)
80+
81+
def test_04_start_xrootd(self):
7382
core.skip_ok_unless_installed('xrootd', by_dependency=True)
7483
if core.el_release() < 7:
7584
core.config['xrootd_service'] = "xrootd"

0 commit comments

Comments
 (0)