summaryrefslogtreecommitdiff
path: root/yarns/100-projects.yarn
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2017-11-19 18:11:34 +0100
committerLars Wirzenius <liw@liw.fi>2017-11-19 18:11:34 +0100
commitdb4b1d3822daf0a0da0ba6e838231251950f3f2e (patch)
tree1384ce2356308d15cc2c466558f427dc6050f297 /yarns/100-projects.yarn
parent196e9c65b6ed1a488a7163148a75b72aea3d07fe (diff)
downloadick2-db4b1d3822daf0a0da0ba6e838231251950f3f2e.tar.gz
Add: scenario for testing unauthorized access
Diffstat (limited to 'yarns/100-projects.yarn')
-rw-r--r--yarns/100-projects.yarn5
1 files changed, 3 insertions, 2 deletions
diff --git a/yarns/100-projects.yarn b/yarns/100-projects.yarn
index a4793b3..0aa57b0 100644
--- a/yarns/100-projects.yarn
+++ b/yarns/100-projects.yarn
@@ -75,7 +75,7 @@ building them. We start by starting an instance of the controller.
THEN result has status code 200
AND body matches { "projects": [] }
- WHEN user makes request POST /projects
+ WHEN user makes request POST /projects with a valid token and body
... {
... "project": "website",
... "pipelines": [
@@ -146,7 +146,8 @@ building them. We start by starting an instance of the controller.
... ]
... }
- WHEN user makes request PUT /projects/website
+ WHEN user makes request PUT /projects/website with a valid token
+ ... and body
... {
... "project": "website",
... "pipelines": [