summaryrefslogtreecommitdiff
path: root/test/integration/targets/script/tasks/main.yml
diff options
context:
space:
mode:
Diffstat (limited to 'test/integration/targets/script/tasks/main.yml')
-rw-r--r--test/integration/targets/script/tasks/main.yml11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/integration/targets/script/tasks/main.yml b/test/integration/targets/script/tasks/main.yml
index 74189f81..668ec48e 100644
--- a/test/integration/targets/script/tasks/main.yml
+++ b/test/integration/targets/script/tasks/main.yml
@@ -37,6 +37,17 @@
## script
##
+- name: Required one of free-form and cmd
+ script:
+ ignore_errors: yes
+ register: script_required
+
+- name: assert that the script fails if neither free-form nor cmd is given
+ assert:
+ that:
+ - script_required.failed
+ - "'one of the following' in script_required.msg"
+
- name: execute the test.sh script via command
script: test.sh
register: script_result0