2 - name: Restart app on clever
8 path: ../clever-commands
14 clever_app: app_00000000-0000-0000-0000-000000000000
15 clever_restart_only: true
17 - name: Check stubbed commands
18 shell: "{{ item.cmd }}"
21 display: "{{ item.display }}"
23 - cmd: "grep restart ../clever-commands"
24 display: "Expected 'clever restart' command to be called"
25 - cmd: "! grep deploy ../clever-commands"
26 display: "Expected 'clever deploy' command to NOT be called"
27 - cmd: "! grep scale ../clever-commands"
28 display: "Expected 'clever scale' command to NOT be called"
29 register: tests_results
33 - "failed_results: {{ failed_results }}"
34 - "success_results: {{ success_results }}"
35 failed_when: tests_results is failed
37 failed_results: "{{ tests_results.results | selectattr('failed') | map(attribute='item.display') | list }}"
38 success_results: "{{ tests_results.results | rejectattr('failed') | map(attribute='item.display') | list }}"