diff options
author | Lars Wirzenius <liw@liw.fi> | 2017-11-26 15:01:53 +0100 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2017-11-26 17:59:00 +0100 |
commit | f0ccb8150a67b10e11b3358d6385e31619e6d1e3 (patch) | |
tree | 8c03eff4e48cbf7ceb290c5362d4b9ace201e908 /yarns/400-build.yarn | |
parent | 4382c0943c5e84477fcdf6f1d26397c8a60a4624 (diff) | |
download | ick2-f0ccb8150a67b10e11b3358d6385e31619e6d1e3.tar.gz |
Update: yarn scenarios to use named pipelines
Diffstat (limited to 'yarns/400-build.yarn')
-rw-r--r-- | yarns/400-build.yarn | 31 |
1 files changed, 13 insertions, 18 deletions
diff --git a/yarns/400-build.yarn b/yarns/400-build.yarn index a07eda4..ec3e8e5 100644 --- a/yarns/400-build.yarn +++ b/yarns/400-build.yarn @@ -28,6 +28,7 @@ Set up the controller. GIVEN an RSA key pair for token signing AND controller config uses statedir at the state directory AND an access token for user with scopes + ... uapi_pipelines_post ... uapi_projects_post ... uapi_projects_id_pipelines_id_put ... uapi_projects_id_pipelines_id_get @@ -38,23 +39,24 @@ Set up the controller. ... uapi_logs_id_get AND a running ick controller -Add up a project. +Add up a project with some named pipelines. + WHEN user makes request POST /pipelines with a valid token and body + ... { + ... "name": "construct", + ... "actions": [ + ... { "shell": "day 1" }, + ... { "shell": "day 2" } + ... ] + ... } + THEN result has status code 201 WHEN user makes request POST /projects with a valid token and body ... { ... "project": "rome", ... "parameters": { ... "foo": "bar" ... }, - ... "pipelines": [ - ... { - ... "name": "construct", - ... "actions": [ - ... { "shell": "day 1" }, - ... { "shell": "day 2" } - ... ] - ... } - ... ] + ... "pipelines": ["construct"] ... } THEN result has status code 201 @@ -66,14 +68,7 @@ Add a second project so we know each project gets its own work steps. ... "parameters": { ... "hey": "there" ... }, - ... "pipelines": [ - ... { - ... "name": "construct", - ... "actions": [ - ... { "shell": "fork" } - ... ] - ... } - ... ] + ... "pipelines": ["construct"] ... } THEN result has status code 201 |