summaryrefslogtreecommitdiff
path: root/yarns.webapp/020-status.yarn
diff options
context:
space:
mode:
Diffstat (limited to 'yarns.webapp/020-status.yarn')
-rw-r--r--yarns.webapp/020-status.yarn27
1 files changed, 27 insertions, 0 deletions
diff --git a/yarns.webapp/020-status.yarn b/yarns.webapp/020-status.yarn
new file mode 100644
index 0000000..5749920
--- /dev/null
+++ b/yarns.webapp/020-status.yarn
@@ -0,0 +1,27 @@
+WEBAPP status reporting
+=======================
+
+WEBAPP reports it status via an HTTP request. We verify that when it
+starts up, the status is that it is doing nothing: there are no jobs,
+it has no Lorry or Trove specs.
+
+ SCENARIO WEBAPP is idle when it starts
+ GIVEN a running WEBAPP
+ WHEN admin makes request GET /1.0/status
+ THEN response is application/json
+ AND response has running_queue set to true
+ AND response has disk_free set
+ AND response has disk_free_mib set
+ AND response has disk_free_gib set
+ AND static status page got updated
+ FINALLY WEBAPP terminates
+
+As an alternative, we can request the HTML rendering of the status
+directly with `/1.0/status-html`.
+
+ SCENARIO WEBAPP provide HTML status directly
+ GIVEN a running WEBAPP
+ WHEN admin makes request GET /1.0/status-html
+ THEN response is text/html
+ AND static status page got updated
+ FINALLY WEBAPP terminates