summaryrefslogtreecommitdiff
path: root/yarns/500-build-fail.yarn
diff options
context:
space:
mode:
Diffstat (limited to 'yarns/500-build-fail.yarn')
-rw-r--r--yarns/500-build-fail.yarn24
1 files changed, 11 insertions, 13 deletions
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!"