deckhand/deckhand/tests/functional/gabbits/document/document-crud-error-bucket-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

33 lines
809 B
YAML

# Tests error paths for document crud.
#
# 1. Purges existing data to ensure test isolation
# 2. Creates a single initial document in one bucket
# 3. Attempts to create the same document in a separate bucket.
# - Verifies 409 response code
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: create
desc: Create initial documents
PUT: /api/v1.0/buckets/a/documents
status: 200
data: <@resources/sample-doc.yaml
- name: error
desc: Trigger error case
PUT: /api/v1.0/buckets/b/documents
status: 409
data: <@resources/sample-doc.yaml