Chris Dent 4c3cc61ee9 Fix cookie tests and pep8
The cookie tests needed to confirm that there would be a failure
if cookies were expected but there was no set-cookie in the prior
response.
2016-05-31 18:14:33 +01:00

20 lines
520 B
YAML

tests:
- name: get a cookie
GET: /cookie
response_headers:
set-cookie: session=1234; domain=.example.com
- name: use that cookie in a URL
desc: to get it somewhere we can test it and confirm domain is dropped
GET: /foobar?$COOKIE
response_headers:
x-gabbi-url: $SCHEME://$NETLOC/foobar?session=1234
- name: confirm no cookies causes error
desc: "this will cause data unavailable: set-cookie"
xfail: true
GET: /foobar?$COOKIE
response_headers:
x-gabbi-url: $SCHEME://$NETLOC/foobar