summaryrefslogtreecommitdiff
path: root/yarns/900-implements.yarn
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2018-08-01 13:48:44 +0300
committerLars Wirzenius <liw@liw.fi>2018-08-01 15:18:54 +0300
commit036a863b00fe079e13bb1640267078ec47e6f9e5 (patch)
tree8363e515b4716375aa723f6db37f05611e806399 /yarns/900-implements.yarn
parentbfd3be221e51f9d140c68a40f72ce38ac3aad7ca (diff)
downloadqvisqve-036a863b00fe079e13bb1640267078ec47e6f9e5.tar.gz
Add: management API
Diffstat (limited to 'yarns/900-implements.yarn')
-rw-r--r--yarns/900-implements.yarn5
1 files changed, 5 insertions, 0 deletions
diff --git a/yarns/900-implements.yarn b/yarns/900-implements.yarn
index 7eea6d8..25a7e11 100644
--- a/yarns/900-implements.yarn
+++ b/yarns/900-implements.yarn
@@ -183,6 +183,11 @@ This chapter shows the scenario step implementations.
headers = V['headers']
assertEqual(headers['Content-Type'][:len(wanted)], wanted)
+ IMPLEMENTS THEN Location is (\S+)
+ wanted = get_next_match()
+ headers = V['headers']
+ assertEqual(headers['Location'], wanted)
+
IMPLEMENTS THEN body is a correctly signed JWT token
resp = json.loads(V['body'])
assertIn('access_token', resp)