aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/test-scalability.yml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test-scalability.yml')
-rw-r--r--tests/test-scalability.yml27
1 files changed, 27 insertions, 0 deletions
diff --git a/tests/test-scalability.yml b/tests/test-scalability.yml
index fefc86c..6bb90d2 100644
--- a/tests/test-scalability.yml
+++ b/tests/test-scalability.yml
@@ -15,6 +15,10 @@
15- name: Configure scalability (no instances and ranged flavors) 15- name: Configure scalability (no instances and ranged flavors)
16 hosts: localhost 16 hosts: localhost
17 remote_user: root 17 remote_user: root
18 pre_tasks:
19 - file:
20 state: absent
21 path: ../clever-commands
18 roles: 22 roles:
19 - role: clever 23 - role: clever
20 vars: 24 vars:
@@ -23,6 +27,29 @@
23 clever_app: app_00000000-0000-0000-0000-000000000000 27 clever_app: app_00000000-0000-0000-0000-000000000000
24 clever_scaling: 28 clever_scaling:
25 flavors: { min: "nano", max: "XS" } 29 flavors: { min: "nano", max: "XS" }
30 post_tasks:
31 - name: Check stubbed commands
32 command: "{{ item.cmd }}"
33 ignore_errors: true
34 vars:
35 display: "{{ item.display }}"
36 with_list:
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 -v restart ../clever-commands"
42 display: "Expected 'clever restart' command to NOT be called"
43 register: tests_results
44 - name: show results
45 debug:
46 msg:
47 - "failed_results: {{ failed_results }}"
48 - "success_results: {{ success_results }}"
49 failed_when: tests_results is failed
50 vars:
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 }}"
26 53
27- name: Configure scalability (incomplete flavors) 54- name: Configure scalability (incomplete flavors)
28 hosts: localhost 55 hosts: localhost