diff options
author | Lars Wirzenius <liw@liw.fi> | 2020-04-18 14:06:23 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2020-04-19 15:28:48 +0300 |
commit | 30447917d785345dd99ee8cfe601b94ff413260c (patch) | |
tree | 998c237c45e10b3c752f94c6e26b1b44cc5e1231 /muck.yaml | |
parent | 9f1bd185832c6e8acfafa6c66545a1921891da2e (diff) | |
download | subplot-30447917d785345dd99ee8cfe601b94ff413260c.tar.gz |
Add: acceptance criteria for simple patterns
This adds scenarios for regex patterns capture and simple pattern
capture from scenario steps, and additionally makes use of simple
patterns everywhere possible in the examples.
Diffstat (limited to 'muck.yaml')
-rw-r--r-- | muck.yaml | 15 |
1 files changed, 12 insertions, 3 deletions
@@ -1,38 +1,47 @@ - given: "a fresh Muck server" function: fixme -- given: "I am (?P<name>\\S+)" +- given: "I am {name}" function: fixme -- given: "I am (?P<name>\\S+), with super capability" +- given: "I am {name}, with super capability" function: fixme - when: "I do POST /res with (?P<json>\\{.*\\})" function: fixme + regex: true - when: "I do PUT /res with Muck-Id: \\{(?P<id>\\S+)\\}, Muck-Revision: \\{(?P<rev>\\S+)\\}, and body (?P<json>\\{.*\\})" function: fixme + regex: true - when: "I do GET /res with Muck-Id: \\{(?P<id>\\S+)\\}" function: fixme + regex: true - when: "I do DELETE /res with Muck-Id: \\{(?P<id>\\S+)\\}" function: fixme + regex: true - when: "I restart Muck" function: fixme + regex: true - then: "response code is (?P<code>\\d+)" function: fixme + regex: true -- then: "header (?P<header>\\S+) is (?P<name>\\S+)" +- then: "header {header} is {name}" function: fixme - then: "header (?P<header>\\S+) matches \\{(?P<name>\\S+)\\}" function: fixme + regex: true - then: "body matches (?P<json>\\{.*\\})" function: fixme + regex: true - then: "revisions \\{(?P<rev1>\\S+)\\} and \\{(?P<rev2>\\S+)\\} are different" function: fixme + regex: true |