[placement] Add sending global request ID in put (1)
Add the 'X-Openstack-Request-Id' header in the request of PUT in SchedulerReportClient. When updating inventories, deleting inventories (microversion 1.5 not available) and ensuring a resource class, the header is added. Subsequent patches will add the header in the other cases. Change-Id: I02b9f2ef1cbd16d5bf9c4084bc652e94875a6c2a Partial-Bug: #1734625
This commit is contained in:
parent
1ee5cbad39
commit
3148892be9
@ -238,6 +238,9 @@ class SchedulerReportClientTests(test.TestCase):
|
||||
}
|
||||
self.client.post('/resource_providers', payload,
|
||||
global_request_id=global_request_id)
|
||||
self.client.put('/resource_providers/%s' % self.compute_uuid,
|
||||
payload,
|
||||
global_request_id=global_request_id)
|
||||
|
||||
def test_get_provider_tree_with_nested_and_aggregates(self):
|
||||
"""A more in-depth test of get_provider_tree_and_ensure_root with
|
||||
|
Loading…
Reference in New Issue
Block a user