File: doubleresponse.yaml

package info (click to toggle)
python-gabbi 4.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 972 kB
  • sloc: python: 3,788; makefile: 62; sh: 35
file content (26 lines) | stat: -rw-r--r-- 851 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Use double of the same formatter, some with mixed quotes

tests:
- name: post some json
  url: /posterchild
  request_headers:
      content-type: application/json
  data:
    baseURL: $SCHEME://$NETLOC/posterchild
  method: POST
  response_json_paths:
    baseURL: $SCHEME://$NETLOC/posterchild

- name: generate that url
  desc: This would fail because of regex issues without post 4.1.0 changes
  verbose: true
  GET: $RESPONSE['$.baseURL']$RESPONSE['$.baseURL']

- name: generate another url
  desc: This would fail because of regex issues without post 4.1.0 changes
  verbose: true
  GET: $HISTORY['post some json'].$RESPONSE["$.baseURL"]$HISTORY['post some json'].$RESPONSE["$.baseURL"]

- name: generate yet another url
  verbose: true
  GET: $HISTORY["post some json"].$RESPONSE['$.baseURL']$HISTORY['post some json'].$RESPONSE["$.baseURL"]