deckhand/deckhand/tests/functional/gabbits/layering/layering-policy-conflict.yaml
Felipe Monteiro 236e8be530 Add verbose: true to all functional tests
This is to add verbose: true to all functional tests to enable
better test debugging.

Change-Id: I72b0080e3de6d0edb941291e4215eaa633cb627a
2018-04-29 01:33:46 +00:00

31 lines
921 B
YAML

# Tests failure paths for layering.
#
# 1. Purges existing data to ensure test isolation
# 2. Adds initial documents that do not include a layering policy
# 3. Verifies that 409 is raised when attempting to layer without a layering policy
defaults:
request_headers:
content-type: application/x-yaml
response_headers:
content-type: application/x-yaml
verbose: true
tests:
- name: purge
desc: Begin testing from known state.
DELETE: /api/v1.0/revisions
status: 204
response_headers: null
- name: initialize
desc: Create initial documents
PUT: /api/v1.0/buckets/mop/documents
status: 200
data: <@resources/passphrase.yaml
- name: verify_missing_layering_policy_raises_conflict
desc: Verify that attempting to render documents without a layering policy raises a 409
GET: /api/v1.0/revisions/$RESPONSE['$.[0].status.revision']/rendered-documents
status: 409