aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/test-scalability.yml
diff options
context:
space:
mode:
authorpaulrbr-fl <43074087+paulrbr-fl@users.noreply.github.com>2020-06-23 11:20:46 +0200
committerGitHub <noreply@github.com>2020-06-23 11:20:46 +0200
commitca1a71c946fa7c51e0059b8d4342b24507aa8c64 (patch)
treed3a0759aee49d8aa595417a88e20978f6f6586c3 /tests/test-scalability.yml
parent44af02cef61e043b971f03aa5cec5a4caa6d6875 (diff)
parent4525f9489fe792b0d7ee4ca76dc0c3706784d256 (diff)
downloadansible-clever-ca1a71c946fa7c51e0059b8d4342b24507aa8c64.tar.gz
ansible-clever-ca1a71c946fa7c51e0059b8d4342b24507aa8c64.tar.zst
ansible-clever-ca1a71c946fa7c51e0059b8d4342b24507aa8c64.zip
Merge pull request #70 from paulrbr-fl/clever-restart
feature: add a new 'clever_restart_only' flag to restart an app
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