2 - name: Configure scalability (fixed instances and ranged flavors)
10 clever_app: app_00000000-0000-0000-0000-000000000000
12 instances: { fixed: 1 }
13 flavors: { min: "nano", max: "XS" }
15 - name: Configure scalability (no instances and ranged flavors)
21 path: ../clever-commands
27 clever_app: app_00000000-0000-0000-0000-000000000000
29 flavors: { min: "nano", max: "XS" }
31 - name: Check stubbed commands
32 shell: "{{ item.cmd }}"
35 display: "{{ item.display }}"
37 - cmd: "grep deploy ../clever-commands"
38 display: "Expected 'clever deploy' command to be called"
39 - cmd: "grep scale ../clever-commands"
40 display: "Expected 'clever scale' command to be called"
41 - cmd: "! grep restart ../clever-commands"
42 display: "Expected 'clever restart' command to NOT be called"
43 register: tests_results
47 - "failed_results: {{ failed_results }}"
48 - "success_results: {{ success_results }}"
49 failed_when: tests_results is failed
51 failed_results: "{{ tests_results.results | selectattr('failed') | map(attribute='item.display') | list }}"
52 success_results: "{{ tests_results.results | rejectattr('failed') | map(attribute='item.display') | list }}"
54 - name: Configure scalability (incomplete flavors)
62 clever_app: app_00000000-0000-0000-0000-000000000000
64 flavors: { min: "nano" }