/ subplot / subplot.yaml
subplot.yaml
 1  - given: a host running Debian
 2    impl:
 3      python:
 4        function: create_vm
 5        cleanup: destroy_vm
 6  
 7  - then: I can run /bin/true on the host
 8    impl:
 9      python:
10        function: run_true_on_host
11  
12  - when: I use role {role}
13    impl:
14      python:
15        function: use_role_in_playbook
16  
17  - when: I use variables from {filename}
18    impl:
19      python:
20        function: set_vars_file
21    types:
22      filename: file
23  
24  - when: I run the playbook
25    impl:
26      python:
27        function: run_playbook
28  
29  - when: I try to run the playbook
30    impl:
31      python:
32        function: try_playbook
33  
34  - then: the command fails
35    impl:
36      python:
37        function: command_fails
38  
39  - then: stdout contains "{text:text}"
40    impl:
41      python:
42        function: xstdout_contains