summaryrefslogtreecommitdiff
path: root/yarns
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2017-09-22 13:44:51 +0000
committerLars Wirzenius <liw@liw.fi>2017-09-25 14:46:11 +0000
commit9a23acc18c36c1c0c648da162bc1075185e824a6 (patch)
tree06a9b98f99a9ff97219cd17f3d1af91889a9fd93 /yarns
parent3023f3c0ef1508a8c27594fcc304f9e7cf8a3ea2 (diff)
downloadqvisqve-9a23acc18c36c1c0c648da162bc1075185e824a6.tar.gz
Add: test for updating subresource with wrong revision
Diffstat (limited to 'yarns')
-rw-r--r--yarns/smoke.yarn7
1 files changed, 7 insertions, 0 deletions
diff --git a/yarns/smoke.yarn b/yarns/smoke.yarn
index 20b12aa..695f31a 100644
--- a/yarns/smoke.yarn
+++ b/yarns/smoke.yarn
@@ -128,6 +128,13 @@ don't need to be created specially.
WHEN client requests PUT /subjects/${ID}/sub with token and body
... {
+ ... "revision": "wrong",
+ ... "subfield": "Steven Segal"
+ ... }
+ THEN HTTP status code is 409 Conflict
+
+ WHEN client requests PUT /subjects/${ID}/sub with token and body
+ ... {
... "revision": "${REV}",
... "subfield": "Steven Segal"
... }