summaryrefslogtreecommitdiff
path: root/yarns
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
parentb7f0f336a6300f805db64139a507996df182d765 (diff)
downloadick2-708a497c369601909bc57768bc929fdccc235406.tar.gz
Change: rename 'name' field on pipelines to 'pipeline'
For consistency.
Diffstat (limited to 'yarns')
-rw-r--r--yarns/100-projects.yarn2
-rw-r--r--yarns/150-pipelines.yarn20
-rw-r--r--yarns/400-build.yarn2
-rw-r--r--yarns/500-build-fail.yarn2
-rw-r--r--yarns/600-unauthz.yarn2
5 files changed, 14 insertions, 14 deletions
diff --git a/yarns/100-projects.yarn b/yarns/100-projects.yarn
index ba723d3..7c03619 100644
--- a/yarns/100-projects.yarn
+++ b/yarns/100-projects.yarn
@@ -63,7 +63,7 @@ building them. We start by starting an instance of the controller.
WHEN user makes request POST /pipelines with a valid token and body
... {
- ... "name": "build",
+ ... "pipeline": "build",
... "actions": [
... { "shell": "git clone git://repo src" },
... { "shell": "mkdir html" },
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
diff --git a/yarns/400-build.yarn b/yarns/400-build.yarn
index b18a0e6..f30e942 100644
--- a/yarns/400-build.yarn
+++ b/yarns/400-build.yarn
@@ -43,7 +43,7 @@ Add up a project with some named pipelines.
WHEN user makes request POST /pipelines with a valid token and body
... {
- ... "name": "construct",
+ ... "pipeline": "construct",
... "actions": [
... { "shell": "day 1" },
... { "shell": "day 2" }
diff --git a/yarns/500-build-fail.yarn b/yarns/500-build-fail.yarn
index 433c3e0..64e8333 100644
--- a/yarns/500-build-fail.yarn
+++ b/yarns/500-build-fail.yarn
@@ -44,7 +44,7 @@ Add up a project and its pipelines.
WHEN user makes request POST /pipelines with a valid token and body
... {
- ... "name": "construct",
+ ... "pipeline": "construct",
... "actions": [
... { "shell": "day 1" },
... { "shell": "day 2" }
diff --git a/yarns/600-unauthz.yarn b/yarns/600-unauthz.yarn
index 7eaf902..99700ba 100644
--- a/yarns/600-unauthz.yarn
+++ b/yarns/600-unauthz.yarn
@@ -44,7 +44,7 @@ Set up the controller.
... "project": "rome",
... "pipelines": [
... {
- ... "name": "construct",
+ ... "pipeline": "construct",
... "actions": [
... { "shell": "day 1" },
... { "shell": "day 2" }