summaryrefslogtreecommitdiff
path: root/subplot/client.yaml
blob: 104f47976b5fdbb5b9d64067ac2c2684ebd4aade (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
- given: "a working Obnam system"
  impl:
    python:
      function: start_obnam
      cleanup: stop_obnam

- given: "an installed obnam"
  impl:
    python:
      function: install_obnam
      cleanup: uninstall_obnam

- given: "a client config based on {filename}"
  impl:
    python:
      function: configure_client_with_init
  types:
    filename: file

- given: "a client config, without passphrase, based on {filename}"
  impl:
    python:
      function: configure_client_without_init
  types:
    filename: file

- when: "I invoke obnam restore <{genid}> {todir}"
  impl:
    python:
      function: run_obnam_restore

- when: "I invoke obnam get-chunk <{gen_id}>"
  impl:
    python:
      function: run_obnam_get_chunk

- then: "backup generation is {varname}"
  impl:
    python:
      function: capture_generation_id

- then: "generation list contains <{gen_id}>"
  impl:
    python:
      function: generation_list_contains

- then: "file {filename} was backed up because it was new"
  impl:
    python:
      function: file_was_new

- then: "file {filename} was backed up because it was changed"
  impl:
    python:
      function: file_was_changed

- then: "file {filename} was not backed up because it was unchanged"
  impl:
    python:
      function: file_was_unchanged

- then: "stdout matches file {filename}"
  impl:
    python:
      function: stdout_matches_file

- then: "stdout contains home directory followed by {path}"
  impl:
    python:
      function: stdout_contains_home_dir_path