49f53f35a5
Currently we run tests which uses real backend or real daemons with other unit tests. This CR is initial for sequence of functional tests implementation. It contains only moving files and modules to right directories and fixing tox.ini. This approach allows to avoid constantly rebase conflicts, because git handles file removing correct. Next step - separate classes and functions from moved files to right test types. Depends-On: Ifdb0de150b2c738117308b2aae6c0c197e162821 Change-Id: I16b84ed83ac075658626f3ec6a35a24e228b61e7 Partialy-Implement: blueprint ceilometer-functional-tests
25 lines
612 B
YAML
25 lines
612 B
YAML
#
|
|
# Explore and cover resources API with gabbi tests when there are a
|
|
# small number of pre-existing resources
|
|
#
|
|
|
|
fixtures:
|
|
- ConfigFixture
|
|
- SampleDataFixture
|
|
|
|
tests:
|
|
|
|
- name: list all resources
|
|
url: /v2/resources
|
|
response_json_paths:
|
|
$[0].user_id: farmerjon
|
|
$[0].links[1].rel: livestock
|
|
response_strings:
|
|
- /telemetry/
|
|
|
|
- name: get one resource
|
|
desc: get a resource via the links in the first resource listed above
|
|
url: $RESPONSE['$[0].links[0].href']
|
|
response_json_paths:
|
|
$.resource_id: $RESPONSE['$[0].resource_id']
|