File: cookie.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-- 732 bytes parent folder | download | duplicates (5)
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

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

- name: use a historical cookie
  desc: Use a cookie from a test other than the last
  GET: /foobar?$HISTORY['get a cookie'].$COOKIE
  response_headers:
      x-gabbi-url: $SCHEME://$NETLOC/foobar?session=1234