Skip to content

s3: test GetObject with PartNumber and SSE-C encryption#591

Merged
cbodley merged 1 commit intoceph:masterfrom
cbodley:wip-68292
Oct 4, 2024
Merged

s3: test GetObject with PartNumber and SSE-C encryption#591
cbodley merged 1 commit intoceph:masterfrom
cbodley:wip-68292

Conversation

@cbodley
Copy link
Copy Markdown
Contributor

@cbodley cbodley commented Sep 27, 2024

test case for ceph/ceph#60019

copies the existing test_multipart_get_part() test but replaces _multipart_upload() with _multipart_upload_enc()

assert response['ContentLength'] == size
# compare contents
for chunk in response['Body'].iter_chunks():
assert chunk.decode() == data[0:len(chunk)]
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

when this test runs against rgw without the fix from ceph/ceph#60019, it fails here with:

UnicodeDecodeError: 'utf-8' codec can't decode byte 0x84 in position 4: invalid start byte

because it's getting the encrypted bytes

Signed-off-by: Casey Bodley <cbodley@redhat.com>
@cbodley
Copy link
Copy Markdown
Contributor Author

cbodley commented Oct 7, 2024

cherry-picked to ceph-master

@cbodley cbodley deleted the wip-68292 branch October 7, 2024 13:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant