summaryrefslogtreecommitdiff
path: root/yarns/100-happy.yarn
diff options
context:
space:
mode:
Diffstat (limited to 'yarns/100-happy.yarn')
-rw-r--r--yarns/100-happy.yarn10
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}"