Skip to content

Commit

Permalink
removes a duplicate unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
ubaskota committed Nov 16, 2024
1 parent 4ed5478 commit ed18b1e
Showing 1 changed file with 0 additions and 31 deletions.
31 changes: 0 additions & 31 deletions tests/unit/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit ed18b1e

Please sign in to comment.