summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2021-10-06 20:12:13 +0300
committerLars Wirzenius <liw@liw.fi>2021-10-06 20:12:13 +0300
commit6323015d114553cc59a3db1292c3b5283db57f96 (patch)
tree26d620c67f5b94d90ff40c4fdc58aedd94155a57
parentb39e44b541bc70716d578009cc480a1607dc2cfa (diff)
downloadvmadm-6323015d114553cc59a3db1292c3b5283db57f96.tar.gz
fix(subplot/vmadm.yaml): update bindings file to use new syntax
Current Subplot requires a different form for the YAML: the impl key. Sponsored-by: author
-rw-r--r--subplot/vmadm.yaml42
1 files changed, 31 insertions, 11 deletions
diff --git a/subplot/vmadm.yaml b/subplot/vmadm.yaml
index c6c5ad1..4c64a9b 100644
--- a/subplot/vmadm.yaml
+++ b/subplot/vmadm.yaml
@@ -1,30 +1,50 @@
- given: "an installed vmadm"
- function: install_vmadm
+ impl:
+ python:
+ function: install_vmadm
- given: "a Debian 10 OpenStack cloud image"
- function: ensure_base_image
+ impl:
+ python:
+ function: ensure_base_image
- when: "I invoke vmadm cloud-init --config {config} {filename} {dirname}"
- function: invoke_cloud_init
+ impl:
+ python:
+ function: invoke_cloud_init
- when: "I invoke vmadm new --config {config} {filename}"
- function: create_vm
- cleanup: delete_vm
+ impl:
+ python:
+ function: create_vm
+ cleanup: delete_vm
- when: "I invoke vmadm delete --config {config} {filename}"
- function: delete_vm
+ impl:
+ python:
+ function: delete_vm
- when: "I invoke vmadm shutdown --config {config} {filename}"
- function: shutdown_vm
+ impl:
+ python:
+ function: shutdown_vm
- when: "I invoke vmadm start --config {config} {filename}"
- function: start_vm
+ impl:
+ python:
+ function: start_vm
- when: "I invoke ssh -F {config} {target} {args:text}"
- function: run_hostname_over_ssh
+ impl:
+ python:
+ function: run_hostname_over_ssh
- then: "directories {actual} and {expected} are identical"
- function: directories_match
+ impl:
+ python:
+ function: directories_match
- then: "stdout, as JSON, matches file {filename} with tilde expansion"
- function: stdout_json_matches
+ impl:
+ python:
+ function: stdout_json_matches