diff options
author | Lars Wirzenius <liw@liw.fi> | 2018-11-03 16:46:43 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2018-11-03 16:46:43 +0200 |
commit | e3b9df529d8aaa05176645ec1563d271416cb107 (patch) | |
tree | c3fbb6451dee0c33d50e002e632d6c4ba3f85274 /yarns/100-happy.yarn | |
parent | 2cc553b5ef629103990683c5ca3e40ff27f2c49d (diff) | |
download | muck-poc-e3b9df529d8aaa05176645ec1563d271416cb107.tar.gz |
Add: scenario steps for checking /status
Diffstat (limited to 'yarns/100-happy.yarn')
-rw-r--r-- | yarns/100-happy.yarn | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/yarns/100-happy.yarn b/yarns/100-happy.yarn index dc6f6c1..934f243 100644 --- a/yarns/100-happy.yarn +++ b/yarns/100-happy.yarn @@ -9,6 +9,12 @@ access token, which will be used for all requests. GIVEN a running Muck +Check status. + + WHEN user makes request GET /status + THEN status code is 200 + THEN response body is {"resources":0} + Create a simple resource. Remember its id. WHEN user makes request POST /res with body { "foo": "bar" } @@ -16,6 +22,10 @@ Create a simple resource. Remember its id. THEN remember resource id as ID THEN remember resource revision as REV1 + WHEN user makes request GET /status + THEN status code is 200 + THEN response body is {"resources":1} + Retrieve the resource. WHEN user makes request GET /res with header "Muck-Id: ${ID}" |