Files
deb-python-gabbi/gabbi/tests/gabbits_intercept/data.yaml
Chris Dent db8c63b3e6 Move gabbiit tests into the tests dir
Originally there was no tests dir. When unit-like tests were added
they were put in a newly created tests directory. Since it is there
may as well use it.
2015-10-10 15:21:07 +01:00

45 lines
889 B
YAML

# Test loading POST data via data structures and file
#
tests:
- name: load data dictionary
url: /
method: POST
request_headers:
content-type: application/json
data:
foo: 1
bar: 2
response_json_paths:
foo: 1
bar: 2
- name: load data list
url: /
method: POST
request_headers:
content-type: application/json
data:
- 1
- 2
response_json_paths:
$[0]: 1
$[1]: 2
$.`len`: 2
- name: load json file
url: /
method: POST
request_headers:
content-type: application/json
data: <@data.json
response_json_paths:
foo.bar: 1
- name: load image file
url: /
method: POST
request_headers:
content-type: image/png
data: <@kitten.png