From 66fe1de8368ba7e754fa6dad798bf351f3c3bf93 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Fri, 19 Jan 2018 19:16:57 +0200 Subject: Change: builds are now numbered foo/123, as are logs --- yarns/500-build-fail.yarn | 24 +++++++++++------------- 1 file changed, 11 insertions(+), 13 deletions(-) (limited to 'yarns/500-build-fail.yarn') diff --git a/yarns/500-build-fail.yarn b/yarns/500-build-fail.yarn index 64e8333..39a2e32 100644 --- a/yarns/500-build-fail.yarn +++ b/yarns/500-build-fail.yarn @@ -82,8 +82,8 @@ Worker wants work and gets the first step to run. THEN result has status code 200 AND body matches ... { - ... "build_id": 1, - ... "log": "/logs/1", + ... "build_id": "rome/1", + ... "log": "/logs/rome/1", ... "worker": "obelix", ... "project": "rome", ... "pipeline": "construct", @@ -98,7 +98,7 @@ failure. WHEN worker-manager makes request POST /work with a valid token and body ... { - ... "build_id": 1, + ... "build_id": "rome/1", ... "worker": "obelix", ... "project": "rome", ... "pipeline": "construct", @@ -140,8 +140,8 @@ Also, there's a build with a log. ... { ... "builds": [ ... { - ... "build_id": 1, - ... "log": "/logs/1", + ... "build_id": "rome/1", + ... "log": "/logs/rome/1", ... "worker": "obelix", ... "project": "rome", ... "pipeline": "construct", @@ -152,18 +152,17 @@ Also, there's a build with a log. ... ], ... "current_action": null, ... "parameters": {}, - ... "status": 1, - ... "log": "/logs/1" + ... "status": 1 ... } ... ] ... } - WHEN user makes request GET /builds/1 + WHEN user makes request GET /builds/rome/1 THEN result has status code 200 AND body matches ... { - ... "build_id": 1, - ... "log": "/logs/1", + ... "build_id": "rome/1", + ... "log": "/logs/rome/1", ... "worker": "obelix", ... "project": "rome", ... "pipeline": "construct", @@ -174,11 +173,10 @@ Also, there's a build with a log. ... ], ... "current_action": null, ... "parameters": {}, - ... "status": 1, - ... "log": "/logs/1" + ... "status": 1 ... } - WHEN user makes request GET /logs/1 + WHEN user makes request GET /logs/rome/1 THEN result has status code 200 AND result has header Content-Type: text/plain AND body text is "eek!" -- cgit v1.2.1