mirror of
https://github.com/ceph/s3-tests.git
synced 2024-11-21 11:51:06 +00:00
boto2: fix byte vs. string comparison in verify_object
the storage class tests were failing on comparisons between the input data and output data: AssertionError: assert 'oFbdZvtRj' == b'oFbdZvtRj' convert the byte representation back to string for comparison Signed-off-by: Casey Bodley <cbodley@redhat.com>
This commit is contained in:
parent
69f867ff23
commit
3023080509
1 changed files with 1 additions and 1 deletions
|
@ -290,7 +290,7 @@ def verify_object(bucket, k, data=None, storage_class=None):
|
|||
if data:
|
||||
read_data = k.get_contents_as_string()
|
||||
|
||||
equal = data == read_data # avoid spamming log if data not equal
|
||||
equal = data == read_data.decode() # avoid spamming log if data not equal
|
||||
assert equal == True
|
||||
|
||||
def copy_object_storage_class(src_bucket, src_key, dest_bucket, dest_key, storage_class):
|
||||
|
|
Loading…
Reference in a new issue