From ed18b1eec19ad3b5dfc034d8efd3c662dc4d8b60 Mon Sep 17 00:00:00 2001 From: Ujjwal Baskota <19787410+ubaskota@users.noreply.github.com> Date: Fri, 15 Nov 2024 20:11:01 -0500 Subject: [PATCH] removes a duplicate unit test --- tests/unit/test_utils.py | 31 ------------------------------- 1 file changed, 31 deletions(-) diff --git a/tests/unit/test_utils.py b/tests/unit/test_utils.py index 0d37ac75a8..6d53861caf 100644 --- a/tests/unit/test_utils.py +++ b/tests/unit/test_utils.py @@ -1810,37 +1810,6 @@ def test_redirects_301(self): ) self.assertIsNone(redirect_response) - def test_redirect_get_opt_in_region(self): - request_dict = { - 'url': 'https://il-central-1.amazonaws.com/foo', - 'context': { - 's3_redirect': { - 'bucket': 'foo', - 'redirected': False, - 'params': {'Bucket': 'foo'}, - }, - 'signing': {}, - }, - } - response = ( - None, - { - 'Error': { - 'Code': 'IllegalLocationConstraintException', - 'Message': 'Bad Request', - }, - 'ResponseMetadata': { - 'HTTPHeaders': {'x-amz-bucket-region': 'eu-central-1'} - }, - }, - ) - - self.operation.name = 'GetObject' - redirect_response = self.redirector.redirect_from_error( - request_dict, response, self.operation - ) - self.assertEqual(redirect_response, 0) - def test_redirects_400_head_bucket(self): request_dict = { 'url': 'https://us-west-2.amazonaws.com/foo',