summaryrefslogtreecommitdiff
path: root/subplot/client.yaml
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2021-09-15 08:48:47 +0300
committerLars Wirzenius <liw@liw.fi>2021-09-15 08:48:47 +0300
commitd0b1e2c845fb0b63e4611c2806c7d038c6ef775d (patch)
tree020b525c2eabeab98e38e9a1b8104bd491a53f62 /subplot/client.yaml
parent076e92da04ea5e3c052947bbc403812a92aad0c2 (diff)
downloadobnam2-d0b1e2c845fb0b63e4611c2806c7d038c6ef775d.tar.gz
fix: add 'impl' to bindings files, for new Subplot
Sponsored-by: author
Diffstat (limited to 'subplot/client.yaml')
-rw-r--r--subplot/client.yaml50
1 files changed, 37 insertions, 13 deletions
diff --git a/subplot/client.yaml b/subplot/client.yaml
index d660089..9817186 100644
--- a/subplot/client.yaml
+++ b/subplot/client.yaml
@@ -1,36 +1,60 @@
- given: "an installed obnam"
- function: install_obnam
- cleanup: uninstall_obnam
+ impl:
+ python:
+ function: install_obnam
+ cleanup: uninstall_obnam
- given: "a client config based on {filename}"
- function: configure_client_with_init
+ impl:
+ python:
+ function: configure_client_with_init
- given: "a client config, without passphrase, based on {filename}"
- function: configure_client_without_init
+ impl:
+ python:
+ function: configure_client_without_init
- when: "I invoke obnam restore <{genid}> {todir}"
- function: run_obnam_restore
+ impl:
+ python:
+ function: run_obnam_restore
- when: "I invoke obnam get-chunk <{gen_id}>"
- function: run_obnam_get_chunk
+ impl:
+ python:
+ function: run_obnam_get_chunk
- then: "backup generation is {varname}"
- function: capture_generation_id
+ impl:
+ python:
+ function: capture_generation_id
- then: "generation list contains <{gen_id}>"
- function: generation_list_contains
+ impl:
+ python:
+ function: generation_list_contains
- then: "file {filename} was backed up because it was new"
- function: file_was_new
+ impl:
+ python:
+ function: file_was_new
- then: "file {filename} was backed up because it was changed"
- function: file_was_changed
+ impl:
+ python:
+ function: file_was_changed
- then: "file {filename} was not backed up because it was unchanged"
- function: file_was_unchanged
+ impl:
+ python:
+ function: file_was_unchanged
- then: "stdout matches file {filename}"
- function: stdout_matches_file
+ impl:
+ python:
+ function: stdout_matches_file
- then: "stdout contains home directory followed by {path}"
- function: stdout_contains_home_dir_path
+ impl:
+ python:
+ function: stdout_contains_home_dir_path