summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZuul <zuul@review.openstack.org>2019-02-19 20:28:32 +0000
committerGerrit Code Review <review@openstack.org>2019-02-19 20:28:32 +0000
commitbc6091423dead9843e70f5139ba488da8ea07703 (patch)
treebc8666c527479cf31a2213b749af794d35323fe7
parent3cb10395ac3d5316d632b1c7cb7570477d8b6232 (diff)
parent94d83e40e155b4c770b6e2b00043c85d5ebc827d (diff)
Merge "Fix fake DELETE in PlacementFixture"HEADmaster
-rw-r--r--nova/tests/functional/fixtures.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/nova/tests/functional/fixtures.py b/nova/tests/functional/fixtures.py
index 5c4305d..419deba 100644
--- a/nova/tests/functional/fixtures.py
+++ b/nova/tests/functional/fixtures.py
@@ -144,7 +144,9 @@ class PlacementFixture(placement_fixtures.PlacementFixture):
144 # TODO(sbauza): The current placement NoAuthMiddleware returns a 401 144 # TODO(sbauza): The current placement NoAuthMiddleware returns a 401
145 # in case a token is not provided. We should change that by creating 145 # in case a token is not provided. We should change that by creating
146 # a fake token so we could remove adding the header below. 146 # a fake token so we could remove adding the header below.
147 headers = {'x-auth-token': self.token}
148 self._update_headers_with_version(headers, **kwargs)
147 return self._client.delete( 149 return self._client.delete(
148 url, 150 url,
149 endpoint_override=self.endpoint, 151 endpoint_override=self.endpoint,
150 headers={'x-auth-token': self.token}) 152 headers=headers)