File: forbiddenheaders.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 (30 lines) | stat: -rw-r--r-- 756 bytes parent folder | download | duplicates (7)
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
27
28
29
30
#
# Test that headers that should not be there are definitely not
# there. These mostly test in a negative fashion.
#

tests:

    - name: header not there basic
      GET: /foobar
      response_headers:
          x-gabbi-url: $SCHEME://$NETLOC/foobar
      response_forbidden_headers:
          - no-there-one
          - no-there-two

    - name: header is there fail
      xfail: True
      GET: /foobar
      response_headers:
          x-gabbi-url: $SCHEME://$NETLOC/foobar
      response_forbidden_headers:
          - x-gabbi-url

    - name: header is there fail case insensitive
      xfail: True
      GET: /foobar
      response_headers:
          x-gabbi-url: $SCHEME://$NETLOC/foobar
      response_forbidden_headers:
          - x-gaBBi-uRl