diff --git a/nova/tests/functional/api/openstack/placement/gabbits/resource-classes.yaml b/nova/tests/functional/api/openstack/placement/gabbits/resource-classes.yaml index 8fd204515984..b3137c57d5eb 100644 --- a/nova/tests/functional/api/openstack/placement/gabbits/resource-classes.yaml +++ b/nova/tests/functional/api/openstack/placement/gabbits/resource-classes.yaml @@ -121,7 +121,7 @@ tests: $.resource_classes[10].name: $ENVIRON['CUSTOM_RES_CLASS'] $.resource_classes[10].links[?rel = "self"].href: /resource_classes/$ENVIRON['CUSTOM_RES_CLASS'] -- name: update standard resource class +- name: update standard resource class bad json PUT: /resource_classes/VCPU request_headers: content-type: application/json @@ -134,6 +134,20 @@ tests: response_json_paths: $.errors[0].title: Bad Request +- name: update standard resource class to custom + desc: standard classes cannot be updated + PUT: /resource_classes/VCPU + request_headers: + content-type: application/json + OpenStack-API-Version: placement 1.6 + data: + name: $ENVIRON['CUSTOM_RES_CLASS'] + status: 400 + response_strings: + - Cannot update standard resource class VCPU + response_json_paths: + $.errors[0].title: Bad Request + - name: update custom resource class to standard resource class name PUT: /resource_classes/$ENVIRON['CUSTOM_RES_CLASS'] request_headers: