summaryrefslogtreecommitdiff
path: root/nova/tests/functional/api/openstack/placement/gabbits/non-cors.yaml
blob: b0b974cc52f72eb4ea437b200993ba802807a3a6 (plain)
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
# Confirm that things work as intended when CORS is not configured.

fixtures:
    - APIFixture

defaults:
    request_headers:
        x-auth-token: user

tests:
- name: options request not allowed
  OPTIONS: /
  request_headers:
      origin: http://valid.example.com
      access-control-request-method: GET
  status: 405

- name: get request no cors headers
  GET: /
  request_headers:
      origin: http://valid.example.com
      access-control-request-method: GET
  status: 200
  response_forbidden_headers:
      - access-control-allow-origin