]> xenbits.xensource.com Git - osstest/openstack-nova.git/commitdiff
[placement] increase gabbi coverage of handlers.resource_provider
authorChris Dent <cdent@anticdent.org>
Thu, 10 Nov 2016 18:50:09 +0000 (18:50 +0000)
committerChris Dent <cdent@anticdent.org>
Tue, 22 Nov 2016 15:34:51 +0000 (15:34 +0000)
Cover a 409 that should happen when trying to delete a resource
provider for which there are allocations.

Change-Id: Id07c8dbc334aff94fd079de867f8db6256bc6973

nova/tests/functional/api/openstack/placement/gabbits/with-allocations.yaml

index 79f61efd341c7e9156918ca689040d1357d9402e..85d72bc63d19d6eb29ba22f5558750c672f0e6c6 100644 (file)
@@ -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."