From 12e22b32e6023e06769761788738cd6dc5a9cea3 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Mon, 23 Jul 2018 15:54:14 +0300 Subject: Change: allow projects, pipelines, etc, have a foo/bar/baz syntax --- yarns/150-pipelines.yarn | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'yarns/150-pipelines.yarn') 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 -- cgit v1.2.1