summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorTim Burke <tim.burke@gmail.com>2022-08-17 16:58:36 -0700
committerTim Burke <tim.burke@gmail.com>2022-08-18 12:12:35 -0700
commita1d2f31131d79d7c551dbac4fc1e9c4d177d2df5 (patch)
treef307a7a9540ff6ceb23d0c938afed449dcb3d76a /test
parent9eee29d2e46e774eb08acb76c3317a58856f3f71 (diff)
downloadpython-swiftclient-a1d2f31131d79d7c551dbac4fc1e9c4d177d2df5.tar.gz
Enable retry_on_ratelimit by default
UpgradeImpact ============= The Connection class now enables retry_on_ratelimit by default. If you need to return to the old behavior, explicitly pass retry_on_ratelimit=False as a keyword arg. The SwiftService class will now enables the retry_on_ratelimit option by default. If you need to return to the old behavior, explicitly set it to false in your options dict. Change-Id: I3221fda84f0b8031c50128aa600e2c19deb5b102
Diffstat (limited to 'test')
-rw-r--r--test/unit/test_swiftclient.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/unit/test_swiftclient.py b/test/unit/test_swiftclient.py
index ad2af50..436245d 100644
--- a/test/unit/test_swiftclient.py
+++ b/test/unit/test_swiftclient.py
@@ -2149,7 +2149,8 @@ class TestConnection(MockHttpTest):
c.http_connection = self.fake_http_connection(
200, 498,
headers=auth_resp_headers)
- conn = c.Connection('http://www.test.com/auth/v1.0', 'asdf', 'asdf')
+ conn = c.Connection('http://www.test.com/auth/v1.0', 'asdf', 'asdf',
+ retry_on_ratelimit=False)
with self.assertRaises(c.ClientException) as exc_context:
conn.head_account()
self.assertIn('Account HEAD failed', str(exc_context.exception))