Merge "Add error msg validation for BadDigest"

This commit is contained in:
Zuul 2024-11-25 23:24:25 +00:00 committed by Gerrit Code Review
commit 447079399d

View File

@ -1699,6 +1699,9 @@ class TestS3ApiMultiUpload(BaseS3ApiMultiUpload, S3ApiTestCase):
status, headers, body = self.call_s3api(req)
self.assertEqual('400 Bad Request', status)
self.assertEqual(self._get_error_code(body), 'BadDigest')
self.assertEqual(self._get_error_message(body),
'The Content-MD5 you specified did '
'not match what we received.')
def test_object_multipart_upload_invalid_sha256(self):
bad_sha = hashlib.sha256(