aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authorClement Delafargue <clement.delafargue@fretlink.com>2020-06-22 11:30:43 +0200
committerClement Delafargue <clement.delafargue@fretlink.com>2020-06-22 14:41:27 +0200
commit791d2dcbcb3d90ea66ce9b6b519eeb576f5f601b (patch)
tree93dee19980af622d21d08039aec2248e61bff186 /tests
parent96f02eb1f426c16c631598c80bec4bc0e60f75c1 (diff)
downloadansible-clever-791d2dcbcb3d90ea66ce9b6b519eeb576f5f601b.tar.gz
ansible-clever-791d2dcbcb3d90ea66ce9b6b519eeb576f5f601b.tar.zst
ansible-clever-791d2dcbcb3d90ea66ce9b6b519eeb576f5f601b.zip
add tests for scalability settings
They make sure that ansible does not crash while calling `clever scale`
Diffstat (limited to 'tests')
-rw-r--r--tests/test-scalability.yml37
1 files changed, 37 insertions, 0 deletions
diff --git a/tests/test-scalability.yml b/tests/test-scalability.yml
new file mode 100644
index 0000000..fefc86c
--- /dev/null
+++ b/tests/test-scalability.yml
@@ -0,0 +1,37 @@
1---
2- name: Configure scalability (fixed instances and ranged flavors)
3 hosts: localhost
4 remote_user: root
5 roles:
6 - role: clever
7 vars:
8 clever_token: 123abc
9 clever_secret: cba321
10 clever_app: app_00000000-0000-0000-0000-000000000000
11 clever_scaling:
12 instances: { fixed: 1 }
13 flavors: { min: "nano", max: "XS" }
14
15- name: Configure scalability (no instances and ranged flavors)
16 hosts: localhost
17 remote_user: root
18 roles:
19 - role: clever
20 vars:
21 clever_token: 123abc
22 clever_secret: cba321
23 clever_app: app_00000000-0000-0000-0000-000000000000
24 clever_scaling:
25 flavors: { min: "nano", max: "XS" }
26
27- name: Configure scalability (incomplete flavors)
28 hosts: localhost
29 remote_user: root
30 roles:
31 - role: clever
32 vars:
33 clever_token: 123abc
34 clever_secret: cba321
35 clever_app: app_00000000-0000-0000-0000-000000000000
36 clever_scaling:
37 flavors: { min: "nano" }