diff options
author | Lars Wirzenius <liw@liw.fi> | 2021-02-17 08:49:38 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2021-02-18 10:42:40 +0200 |
commit | a85e7d15c57c11d8286656531c7394681fb855d9 (patch) | |
tree | 872ec655a99606e8fe2147a4b8d4fb3e1aeb186b /examples/muck/muck.yaml | |
parent | 4b9edb354297353cbbe38575553ca1351f68d380 (diff) | |
download | subplot-a85e7d15c57c11d8286656531c7394681fb855d9.tar.gz |
refactor: move echo and muck examples under new examples/ directory
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 |