Skip to content

Commit

Permalink
[irods#8084] remove igetwild test
Browse files Browse the repository at this point in the history
  • Loading branch information
trel authored and alanking committed Dec 12, 2024
1 parent 62c5948 commit f6d2599
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions scripts/irods/test/test_icommands_file_operations.py
Original file line number Diff line number Diff line change
Expand Up @@ -864,29 +864,6 @@ def acSetRescSchemeForCreate(rule_args, callback, rei):
finally:
IrodsController().reload_configuration()

def test_igetwild_with_semicolon_in_filename(self):

localfile = 'thelocalfile.txt'
localpath = lib.create_local_testfile(localfile)
badfiles = ['; touch oops', '\\;\\ touch\\ oops']
counter = 0
for badname in badfiles:
counter = counter + 1
print("====================[{0}of{1}]=[{2}]===================".format(counter, len(badfiles), badname))
badpath = lib.create_local_testfile(badname)
os.unlink(badpath)
self.user0.assert_icommand(['imkdir', 'subdir'])
self.user0.assert_icommand(['ils', '-rL', 'subdir/'+badname], 'STDERR_SINGLELINE', 'does not exist')
self.user0.assert_icommand(['iput', localfile, 'subdir/'+badname])
self.user0.assert_icommand(['ils', '-rL'], 'STDOUT_SINGLELINE', 'subdir/'+badname)
self.user0.assert_icommand(['ils', '-L', 'oops'], 'STDERR_SINGLELINE', 'does not exist')
self.user0.assert_icommand(['igetwild', self.user0.session_collection+'/subdir', 'oops', 'e'], 'STDOUT_SINGLELINE', badname)
assert os.path.isfile(badpath)
assert not os.path.isfile(os.path.join(self.user0.session_collection, 'oops'))
self.user0.assert_icommand(['irm', '-rf', 'subdir'])
os.unlink(badpath)
os.unlink(localpath)

def test_irm_colloprstat__3572(self):
collection_to_delete = 'collection_to_delete'
self.admin.assert_icommand(['imkdir', collection_to_delete])
Expand Down

0 comments on commit f6d2599

Please sign in to comment.