summaryrefslogtreecommitdiff
path: root/yarns/500-build-fail.yarn
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2018-01-19 19:16:57 +0200
committerLars Wirzenius <liw@liw.fi>2018-01-19 19:16:57 +0200
commit66fe1de8368ba7e754fa6dad798bf351f3c3bf93 (patch)
treee1e410beeaa3264212f2760debfbcfeebd46c50d /yarns/500-build-fail.yarn
parent3bc16ac24091009e73d9c4b9c2fbda0cdca6cff5 (diff)
downloadick2-66fe1de8368ba7e754fa6dad798bf351f3c3bf93.tar.gz
Change: builds are now numbered foo/123, as are logs
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!"