From a6d456f954f2f19a27965d0e44491d05d95ff4a2 Mon Sep 17 00:00:00 2001 From: jichenjc Date: Thu, 19 Oct 2017 13:30:54 +0800 Subject: [PATCH] Add more functional test for placement.aggregates Add more test cases for placement.aggregates to cover some edge case. blueprint placement-test-enhancement Change-Id: Ia18de50f3265b358e64523229140ce9a6e70dbbb --- .../api/openstack/placement/gabbits/aggregate.yaml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/nova/tests/functional/api/openstack/placement/gabbits/aggregate.yaml b/nova/tests/functional/api/openstack/placement/gabbits/aggregate.yaml index 377a3b62869f..1af1a550ebcd 100644 --- a/nova/tests/functional/api/openstack/placement/gabbits/aggregate.yaml +++ b/nova/tests/functional/api/openstack/placement/gabbits/aggregate.yaml @@ -57,6 +57,17 @@ tests: response_json_paths: $.errors[0].title: Not Found +- name: put same aggregates twice + PUT: $LAST_URL + data: + - *agg_1 + - *agg_1 + status: 400 + response_strings: + - has non-unique elements + response_json_paths: + $.errors[0].title: Bad Request + - name: put some aggregates PUT: $LAST_URL data: