placement/placement/tests/functional/gabbits/reshaper-policy.yaml
EdLeafe 9b9073c4c3 Move the functional test directories
While in Nova, placement functional test code was relegated to the
'nova/tests/functional/api/openstack/placement/' directory. This commit
moves the contents of that directory to 'placement/tests/functional/',
and removes the unnecesary directories. It also removes the files
related to Nova aggregates that were preserved in the filter_history.sh
script.

Change-Id: I5af2e074f2e1bcb90f32589fce819bd4872b6871
2018-09-04 10:31:24 -05:00

21 lines
530 B
YAML

# This tests POSTs to /reshaper using a non-admin user with an open policy
# configuration. The response is a 400 because of bad content, meaning we got
# past policy enforcement. If policy was being enforced we'd get a 403.
fixtures:
- OpenPolicyFixture
defaults:
request_headers:
x-auth-token: user
accept: application/json
content-type: application/json
openstack-api-version: placement latest
tests:
- name: attempt reshape
POST: /reshaper
data:
bad: content
status: 400