summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2018-07-17 13:27:38 +0300
committerLars Wirzenius <liw@liw.fi>2018-07-17 15:32:45 +0300
commit42ed465591e0647542c7ff783a603325d1da7c6d (patch)
tree886a99b495e2e92ad29e94e8d29abd2f0cb076d7
parenta1bc79d1ad8e4995a7d3ecec9c959d58770a7951 (diff)
downloadqvisqve-42ed465591e0647542c7ff783a603325d1da7c6d.tar.gz
Change: end-user-auth scenario to use reworded scenario steps
-rw-r--r--yarns/300-end-user-auth.yarn12
1 files changed, 6 insertions, 6 deletions
diff --git a/yarns/300-end-user-auth.yarn b/yarns/300-end-user-auth.yarn
index 8a4d412..f2a74f2 100644
--- a/yarns/300-end-user-auth.yarn
+++ b/yarns/300-end-user-auth.yarn
@@ -25,17 +25,17 @@ User goes to the login URL and gets a login page.
AND body has an HTML form with field username
AND body has an HTML form with field password
- WHEN browser requests POST /qvisqve/auth, with form values
+ WHEN browser requests POST /auth, with form values
... username=tomjon and password=hunter2
THEN HTTP status code is 302 Found
- AND Location header is https://facade/callback?code=123
+ AND HTTP Location header is https://facade/callback?code=123
- WHEN facade requests POST /qvisqve/token, with
+ WHEN facade requests POST /token, with
... form values grant_type=authorization_code and code=123
THEN HTTP status code is 200 OK
AND Content-Type is application/json
- AND body has field access_token
- AND body has field token_type, with value Bearer
- AND body has field expires_in
+ AND JSON body has field access_token
+ AND JSON body has field token_type, with value Bearer
+ AND JSON body has field expires_in
FINALLY Qvisqve is stopped