Skip to content

Commit

Permalink
Add test confirming $RESPONSE in data
Browse files Browse the repository at this point in the history
Adding this to make sure that using $RESPONSE behaves
as expected when used in the `data` field.
  • Loading branch information
cdent committed Nov 2, 2018
1 parent 3ccfbab commit 419d502
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions gabbi/tests/gabbits_intercept/data.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,3 +72,21 @@ tests:
response_json_paths:
$.pets: <@pets.json
$.pets[0]: <@cat.json

- name: post data for next
POST: /
request_headers:
content-type: application/json
data:
pets:
type: cat

- name: post data from prior response
POST: /
request_headers:
content-type: application/json
data:
pets:
type: $RESPONSE['$.pets.type']
response_json_paths:
$.pets.type: cat

0 comments on commit 419d502

Please sign in to comment.