From 42ed465591e0647542c7ff783a603325d1da7c6d Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Tue, 17 Jul 2018 13:27:38 +0300 Subject: Change: end-user-auth scenario to use reworded scenario steps --- yarns/300-end-user-auth.yarn | 12 ++++++------ 1 file 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 -- cgit v1.2.1