diff options
author | Lars Wirzenius <liw@liw.fi> | 2018-11-05 10:36:02 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2018-11-05 10:36:02 +0200 |
commit | 82aa16698668375881e9edcab46965e4be3f5b83 (patch) | |
tree | 855cb8434e8cee343c1d7435337fe3af440a217f /yarns/100-happy.yarn | |
parent | 782d42ef1ee0c7edb2a9cf68a24ea5ba60eca8cc (diff) | |
download | muck-poc-82aa16698668375881e9edcab46965e4be3f5b83.tar.gz |
Add: owner metadata
Diffstat (limited to 'yarns/100-happy.yarn')
-rw-r--r-- | yarns/100-happy.yarn | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/yarns/100-happy.yarn b/yarns/100-happy.yarn index 6e099ce..5a5ba32 100644 --- a/yarns/100-happy.yarn +++ b/yarns/100-happy.yarn @@ -21,6 +21,7 @@ Create a simple resource. Remember its id. THEN status code is 201 THEN remember resource id as ID THEN remember resource revision as REV1 + THEN response has header "Muck-Owner: tomjon" WHEN user tomjon makes request GET /status THEN status code is 200 @@ -33,6 +34,7 @@ Retrieve the resource. THEN response body is { "foo": "bar" } THEN response has header "Muck-Id: ${ID}" THEN response has header "Muck-Revision: ${REV1}" + THEN response has header "Muck-Owner: tomjon" Update the resource. @@ -54,6 +56,7 @@ Check the resource has been updated. THEN response body is { "foo": "foobar" } THEN response has header "Muck-Id: ${ID}" THEN response has header "Muck-Revision: ${REV2}" + THEN response has header "Muck-Owner: tomjon" Restart Muck. The resource should still exist. @@ -63,6 +66,7 @@ Restart Muck. The resource should still exist. THEN response body is { "foo": "foobar" } THEN response has header "Muck-Id: ${ID}" THEN response has header "Muck-Revision: ${REV2}" + THEN response has header "Muck-Owner: tomjon" Search for the resource. First with a condition that is no longer true. |