From 30508ca876f00d5aae004ca0588258767e345480 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Sun, 5 Nov 2017 19:27:42 +0100 Subject: Fix: update build scenario to match code --- yarns/400-build.yarn | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) (limited to 'yarns/400-build.yarn') 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 -- cgit v1.2.1