diff options
author | Lars Wirzenius <liw@liw.fi> | 2020-11-12 16:26:30 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2020-11-13 09:35:48 +0200 |
commit | a2d15ccf200ae449a64cd895615a89ec42b4ab6a (patch) | |
tree | 5595fe6c724a15d445dd64f46fefaa94db846174 /subplot/obnam.yaml | |
parent | 4737919229d6785a08bbf4b54c12c20b20359e7b (diff) | |
download | obnam2-a2d15ccf200ae449a64cd895615a89ec42b4ab6a.tar.gz |
test: add scenario for smoke testing backup+restore
Diffstat (limited to 'subplot/obnam.yaml')
-rw-r--r-- | subplot/obnam.yaml | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/subplot/obnam.yaml b/subplot/obnam.yaml index c2a3608..7d2d85b 100644 --- a/subplot/obnam.yaml +++ b/subplot/obnam.yaml @@ -1,3 +1,9 @@ +- given: "an installed obnam" + function: install_obnam + +- given: "a client config based on {filename}" + function: configure_client + - given: "a chunk server" function: start_chunk_server cleanup: stop_chunk_server @@ -33,6 +39,12 @@ - when: "I back up {dirname} with obnam-backup" function: back_up_directory +- when: "I invoke obnam-backup {filename}" + function: run_obnam_backup + +- when: "I invoke obnam-restore {filename} <{genid}> {dbname} {todir}" + function: run_obnam_restore + - then: "HTTP status code is {status}" function: status_code_is @@ -51,3 +63,9 @@ - then: "backup command is successful" function: command_is_successful + +- then: "backup generation is {varname}" + function: capture_generation_id + +- then: "data in {live} and {restore} match" + function: live_and_restored_data_match |