Regression test for bug 1779635

This patch adds a test that shows that placement allows setting the
parent of an RP to itself.

Change-Id: Ie81de7bdd43bfdb2ba48996f79d41efc2d70c1cd
Related-Bug: #1779635
This commit is contained in:
Balazs Gibizer 2018-07-02 12:13:56 +02:00
parent 4ea64cad3f
commit 16812e8979
1 changed files with 11 additions and 0 deletions

View File

@ -723,3 +723,14 @@ tests:
response_forbidden_headers:
- cache-control
- last-modified
- name: fail updating a parent to itself
PUT: /resource_providers/$ENVIRON['PARENT_PROVIDER_UUID']
request_headers:
content-type: application/json
data:
name: parent
parent_provider_uuid: $ENVIRON['PARENT_PROVIDER_UUID']
# this reproduces bug 1779635 as this should be HTTP 400 as we have a loop now
# in the tree
status: 200