diff options
author | Lars Wirzenius <lars.wirzenius@codethink.co.uk> | 2014-06-23 16:46:58 +0000 |
---|---|---|
committer | Lars Wirzenius <lars.wirzenius@codethink.co.uk> | 2014-06-23 16:48:25 +0000 |
commit | 0b31a04a38b3a2819ab166c69d31c122723a33af (patch) | |
tree | f5c1d9f6ab6b5b5fa2ceb20dd493797725f96e8e /yarns.webapp | |
parent | e530deefe02b7f6de2748f7d99f713bc9d4abfe5 (diff) | |
download | lorry-controller-0b31a04a38b3a2819ab166c69d31c122723a33af.tar.gz |
Improve move-to-top/bottom API call error messagesliw/move-error-msgs
Diffstat (limited to 'yarns.webapp')
-rw-r--r-- | yarns.webapp/030-queue-management.yarn | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/yarns.webapp/030-queue-management.yarn b/yarns.webapp/030-queue-management.yarn index 9fca4fb..ebf50af 100644 --- a/yarns.webapp/030-queue-management.yarn +++ b/yarns.webapp/030-queue-management.yarn @@ -101,6 +101,18 @@ Add two Lorries, then make sure they can reordered at will. AND admin makes request GET /1.0/list-queue THEN response has queue set to ["upstream/bar", "upstream/foo"] +If trying to move a lorry that doesn't exist, make sure there's an +appropriate error message. + + WHEN admin makes request POST /1.0/move-to-bottom with path=upstream/alfred + THEN response matches "upstream/alfred does not exist" + +Likewise, if we forget to give a path argument, there should be an +error message. + + WHEN admin makes request POST /1.0/move-to-bottom + THEN response matches "path.*not given" + Finally, clean up. FINALLY WEBAPP terminates |