From 9012a09328077c5aca1992ff331b2011a095315a Mon Sep 17 00:00:00 2001 From: Balazs Gibizer Date: Thu, 5 Jul 2018 14:00:34 +0200 Subject: [PATCH] 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 --- .../api/openstack/placement/gabbits/ensure-consumer.yaml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/nova/tests/functional/api/openstack/placement/gabbits/ensure-consumer.yaml b/nova/tests/functional/api/openstack/placement/gabbits/ensure-consumer.yaml index 0a27fe40c2ab..c9504d7d6969 100644 --- a/nova/tests/functional/api/openstack/placement/gabbits/ensure-consumer.yaml +++ b/nova/tests/functional/api/openstack/placement/gabbits/ensure-consumer.yaml @@ -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: