summaryrefslogtreecommitdiff
path: root/yarns/150-pipelines.yarn
diff options
context:
space:
mode:
Diffstat (limited to 'yarns/150-pipelines.yarn')
-rw-r--r--yarns/150-pipelines.yarn24
1 files changed, 12 insertions, 12 deletions
diff --git a/yarns/150-pipelines.yarn b/yarns/150-pipelines.yarn
index e2416a8..d828935 100644
--- a/yarns/150-pipelines.yarn
+++ b/yarns/150-pipelines.yarn
@@ -77,7 +77,7 @@ running them. We start by starting an instance of the controller.
WHEN user makes request POST /pipelines with a valid token and body
... {
- ... "pipeline": "build_website",
+ ... "pipeline": "foo/build_website",
... "actions": [
... { "where": "host", "shell": "git clone git://repo src" },
... { "where": "host", "shell": "mkdir html" },
@@ -87,7 +87,7 @@ running them. We start by starting an instance of the controller.
THEN result has status code 201
AND body matches
... {
- ... "pipeline": "build_website",
+ ... "pipeline": "foo/build_website",
... "actions": [
... { "where": "host", "shell": "git clone git://repo src" },
... { "where": "host", "shell": "mkdir html" },
@@ -99,7 +99,7 @@ Creating a new pipeline with the same name is forbidden.
WHEN user makes request POST /pipelines with a valid token and body
... {
- ... "pipeline": "build_website"
+ ... "pipeline": "foo/build_website"
... }
THEN result has status code 409
@@ -109,7 +109,7 @@ Creating a new pipeline with the same name is forbidden.
... {
... "pipelines": [
... {
- ... "pipeline": "build_website",
+ ... "pipeline": "foo/build_website",
... "actions": [
... { "where": "host", "shell": "git clone git://repo src" },
... { "where": "host", "shell": "mkdir html" },
@@ -121,11 +121,11 @@ Creating a new pipeline with the same name is forbidden.
WHEN user stops ick controller
GIVEN a running ick controller
- WHEN user makes request GET /pipelines/build_website
+ WHEN user makes request GET /pipelines/foo/build_website
THEN result has status code 200
AND body matches
... {
- ... "pipeline": "build_website",
+ ... "pipeline": "foo/build_website",
... "actions": [
... { "where": "host", "shell": "git clone git://repo src" },
... { "where": "host", "shell": "mkdir html" },
@@ -136,7 +136,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
... {
- ... "pipeline": "build_website",
+ ... "pipeline": "foo/build_website",
... "actions": [
... { "where": "host", "shell": "build-it" }
... ]
@@ -144,25 +144,25 @@ Creating a new pipeline with the same name is forbidden.
THEN result has status code 200
AND body matches
... {
- ... "pipeline": "build_website",
+ ... "pipeline": "foo/build_website",
... "actions": [
... { "where": "host", "shell": "build-it" }
... ]
... }
- WHEN user makes request GET /pipelines/build_website
+ WHEN user makes request GET /pipelines/foo/build_website
THEN result has status code 200
AND body matches
... {
- ... "pipeline": "build_website",
+ ... "pipeline": "foo/build_website",
... "actions": [
... { "where": "host", "shell": "build-it" }
... ]
... }
- WHEN user makes request DELETE /pipelines/build_website
+ WHEN user makes request DELETE /pipelines/foo/build_website
THEN result has status code 200
- WHEN user makes request GET /pipelines/build_website
+ WHEN user makes request GET /pipelines/foo/build_website
THEN result has status code 404
WHEN user makes request PUT /pipelines/doesnotexist with a valid token and body