diff options
author | Lars Wirzenius <liw@liw.fi> | 2017-09-22 13:44:51 +0000 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2017-09-25 14:46:11 +0000 |
commit | 9a23acc18c36c1c0c648da162bc1075185e824a6 (patch) | |
tree | 06a9b98f99a9ff97219cd17f3d1af91889a9fd93 /yarns | |
parent | 3023f3c0ef1508a8c27594fcc304f9e7cf8a3ea2 (diff) | |
download | qvisqve-9a23acc18c36c1c0c648da162bc1075185e824a6.tar.gz |
Add: test for updating subresource with wrong revision
Diffstat (limited to 'yarns')
-rw-r--r-- | yarns/smoke.yarn | 7 |
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" ... } |