diff options
Diffstat (limited to 'yarns/100-hello.yarn')
-rw-r--r-- | yarns/100-hello.yarn | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/yarns/100-hello.yarn b/yarns/100-hello.yarn index 9d06262..ca26822 100644 --- a/yarns/100-hello.yarn +++ b/yarns/100-hello.yarn @@ -4,13 +4,17 @@ 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 running backend instance + GIVEN a users.yaml with user admin, password foo, scopes get, put + AND a running backend instance - WHEN client makes request GET /version + 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 client makes request GET /blatherskite + WHEN user admin makes request GET /blatherskite THEN HTTP status code is 404 FINALLY stop backend instance |