diff options
author | Paul Bonaud <paul.bonaud@fretlink.com> | 2020-06-23 10:52:52 +0200 |
---|---|---|
committer | Paul Bonaud <paul.bonaud@fretlink.com> | 2020-06-23 10:52:52 +0200 |
commit | fd2e4788a034e76b25001dc11d56e05ba9f428b5 (patch) | |
tree | 955e54e32a2b3e4795077e1e80c3bd6319230333 | |
parent | ab73076c017bfc8abbe62e617292ef7232b630f1 (diff) | |
download | ansible-clever-fd2e4788a034e76b25001dc11d56e05ba9f428b5.tar.gz ansible-clever-fd2e4788a034e76b25001dc11d56e05ba9f428b5.tar.zst ansible-clever-fd2e4788a034e76b25001dc11d56e05ba9f428b5.zip |
tests: Add tests for the new 'restart' feature
-rw-r--r-- | .travis.yml | 5 | ||||
-rw-r--r-- | tests/test-all.yml | 6 | ||||
-rw-r--r-- | tests/test-restart-app.yml | 11 |
3 files changed, 18 insertions, 4 deletions
diff --git a/.travis.yml b/.travis.yml index 92f6295..7ce4540 100644 --- a/.travis.yml +++ b/.travis.yml | |||
@@ -26,10 +26,7 @@ script: | |||
26 | - mkdir -p ~/.local/bin | 26 | - mkdir -p ~/.local/bin |
27 | - cp tests/fake.sh ~/.local/bin/clever | 27 | - cp tests/fake.sh ~/.local/bin/clever |
28 | - cp tests/fake.sh ~/.local/bin/git | 28 | - cp tests/fake.sh ~/.local/bin/git |
29 | - ansible-playbook tests/test-simple-app.yml -i tests/inventory | 29 | - ansible-playbook -i tests/inventory tests/test-all.yml |
30 | - ansible-playbook tests/test-haskell-app.yml -i tests/inventory | ||
31 | - ansible-playbook tests/test-configure-app.yml -i tests/inventory | ||
32 | - ansible-playbook tests/test-scalability.yml -i tests/inventory | ||
33 | 30 | ||
34 | notifications: | 31 | notifications: |
35 | slack: fretlink:pTIylIN7zkwRFuL3aHERmsbB | 32 | 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 @@ | |||
1 | --- | ||
2 | - import_playbook: ./test-simple-app.yml | ||
3 | - import_playbook: ./test-configure-app.yml | ||
4 | - import_playbook: ./test-haskell-app.yml | ||
5 | - import_playbook: ./test-scalability.yml | ||
6 | - 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 @@ | |||
1 | --- | ||
2 | - name: Restart app on clever | ||
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_restart_only: true | ||