nova/nova/tests/functional/api/openstack/placement
Chris Dent f974e3c356 [placement] avoid case issues microversions in gabbits
If a gabbi file sets a default microversion by setting a header
'OpenStack-API-Version' with a value like 'placement latest' and then
later overrides that in an individual test with a header of
'openstack-api-version' the difference in case can lead to failure.

In the best case the failure is consistent.

In the worst case it can sometimes work, because the header shows up
twice in the request, and the last header wins, order in the headers
and the resulting list dependent on the vagrancies of python ordering.

The solution is to always use the same case, so this change updates
all use to be lowercase, to establish a precedent that future people
will be able to use as an example.

Note that gabbi is case sensitive here in part because of the
implementation but also because it provides the control and possibility
to test exactly this problem.

Change-Id: I1e89e231cf0d46d211d360cda091b33520f85027
Closes-Bug: #1728934
2017-10-31 12:54:17 +00:00
..
gabbits [placement] avoid case issues microversions in gabbits 2017-10-31 12:54:17 +00:00
__init__.py Add initial framing of placement API 2016-07-29 10:31:36 +00:00
fixtures.py Move project_id and user_id to Allocation object 2017-10-25 13:47:26 +01:00
test_placement_api.py Merge "[placement] ensure that allow headers are native strings" 2016-10-07 12:09:26 +00:00
test_report_client.py Use ksa adapter for placement conf & requests 2017-10-28 01:52:21 +00:00