Skip to content

Commit

Permalink
Tests: Disable download_pfn if user does not have access to file system
Browse files Browse the repository at this point in the history
  • Loading branch information
voetberg committed Mar 7, 2024
1 parent 7531ef8 commit 737d948
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/test_bin_rucio.py
Original file line number Diff line number Diff line change
Expand Up @@ -688,8 +688,9 @@ def test_download_pfn(self):
replica_pfn = list(self.replica_client.list_replicas([{'scope': self.user, 'name': name}]))[0]['rses'][self.def_rse][0]
cmd = 'rucio -v download --rse {0} --pfn {1} {2}:{3}'.format(self.def_rse, replica_pfn, self.user, name)
exitcode, out, err = execute(cmd)
print(out, err)
assert re.search('Total files.*1', out) is not None

if "DEBUG:user:Access to local destination denied." not in err:
assert re.search('Total files.*1', out) is not None

try:
for i in listdir('data13_hip'):
Expand Down

0 comments on commit 737d948

Please sign in to comment.