|
41 | 41 | xrd.protocol http:%d /usr/lib64/libXrdHttp-4.so
|
42 | 42 | fi
|
43 | 43 | http.exthandler xrdmacaroons libXrdMacaroons.so
|
44 |
| -macaroons.secretkey /etc/xrootd/macaroon-secret |
45 | 44 | all.sitename VDTTESTSITE
|
46 | 45 |
|
47 | 46 | """
|
@@ -81,11 +80,20 @@ def test_01_configure_xrootd(self):
|
81 | 80 | owner='xrootd', backup=True, chown=(user.pw_uid, user.pw_gid))
|
82 | 81 | core.state['xrootd.tpc.backups-exist'] = True
|
83 | 82 |
|
84 |
| - def test_02_create_secret_key(self): |
| 83 | + def test_02_create_secrets(self): |
85 | 84 | core.skip_ok_unless_installed('xrootd', 'xrootd-scitokens', by_dependency=True)
|
86 |
| - core.config['xrootd.tpc.macaroon-secret'] = '/etc/xrootd/macaroon-secret' |
| 85 | + core.config['xrootd.tpc.macaroon-secret-1'] = '/etc/xrootd/macaroon-secret-1' |
| 86 | + core.config['xrootd.tpc.macaroon-secret-2'] = '/etc/xrootd/macaroon-secret-2' |
87 | 87 | core.check_system(["openssl", "rand", "-base64", "-out",
|
88 |
| - core.config['xrootd.tpc.macaroon-secret'], "64"], "Creating simmetric key") |
| 88 | + core.config['xrootd.tpc.macaroon-secret-1'], "64"], "Creating simmetric key") |
| 89 | + core.check_system(["openssl", "rand", "-base64", "-out", |
| 90 | + core.config['xrootd.tpc.macaroon-secret-2'], "64"], "Creating simmetric key") |
| 91 | + files.append(core.config['xrootd.tpc.config-1'], |
| 92 | + "macaroons.secretkey %s"%(core.config['xrootd.tpc.macaroon-secret-1']), |
| 93 | + owner='xrootd', backup=False) |
| 94 | + files.append(core.config['xrootd.tpc.config-2'], |
| 95 | + "macaroons.secretkey %s"%(core.config['xrootd.tpc.macaroon-secret-2']), |
| 96 | + owner='xrootd', backup=False) |
89 | 97 |
|
90 | 98 |
|
91 | 99 | def test_03_start_xrootd(self):
|
|
0 commit comments