deckhand/deckhand/tests/functional/gabbits/substitution/substitution-chained-single-bucket.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

53 lines
1.4 KiB
YAML

# Tests to verify "chained" substitution from document A -> B -> C
#
# 1. Purges existing data to ensure test isolation
# 2. Creates a new revision with documents in it.
# 3. Verifies first substitution (A -> B)
# 4. Verifies second substitution (B -> C)
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 documents.
PUT: /api/v1.0/buckets/mop/documents
status: 200
data: <@resources/chained-substitution.yaml
- name: verify_intermediate_substitution
desc: Check for chained substitution
GET: /api/v1.0/revisions/$RESPONSE['$.[0].status.revision']/rendered-documents
query_parameters:
sort: schema
status: 200
query_parameters:
schema: example/Middle/v1
response_multidoc_jsonpaths:
$.`len`: 1
$.[0].data:
mid_key: original-data
- name: verify_final_substitution
desc: Check for chained substitution
GET: /api/v1.0/revisions/$RESPONSE['$.[0].status.revision']/rendered-documents
query_parameters:
sort: schema
status: 200
query_parameters:
schema: example/Dest/v1
response_multidoc_jsonpaths:
$.`len`: 1
$.[0].data:
dest_key: original-data