Use valid UUID in the placement gabbits
It seems gabbi does not resolve yaml refs in the URL part of a REST call. This causes that the tests in ensure-consumer.yaml uses invalid consumer id '*consumer_id' This patches replace the *consumer_id with a fixture ref that works. Change-Id: I0576f282b1801340db6827fb4c9520a0d48ad7f0 Related-Bug: #1780238
This commit is contained in:
parent
bf8206bfe3
commit
70f364fdbb
@ -12,11 +12,10 @@ defaults:
|
||||
|
||||
vars:
|
||||
- &default_incomplete_id 00000000-0000-0000-0000-0000000000000
|
||||
- &consumer_id fbad1a87-c341-4ac0-be49-777b21ce1b7b
|
||||
tests:
|
||||
|
||||
- name: put an allocation without project/user (1.7)
|
||||
PUT: /allocations/*consumer_id
|
||||
PUT: /allocations/$ENVIRON['CONSUMER_UUID']
|
||||
request_headers:
|
||||
content-type: application/json
|
||||
openstack-api-version: placement 1.7
|
||||
@ -34,7 +33,7 @@ tests:
|
||||
# allocation information at a microversion that shows project/user information
|
||||
# (1.12+)
|
||||
- name: get with 1.12 microversion and check project and user are filled
|
||||
GET: /allocations/*consumer_id
|
||||
GET: /allocations/$ENVIRON['CONSUMER_UUID']
|
||||
request_headers:
|
||||
openstack-api-version: placement 1.12
|
||||
response_json_paths:
|
||||
|
Loading…
x
Reference in New Issue
Block a user