summaryrefslogtreecommitdiff
path: root/nova/tests/functional/api/openstack/placement/gabbits/confirm-auth.yaml
blob: 68742e5d9b61a5882ea464488b3e7faddd76e1e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#
# Confirm that the noauth handler is causing a 401 when no fake
# token is provided.
#

fixtures:
    - APIFixture

defaults:
    request_headers:
        accept: application/json

tests:
    - name: no token gets 401
      GET: /
      status: 401

    - name: with token 200
      GET: /
      request_headers:
          x-auth-token: admin:admin
      status: 200