From a94189130b7e12ad957aa77355b61732e8eb343a Mon Sep 17 00:00:00 2001 From: Chris Dent Date: Thu, 10 Nov 2016 18:50:09 +0000 Subject: [PATCH] [placement] increase gabbi coverage of handlers.resource_provider Cover a 409 that should happen when trying to delete a resource provider for which there are allocations. Change-Id: Id07c8dbc334aff94fd079de867f8db6256bc6973 --- .../api/openstack/placement/gabbits/with-allocations.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/nova/tests/functional/api/openstack/placement/gabbits/with-allocations.yaml b/nova/tests/functional/api/openstack/placement/gabbits/with-allocations.yaml index 79f61efd34..85d72bc63d 100644 --- a/nova/tests/functional/api/openstack/placement/gabbits/with-allocations.yaml +++ b/nova/tests/functional/api/openstack/placement/gabbits/with-allocations.yaml @@ -23,3 +23,9 @@ tests: response_json_paths: $.resource_provider_generation: 1 $.usages.DISK_GB: 1024 + +- name: fail to delete resource provider + DELETE: /resource_providers/$ENVIRON['RP_UUID'] + status: 409 + response_strings: + - "Unable to delete resource provider $ENVIRON['RP_UUID']: Resource provider has allocations." -- 2.39.5