diff options
Diffstat (limited to 'subplot/client.yaml')
-rw-r--r-- | subplot/client.yaml | 66 |
1 files changed, 52 insertions, 14 deletions
diff --git a/subplot/client.yaml b/subplot/client.yaml index b1f9b19..104f479 100644 --- a/subplot/client.yaml +++ b/subplot/client.yaml @@ -1,32 +1,70 @@ +- given: "a working Obnam system" + impl: + python: + function: start_obnam + cleanup: stop_obnam + - given: "an installed obnam" - function: install_obnam + impl: + python: + function: install_obnam + cleanup: uninstall_obnam - given: "a client config based on {filename}" - function: configure_client + impl: + python: + function: configure_client_with_init + types: + filename: file -- when: "I invoke obnam --config {filename} restore <{genid}> {todir}" - function: run_obnam_restore +- given: "a client config, without passphrase, based on {filename}" + impl: + python: + function: configure_client_without_init + types: + filename: file -- when: "I invoke obnam --config {filename} restore latest {todir}" - function: run_obnam_restore_latest +- when: "I invoke obnam restore <{genid}> {todir}" + impl: + python: + function: run_obnam_restore -- when: "I invoke obnam --config {filename} get-chunk <{gen_id}>" - function: run_obnam_get_chunk +- when: "I invoke obnam get-chunk <{gen_id}>" + 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}" + impl: + python: + function: stdout_contains_home_dir_path |