diff options
Diffstat (limited to 'yarns/150-pipelines.yarn')
-rw-r--r-- | yarns/150-pipelines.yarn | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/yarns/150-pipelines.yarn b/yarns/150-pipelines.yarn index f0f678e..2b8c4b6 100644 --- a/yarns/150-pipelines.yarn +++ b/yarns/150-pipelines.yarn @@ -25,7 +25,7 @@ They're described like resources like this: EXAMPLE pipeline resource { - "name": "build-website", + "pipeline": "build-website", "parameters": { "foo": "bar" }, @@ -71,7 +71,7 @@ running them. We start by starting an instance of the controller. WHEN user makes request POST /pipelines with a valid token and body ... { - ... "name": "build_website", + ... "pipeline": "build_website", ... "actions": [ ... { "shell": "git clone git://repo src" }, ... { "shell": "mkdir html" }, @@ -81,7 +81,7 @@ running them. We start by starting an instance of the controller. THEN result has status code 201 AND body matches ... { - ... "name": "build_website", + ... "pipeline": "build_website", ... "actions": [ ... { "shell": "git clone git://repo src" }, ... { "shell": "mkdir html" }, @@ -93,7 +93,7 @@ Creating a new pipeline with the same name is forbidden. WHEN user makes request POST /pipelines with a valid token and body ... { - ... "name": "build_website" + ... "pipeline": "build_website" ... } THEN result has status code 409 @@ -103,7 +103,7 @@ Creating a new pipeline with the same name is forbidden. ... { ... "pipelines": [ ... { - ... "name": "build_website", + ... "pipeline": "build_website", ... "actions": [ ... { "shell": "git clone git://repo src" }, ... { "shell": "mkdir html" }, @@ -119,7 +119,7 @@ Creating a new pipeline with the same name is forbidden. THEN result has status code 200 AND body matches ... { - ... "name": "build_website", + ... "pipeline": "build_website", ... "actions": [ ... { "shell": "git clone git://repo src" }, ... { "shell": "mkdir html" }, @@ -130,7 +130,7 @@ Creating a new pipeline with the same name is forbidden. WHEN user makes request PUT /pipelines/build_websitte with a valid token ... and body ... { - ... "name": "build_website", + ... "pipeline": "build_website", ... "actions": [ ... { "shell": "build-it" } ... ] @@ -138,7 +138,7 @@ Creating a new pipeline with the same name is forbidden. THEN result has status code 200 AND body matches ... { - ... "name": "build_website", + ... "pipeline": "build_website", ... "actions": [ ... { "shell": "build-it" } ... ] @@ -148,7 +148,7 @@ Creating a new pipeline with the same name is forbidden. THEN result has status code 200 AND body matches ... { - ... "name": "build_website", + ... "pipeline": "build_website", ... "actions": [ ... { "shell": "build-it" } ... ] @@ -161,7 +161,7 @@ Creating a new pipeline with the same name is forbidden. WHEN user makes request PUT /pipelines/doesnotexist with a valid token and body ... { - ... "name": "doesnotexist" + ... "pipeline": "doesnotexist" ... } THEN result has status code 404 |