summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2023-12-27 18:19:38 +0000
committerDaniel Silverstone <dsilvers@digital-scurf.org>2023-12-27 18:19:38 +0000
commitffd655aed8807a75d5e89ae041823d7bb5cfed13 (patch)
treefb0956a6fdf2b62453028e64bdf8554a3e7fd3c8
parentda1774ea591a7c0bc241e4d0c16649a1cf485c13 (diff)
downloadsubplot-ffd655aed8807a75d5e89ae041823d7bb5cfed13.tar.gz
bindings: Add types for all relevant bindings which were missing them
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
-rw-r--r--examples/muck/muck.yaml18
-rw-r--r--share/common/lib/files.yaml2
-rw-r--r--subplot.yaml16
3 files changed, 36 insertions, 0 deletions
diff --git a/examples/muck/muck.yaml b/examples/muck/muck.yaml
index b22e088..967ab56 100644
--- a/examples/muck/muck.yaml
+++ b/examples/muck/muck.yaml
@@ -18,24 +18,34 @@
python:
function: fixme
regex: true
+ types:
+ json: text
- when: "I do PUT /res with Muck-Id: \\{(?P<id>\\S+)\\}, Muck-Revision: \\{(?P<rev>\\S+)\\}, and body (?P<json>\\{.*\\})"
impl:
python:
function: fixme
regex: true
+ types:
+ id: word
+ rev: word
+ json: text
- when: "I do GET /res with Muck-Id: \\{(?P<id>\\S+)\\}"
impl:
python:
function: fixme
regex: true
+ types:
+ id: word
- when: "I do DELETE /res with Muck-Id: \\{(?P<id>\\S+)\\}"
impl:
python:
function: fixme
regex: true
+ types:
+ id: word
- when: "I restart Muck"
impl:
@@ -58,15 +68,23 @@
python:
function: fixme
regex: true
+ types:
+ header: word
+ name: word
- then: "body matches (?P<json>\\{.*\\})"
impl:
python:
function: fixme
regex: true
+ types:
+ json: text
- then: "revisions \\{(?P<rev1>\\S+)\\} and \\{(?P<rev2>\\S+)\\} are different"
impl:
python:
function: fixme
regex: true
+ types:
+ rev1: word
+ rev2: word
diff --git a/share/common/lib/files.yaml b/share/common/lib/files.yaml
index 8f3f932..689a5f3 100644
--- a/share/common/lib/files.yaml
+++ b/share/common/lib/files.yaml
@@ -242,6 +242,8 @@
python:
function: files_only_these_exist
regex: true
+ types:
+ filenames: text
doc: |
Check that the test directory only contains specific files.
diff --git a/subplot.yaml b/subplot.yaml
index 5ad35aa..1c384eb 100644
--- a/subplot.yaml
+++ b/subplot.yaml
@@ -28,6 +28,9 @@
rust:
function: step_was_run
regex: true
+ types:
+ keyword: text
+ name: text
- then: step "(?P<keyword1>given|when|then) (?P<name1>.+)" was run, and then step "(?P<keyword2>given|when|then) (?P<name2>.+)"
impl:
@@ -36,6 +39,11 @@
rust:
function: step_was_run_and_then
regex: true
+ types:
+ keyword1: text
+ keyword2: text
+ name1: text
+ name2: text
- then: cleanup for "(?P<keyword1>given|when|then) (?P<name1>.+)" was run, and then for "(?P<keyword2>given|when|then) (?P<name2>.+)"
impl:
@@ -44,6 +52,11 @@
rust:
function: cleanup_was_run
regex: true
+ types:
+ keyword1: text
+ keyword2: text
+ name1: text
+ name2: text
- then: cleanup for "(?P<keyword>given|when|then) (?P<name>.+)" was not run
impl:
@@ -52,6 +65,9 @@
rust:
function: cleanup_was_not_run
regex: true
+ types:
+ keyword: text
+ name: text
- then: JSON output matches {filename}
impl: