summaryrefslogtreecommitdiff
path: root/yarns.webapp/030-queue-management.yarn
diff options
context:
space:
mode:
Diffstat (limited to 'yarns.webapp/030-queue-management.yarn')
-rw-r--r--yarns.webapp/030-queue-management.yarn9
1 files changed, 9 insertions, 0 deletions
diff --git a/yarns.webapp/030-queue-management.yarn b/yarns.webapp/030-queue-management.yarn
index 32ad7cd..4404e20 100644
--- a/yarns.webapp/030-queue-management.yarn
+++ b/yarns.webapp/030-queue-management.yarn
@@ -63,6 +63,15 @@ that does not match any existing `.lorry` files.
AND admin makes request GET /1.0/list-queue
THEN response has queue set to []
+Add a `.lorry` file, with one Lorry spec, and make sure reading the
+configuration makes `/list-queue` report it.
+
+ GIVEN Lorry file CONFGIT/foo.lorry with {"foo":{"type":"git","url":"git://foo"}}
+ AND lorry-controller.conf in CONFGIT adds lorries *.lorry using prefix upstream
+ WHEN admin makes request GET /1.0/read-configuration
+ AND admin makes request GET /1.0/list-queue
+ THEN response has queue set to ["upstream/foo"]
+
Finally, clean up.
FINALLY WEBAPP terminates