From fd2e4788a034e76b25001dc11d56e05ba9f428b5 Mon Sep 17 00:00:00 2001 From: Paul Bonaud Date: Tue, 23 Jun 2020 10:52:52 +0200 Subject: tests: Add tests for the new 'restart' feature --- .travis.yml | 5 +---- tests/test-all.yml | 6 ++++++ tests/test-restart-app.yml | 11 +++++++++++ 3 files changed, 18 insertions(+), 4 deletions(-) create mode 100644 tests/test-all.yml create mode 100644 tests/test-restart-app.yml diff --git a/.travis.yml b/.travis.yml index 92f6295..7ce4540 100644 --- a/.travis.yml +++ b/.travis.yml @@ -26,10 +26,7 @@ script: - mkdir -p ~/.local/bin - cp tests/fake.sh ~/.local/bin/clever - cp tests/fake.sh ~/.local/bin/git - - 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 + - ansible-playbook -i tests/inventory tests/test-all.yml notifications: slack: fretlink:pTIylIN7zkwRFuL3aHERmsbB diff --git a/tests/test-all.yml b/tests/test-all.yml new file mode 100644 index 0000000..64eb239 --- /dev/null +++ b/tests/test-all.yml @@ -0,0 +1,6 @@ +--- +- import_playbook: ./test-simple-app.yml +- import_playbook: ./test-configure-app.yml +- import_playbook: ./test-haskell-app.yml +- import_playbook: ./test-scalability.yml +- import_playbook: ./test-restart-app.yml diff --git a/tests/test-restart-app.yml b/tests/test-restart-app.yml new file mode 100644 index 0000000..09d9936 --- /dev/null +++ b/tests/test-restart-app.yml @@ -0,0 +1,11 @@ +--- +- name: Restart app on clever + hosts: localhost + remote_user: root + roles: + - role: clever + vars: + clever_token: 123abc + clever_secret: cba321 + clever_app: app_00000000-0000-0000-0000-000000000000 + clever_restart_only: true -- cgit v1.2.3