summaryrefslogtreecommitdiff
path: root/muck.yaml
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2020-04-18 14:06:23 +0300
committerLars Wirzenius <liw@liw.fi>2020-04-19 15:28:48 +0300
commit30447917d785345dd99ee8cfe601b94ff413260c (patch)
tree998c237c45e10b3c752f94c6e26b1b44cc5e1231 /muck.yaml
parent9f1bd185832c6e8acfafa6c66545a1921891da2e (diff)
downloadsubplot-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.yaml15
1 files changed, 12 insertions, 3 deletions
diff --git a/muck.yaml b/muck.yaml
index b7bba50..21fe303 100644
--- a/muck.yaml
+++ b/muck.yaml
@@ -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