blob: ca26822913078274e374ee2a73997ec2c5d4da89 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
# Backend smoke test
This scenario is just for making sure we can, in our tests, start and
stop the backend, and make requests to it.
SCENARIO backend smoke test
GIVEN a users.yaml with user admin, password foo, scopes get, put
AND a running backend instance
WHEN user admin makes unauthenticated request GET /version
THEN HTTP status code is 401
WHEN user admin makes request GET /version
THEN HTTP status code is 200
AND result matches { "version": "1.0" }
WHEN user admin makes request GET /blatherskite
THEN HTTP status code is 404
FINALLY stop backend instance
|