Skip to content

Commit

Permalink
Merge pull request #1047 from reef-technologies/fix_test_regression
Browse files Browse the repository at this point in the history
fix integration test regression after persistent bucket was introduced
  • Loading branch information
mjurbanski-reef authored Oct 3, 2024
2 parents f768453 + 64b680a commit e8facd7
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions test/integration/test_b2_command_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,7 @@ def test_rm_b2id(b2_tool, persistent_bucket, uploaded_sample_file):

# check that the file is gone
b2_tool.should_succeed(
['ls', f'b2://{persistent_bucket.bucket_name}'],
['ls', f'b2://{persistent_bucket.bucket_name}/{persistent_bucket.subfolder}/'],
expected_pattern='^$',
)

Expand Down Expand Up @@ -3245,16 +3245,13 @@ def test_upload_file__custom_upload_time(b2_tool, persistent_bucket, sample_file
else:
# file_id, action, date, time, size(, replication), name
b2_tool.should_succeed(
['ls', '--long', *b2_uri_args(bucket_name, subfolder)],
'^4_z.* upload {} +{} a'.format(
cut_printable,
len(file_data),
)
['1ls', '--long', *b2_uri_args(bucket_name, subfolder)],
f'^4_z.* upload {cut_printable} +{len(file_data)} {subfolder}/a',
)
# file_id, action, date, time, size(, replication), name
b2_tool.should_succeed(
['ls', '--long', '--replication', *b2_uri_args(bucket_name, subfolder)],
f'^4_z.* upload {cut_printable} +{len(file_data)} - a'
f'^4_z.* upload {cut_printable} +{len(file_data)} - {subfolder}/a'
)


Expand Down

0 comments on commit e8facd7

Please sign in to comment.