summaryrefslogtreecommitdiff
path: root/subplot/client.yaml
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2021-09-15 06:29:08 +0000
committerLars Wirzenius <liw@liw.fi>2021-09-15 06:29:08 +0000
commit036fa96e9dce91de6b07a427d56c22eadb838016 (patch)
tree020b525c2eabeab98e38e9a1b8104bd491a53f62 /subplot/client.yaml
parent2107fccc5a82216263e5b2d90b40b0e1db0e5430 (diff)
parentd0b1e2c845fb0b63e4611c2806c7d038c6ef775d (diff)
downloadobnam2-036fa96e9dce91de6b07a427d56c22eadb838016.tar.gz
Merge branch 'fix-subplot' into 'main'
fix Subplot bindings for new Subplot See merge request obnam/obnam!178
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