summaryrefslogtreecommitdiff
path: root/subplot/subplot.yaml
blob: 286e8781039e942c40b6b4ae0f789a7692907361 (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
- given: a host running Debian
  impl:
    python:
      function: create_vm
      cleanup: destroy_vm

- then: I can run /bin/true on the host
  impl:
    python:
      function: run_true_on_host

- when: I use role {role}
  impl:
    python:
      function: use_role_in_playbook

- when: I use variables from {filename}
  impl:
    python:
      function: set_vars_file
  types:
    filename: file

- when: I run the playbook
  impl:
    python:
      function: run_playbook

- when: I try to run the playbook
  impl:
    python:
      function: try_playbook

- then: the command fails
  impl:
    python:
      function: command_fails

- then: stdout contains "{text:text}"
  impl:
    python:
      function: xstdout_contains