summaryrefslogtreecommitdiff
path: root/yarns/150-pipelines.yarn
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2018-07-23 15:54:14 +0300
committerLars Wirzenius <liw@liw.fi>2018-07-23 15:54:14 +0300
commit12e22b32e6023e06769761788738cd6dc5a9cea3 (patch)
treee6271afa501a88aaa184d1eb7198881a6881877b /yarns/150-pipelines.yarn
parentcd94b9bb79ef7793ee0e828d04774607621eca3e (diff)
downloadick2-12e22b32e6023e06769761788738cd6dc5a9cea3.tar.gz
Change: allow projects, pipelines, etc, have a foo/bar/baz syntax
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