99from http import client
1010from urllib import parse
1111from unittest import mock
12-
1312import pytest
14- # from boto.compat import BytesIO
15- # from boto.utils import compute_md5
1613
1714from waterbutler .providers .s3 import S3Provider
1815from waterbutler .core .path import WaterButlerPath
@@ -151,8 +148,6 @@ def list_upload_chunks_body(parts_metadata):
151148 </ListPartsResult>
152149 '''
153150
154- # md5 = compute_md5(BytesIO(payload))
155- # md5 = compute_md5(payload)
156151 md5 = hashlib .md5 (payload )
157152
158153 headers = {
@@ -169,7 +164,10 @@ def build_folder_params(path):
169164
170165class TestRegionDetection :
171166
172- @pytest .mark .skip ('TODO fix broken s3 provider tests' )
167+ @pytest .mark .skip ('S3 test suite tests are skipped because many of them are incompatible with the recent '
168+ 'migration from the older `boto` library to `boto3`. The underlying mechanisms for request signing'
169+ 'and client interaction have changed significantly, breaking the old test logic. The suite '
170+ 'needs to be refactored to work properly with the current S3 providers implementation.' )
173171 @pytest .mark .asyncio
174172 @pytest .mark .aiohttpretty
175173 @pytest .mark .parametrize ("region_name,expected_region" , [
@@ -196,23 +194,6 @@ async def test_region_host(self, auth, credentials, settings, region_name, expec
196194 aiohttpretty .register_uri ('GET' , region_url , status = 200 , body = location_response (region_name ))
197195 await provider ._check_region ()
198196 assert provider .region == expected_region
199- # provider = S3Provider(auth, credentials, settings)
200- # await provider._check_region()
201- # res = await provider._get_bucket_region()
202- # # region_url = provider.bucket.generate_url(
203- # # 100,
204- # # 'GET',
205- # # query_parameters={'location': ''},
206- # # )
207- # region_url = 'https://s3.amazonaws.com/that-kerning?location=&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=Dont%20dead%2F20250526%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20250526T134653Z&X-Amz-Expires=100&X-Amz-SignedHeaders=host&X-Amz-Signature=80f8426c4fc6d0af68bd3e52a553c9e4d838144b9a70600aff507f70056696f1 '
208- # aiohttpretty.register_uri('GET',
209- # region_url,
210- # status=200,
211- # body=location_response(region_name))
212- #
213- # await provider._check_region()
214- # assert provider.connection.host == host
215-
216197
217198class TestValidatePath :
218199
0 commit comments