/usr/lib/python3/dist-packages/gnocchi/tests/functional/gabbits/cors.yaml is in python3-gnocchi 4.2.0-0ubuntu5.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | fixtures:
- ConfigFixture
tests:
- name: get CORS headers for non-allowed
OPTIONS: /v1/status
request_headers:
Origin: http://notallowed.com
Access-Control-Request-Method: GET
response_forbidden_headers:
- Access-Control-Allow-Origin
- Access-Control-Allow-Methods
- name: get CORS headers for allowed
OPTIONS: /v1/status
request_headers:
Origin: http://foobar.com
Access-Control-Request-Method: GET
response_headers:
Access-Control-Allow-Origin: http://foobar.com
Access-Control-Allow-Methods: GET
|