From 708a497c369601909bc57768bc929fdccc235406 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Thu, 18 Jan 2018 15:14:28 +0200 Subject: Change: rename 'name' field on pipelines to 'pipeline' For consistency. --- yarns/100-projects.yarn | 2 +- yarns/150-pipelines.yarn | 20 ++++++++++---------- yarns/400-build.yarn | 2 +- yarns/500-build-fail.yarn | 2 +- yarns/600-unauthz.yarn | 2 +- 5 files changed, 14 insertions(+), 14 deletions(-) (limited to 'yarns') 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" } -- cgit v1.2.1