summaryrefslogtreecommitdiff
path: root/yarns/150-pipelines.yarn
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2018-01-18 15:14:28 +0200
committerLars Wirzenius <liw@liw.fi>2018-01-18 15:18:03 +0200
commit708a497c369601909bc57768bc929fdccc235406 (patch)
treee6f5a025a280d74d13b28452dfa6e6dc3b8e2953 /yarns/150-pipelines.yarn
parentb7f0f336a6300f805db64139a507996df182d765 (diff)
downloadick2-708a497c369601909bc57768bc929fdccc235406.tar.gz
Change: rename 'name' field on pipelines to 'pipeline'
For consistency.
Diffstat (limited to 'yarns/150-pipelines.yarn')
-rw-r--r--yarns/150-pipelines.yarn20
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