summaryrefslogtreecommitdiff
path: root/yarns/400-build.yarn
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2017-11-05 19:27:42 +0100
committerLars Wirzenius <liw@liw.fi>2017-11-05 19:27:42 +0100
commit30508ca876f00d5aae004ca0588258767e345480 (patch)
tree0c3b34c9dd7000c9254f3687b55224dace6af168 /yarns/400-build.yarn
parenteedfc84fe3705bd1c4e94d80b8990cff7f9e2b9b (diff)
downloadick2-30508ca876f00d5aae004ca0588258767e345480.tar.gz
Fix: update build scenario to match code
Diffstat (limited to 'yarns/400-build.yarn')
-rw-r--r--yarns/400-build.yarn20
1 files changed, 16 insertions, 4 deletions
diff --git a/yarns/400-build.yarn b/yarns/400-build.yarn
index 08f595d..719ef05 100644
--- a/yarns/400-build.yarn
+++ b/yarns/400-build.yarn
@@ -32,6 +32,7 @@ Set up the controller.
... uapi_projects_id_pipeline_id_put
... uapi_projects_id_pipeline_id_get
... uapi_projects_id_builds_get
+ ... uapi_workers_id_get
AND a running ick controller
Add up a project.
@@ -115,14 +116,25 @@ User can now see pipeline is running and which worker is building it.
THEN result has status code 200
AND body matches
... {
- ... "status": "building",
+ ... "status": "building"
+ ... }
+
+ WHEN user makes request GET /workers/obelix
+ THEN result has status code 200
+ AND body matches
+ ... {
... "worker": "obelix",
- ... "step_number": 0,
- ... "step": {
- ... "shell": "day 1"
+ ... "doing": {
+ ... "project": "rome",
+ ... "pipeline": "construct",
+ ... "step_index": 0,
+ ... "step": {
+ ... "shell": "day 1"
+ ... }
... }
... }
+
Worker reports some build output. Note the null exit code.
WHEN worker-manager makes request POST /work