diff options
Diffstat (limited to 'examples/muck/muck.yaml')
-rw-r--r-- | examples/muck/muck.yaml | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/examples/muck/muck.yaml b/examples/muck/muck.yaml new file mode 100644 index 0000000..21fe303 --- /dev/null +++ b/examples/muck/muck.yaml @@ -0,0 +1,47 @@ +- given: "a fresh Muck server" + function: fixme + +- given: "I am {name}" + function: fixme + +- 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 {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 |