Tolerate swiftclient *not* mutatinng args

Change-Id: If82fe9e1d2da8c5122881f34dfbaaa7944c66265
Related-Change: Ia1638c216eff9db6fbe416bc0570c27cfdcfe730
This commit is contained in:
Tim Burke 2017-08-25 12:26:43 -07:00
parent 87340e5f29
commit 00ca1ce6fe

View File

@ -93,7 +93,8 @@ class TestReconstructorRevert(ECProbeTest):
headers=headers)
client.post_object(self.url, self.token, self.container_name,
self.object_name, headers=headers_post)
del headers_post['X-Auth-Token'] # WTF, where did this come from?
# (Some versions of?) swiftclient will mutate the headers dict on post
headers_post.pop('X-Auth-Token', None)
# these primaries can't serve the data any more, we expect 507
# here and not 404 because we're using mount_check to kill nodes