From 2d4733f446dd4e62a554bfe637b1d595571842f8 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Sat, 25 Nov 2017 18:43:36 +0100 Subject: Fix: POST /project with an existing project name fails --- yarns/100-projects.yarn | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'yarns') 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 -- cgit v1.2.1