summaryrefslogtreecommitdiff
path: root/yarns
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2019-03-09 09:55:50 +0200
committerLars Wirzenius <liw@liw.fi>2019-03-09 09:55:50 +0200
commite6b021da4c7f58943c9bc5d5d4905ab655128973 (patch)
tree970a874e8148ccb59f399265693551fce86ddf31 /yarns
parentda23a56ebcc767a76a86ae42a1839221ab126119 (diff)
downloadeffi-reg-e6b021da4c7f58943c9bc5d5d4905ab655128973.tar.gz
Add: test /status in yarns
Diffstat (limited to 'yarns')
-rw-r--r--yarns/000.yarn8
1 files changed, 8 insertions, 0 deletions
diff --git a/yarns/000.yarn b/yarns/000.yarn
index 1c3f55e..57179bb 100644
--- a/yarns/000.yarn
+++ b/yarns/000.yarn
@@ -39,6 +39,11 @@ member, to update and retrieve it, and to search memberships.
SCENARIO Manage memberships
GIVEN An effiapi instance
+
+ WHEN admin requests GET /status
+ THEN HTTP status is 200
+ AND HTTP body matches { "resources": 0 }
+
WHEN admin requests POST /memb with body { "fullname": "James Bond" }
THEN HTTP status is 201
AND the member id is ID
@@ -74,6 +79,9 @@ TODO:
body = get_json_match()
effiapi.POST('/memb', {}, body)
+ IMPLEMENTS WHEN admin requests GET /status
+ effiapi.GET('/status', {}, None)
+
IMPLEMENTS WHEN admin requests GET /memb with header (\S+): (\S+)
header = get_next_match()
print('header', repr(header))