summaryrefslogtreecommitdiff
path: root/tests/utils.py
diff options
context:
space:
mode:
authorJohn Dickinson <me@not.mn>2014-02-13 23:33:01 -0800
committerJohn Dickinson <me@not.mn>2014-02-13 23:37:08 -0800
commit79f189a59352ee5b11a584924f5066b511b482b0 (patch)
tree4c2d8387ed24b0ab3fc9c58aedaadf83dcc27958 /tests/utils.py
parent19d7e1812a99d73785146667ae2f3a7156f06898 (diff)
downloadpython-swiftclient-2.0.1.tar.gz
Fix --insecure option on auth2.0.1
Change-Id: Ibe76d98d6075b84cbdb370b48f3498ab848142ad
Diffstat (limited to 'tests/utils.py')
-rw-r--r--tests/utils.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/utils.py b/tests/utils.py
index ff2834a..dcaca9e 100644
--- a/tests/utils.py
+++ b/tests/utils.py
@@ -100,6 +100,10 @@ def fake_http_connect(*code_iter, **kwargs):
headers['content-length'] = '4'
if 'headers' in kwargs:
headers.update(kwargs['headers'])
+ if 'auth_v1' in kwargs:
+ headers.update(
+ {'x-storage-url': 'storageURL',
+ 'x-auth-token': 'someauthtoken'})
return headers.items()
def read(self, amt=None):