summaryrefslogtreecommitdiff
path: root/subplot/client.yaml
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2020-11-13 12:35:26 +0200
committerLars Wirzenius <liw@liw.fi>2020-11-13 13:19:02 +0200
commitfa6501f87041ca3d3a239988d4b1ae03d7442700 (patch)
tree1beed5eb44e1939c2702179896cceb52004c16c9 /subplot/client.yaml
parent2f129dee8841f0007977ba80b1518e94b728d94a (diff)
downloadobnam2-fa6501f87041ca3d3a239988d4b1ae03d7442700.tar.gz
refactor: split obnam's bindings, functions for clarity
The old subplot/obnam.{yaml,py} were starting to get large enough that it was hard to understand them. Also, were partly overlapping in functionality with runcmd.
Diffstat (limited to 'subplot/client.yaml')
-rw-r--r--subplot/client.yaml14
1 files changed, 14 insertions, 0 deletions
diff --git a/subplot/client.yaml b/subplot/client.yaml
new file mode 100644
index 0000000..80b69f2
--- /dev/null
+++ b/subplot/client.yaml
@@ -0,0 +1,14 @@
+- given: "an installed obnam"
+ function: install_obnam
+
+- given: "a client config based on {filename}"
+ function: configure_client
+
+- when: "I invoke obnam restore {filename} <{genid}> {dbname} {todir}"
+ function: run_obnam_restore
+
+- then: "backup generation is {varname}"
+ function: capture_generation_id
+
+- then: "generation list contains <{gen_id}>"
+ function: generation_list_contains