summaryrefslogtreecommitdiff
path: root/yarns.webapp/020-status.yarn
blob: ae5a7793adbc0fce059b619e934622ff77c40cec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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 false
    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