Skip to content

Commit

Permalink
Merge pull request #8498 from kdaily/fix-tests-sync-directory-bucket
Browse files Browse the repository at this point in the history
Fix tests so they do not create local directories
  • Loading branch information
kdaily authored Jan 23, 2024
2 parents cb531ad + c7c4cdf commit e713e5e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/functional/s3/test_sync_command.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,12 +294,12 @@ class TestSyncCommandWithS3Express(BaseS3TransferCommandTest):
prefix = 's3 sync '

def test_incompatible_with_sync_upload(self):
cmdline = '%s localdirectory/ s3://testdirectorybucket--usw2-az1--x-s3/' % self.prefix
cmdline = '%s %s s3://testdirectorybucket--usw2-az1--x-s3/' % (self.prefix, self.files.rootdir)
stderr = self.run_cmd(cmdline, expected_rc=255)[1]
self.assertIn('Cannot use sync command with a directory bucket.', stderr)

def test_incompatible_with_sync_download(self):
cmdline = '%s s3://testdirectorybucket--usw2-az1--x-s3/ localdirectory/' % self.prefix
cmdline = '%s s3://testdirectorybucket--usw2-az1--x-s3/ %s' % (self.prefix, self.files.rootdir)
stderr = self.run_cmd(cmdline, expected_rc=255)[1]
self.assertIn('Cannot use sync command with a directory bucket.', stderr)

Expand Down

0 comments on commit e713e5e

Please sign in to comment.