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` --- .travis.yml | 1 + tests/test-scalability.yml | 37 +++++++++++++++++++++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 tests/test-scalability.yml diff --git a/.travis.yml b/.travis.yml index 752366f..d287c26 100644 --- a/.travis.yml +++ b/.travis.yml @@ -30,6 +30,7 @@ script: - ansible-playbook tests/test-simple-app.yml -i tests/inventory - ansible-playbook tests/test-haskell-app.yml -i tests/inventory - ansible-playbook tests/test-configure-app.yml -i tests/inventory + - ansible-playbook tests/test-scalability.yml -i tests/inventory notifications: slack: fretlink:pTIylIN7zkwRFuL3aHERmsbB 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