summaryrefslogtreecommitdiff
path: root/yarns/300-workers.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/300-workers.yarn
parent196e9c65b6ed1a488a7163148a75b72aea3d07fe (diff)
downloadick2-db4b1d3822daf0a0da0ba6e838231251950f3f2e.tar.gz
Add: scenario for testing unauthorized access
Diffstat (limited to 'yarns/300-workers.yarn')
-rw-r--r--yarns/300-workers.yarn5
1 files changed, 3 insertions, 2 deletions
diff --git a/yarns/300-workers.yarn b/yarns/300-workers.yarn
index 16bd108..c94f47c 100644
--- a/yarns/300-workers.yarn
+++ b/yarns/300-workers.yarn
@@ -66,7 +66,7 @@ controller API. It doesn't actually talk to the worker itself.
THEN result has status code 200
AND body matches { "workers": [] }
- WHEN user makes request POST /workers
+ WHEN user makes request POST /workers with a valid token and body
... {
... "worker": "obelix",
... "protocol": "ssh",
@@ -121,7 +121,8 @@ controller API. It doesn't actually talk to the worker itself.
... }
... }
- WHEN user makes request PUT /workers/obelix
+ WHEN user makes request PUT /workers/obelix with a valid token
+ ... and body
... {
... "worker": "obelix",
... "protocol": "local",