diff options
author | Clément Delafargue <39330590+clementd-fretlink@users.noreply.github.com> | 2020-06-30 16:31:26 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-30 16:31:26 +0200 |
commit | 90634ee04cc1a4ab983de6bf142f25978463bc4a (patch) | |
tree | 3b1fa1a9e85d57dbf4f4071321f9011343f40ac6 /tests/test-restart-app.yml | |
parent | 44e55b1d81f5defe28249d6b70b894c1ebad7c91 (diff) | |
parent | db630aaa8b261503076eb7320ee3cee5a5582be8 (diff) | |
download | ansible-clever-90634ee04cc1a4ab983de6bf142f25978463bc4a.tar.gz ansible-clever-90634ee04cc1a4ab983de6bf142f25978463bc4a.tar.zst ansible-clever-90634ee04cc1a4ab983de6bf142f25978463bc4a.zip |
Merge pull request #72 from clementd-fretlink/noop-if-up-to-date
don't run `clever deploy` if the app is up-to-date
Diffstat (limited to 'tests/test-restart-app.yml')
-rw-r--r-- | tests/test-restart-app.yml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test-restart-app.yml b/tests/test-restart-app.yml index 4c13a14..bc880a8 100644 --- a/tests/test-restart-app.yml +++ b/tests/test-restart-app.yml | |||
@@ -15,16 +15,16 @@ | |||
15 | clever_restart_only: true | 15 | clever_restart_only: true |
16 | post_tasks: | 16 | post_tasks: |
17 | - name: Check stubbed commands | 17 | - name: Check stubbed commands |
18 | command: "{{ item.cmd }}" | 18 | shell: "{{ item.cmd }}" |
19 | ignore_errors: true | 19 | ignore_errors: true |
20 | vars: | 20 | vars: |
21 | display: "{{ item.display }}" | 21 | display: "{{ item.display }}" |
22 | with_list: | 22 | with_list: |
23 | - cmd: "grep restart ../clever-commands" | 23 | - cmd: "grep restart ../clever-commands" |
24 | display: "Expected 'clever restart' command to be called" | 24 | display: "Expected 'clever restart' command to be called" |
25 | - cmd: "grep -v deploy ../clever-commands" | 25 | - cmd: "! grep deploy ../clever-commands" |
26 | display: "Expected 'clever deploy' command to NOT be called" | 26 | display: "Expected 'clever deploy' command to NOT be called" |
27 | - cmd: "grep -v scale ../clever-commands" | 27 | - cmd: "! grep scale ../clever-commands" |
28 | display: "Expected 'clever scale' command to NOT be called" | 28 | display: "Expected 'clever scale' command to NOT be called" |
29 | register: tests_results | 29 | register: tests_results |
30 | - name: show results | 30 | - name: show results |