From 791d2dcbcb3d90ea66ce9b6b519eeb576f5f601b Mon Sep 17 00:00:00 2001 From: Clement Delafargue Date: Mon, 22 Jun 2020 11:30:43 +0200 Subject: add tests for scalability settings They make sure that ansible does not crash while calling `clever scale` --- tests/test-scalability.yml | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 tests/test-scalability.yml (limited to 'tests/test-scalability.yml') 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 @@ +--- +- name: Configure scalability (fixed instances and ranged flavors) + hosts: localhost + remote_user: root + roles: + - role: clever + vars: + clever_token: 123abc + clever_secret: cba321 + clever_app: app_00000000-0000-0000-0000-000000000000 + clever_scaling: + instances: { fixed: 1 } + flavors: { min: "nano", max: "XS" } + +- name: Configure scalability (no instances and ranged flavors) + hosts: localhost + remote_user: root + roles: + - role: clever + vars: + clever_token: 123abc + clever_secret: cba321 + clever_app: app_00000000-0000-0000-0000-000000000000 + clever_scaling: + flavors: { min: "nano", max: "XS" } + +- name: Configure scalability (incomplete flavors) + hosts: localhost + remote_user: root + roles: + - role: clever + vars: + clever_token: 123abc + clever_secret: cba321 + clever_app: app_00000000-0000-0000-0000-000000000000 + clever_scaling: + flavors: { min: "nano" } -- cgit v1.2.3