summaryrefslogtreecommitdiff
path: root/yarns
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2017-11-25 18:43:36 +0100
committerLars Wirzenius <liw@liw.fi>2017-11-25 18:43:36 +0100
commit2d4733f446dd4e62a554bfe637b1d595571842f8 (patch)
tree8cd3e25939ddf7acf703a863b21f498a28804cad /yarns
parentbdadf8cf1acddcbec060a529bedafd0abb5913f2 (diff)
downloadick2-2d4733f446dd4e62a554bfe637b1d595571842f8.tar.gz
Fix: POST /project with an existing project name fails
Diffstat (limited to 'yarns')
-rw-r--r--yarns/100-projects.yarn9
1 files changed, 9 insertions, 0 deletions
diff --git a/yarns/100-projects.yarn b/yarns/100-projects.yarn
index 0aa57b0..de7f9c7 100644
--- a/yarns/100-projects.yarn
+++ b/yarns/100-projects.yarn
@@ -106,6 +106,15 @@ building them. We start by starting an instance of the controller.
... }
AND controller state directory contains project website
+Creating a new project with the same name is forbidden.
+
+ WHEN user makes request POST /projects with a valid token and body
+ ... {
+ ... "project": "website",
+ ... "pipelines": []
+ ... }
+ THEN result has status code 409
+
WHEN user makes request GET /projects
THEN result has status code 200
AND body matches