summaryrefslogtreecommitdiffstats
path: root/test/integration/targets/reboot/tasks/test_invalid_parameter.yml
diff options
context:
space:
mode:
Diffstat (limited to 'test/integration/targets/reboot/tasks/test_invalid_parameter.yml')
-rw-r--r--test/integration/targets/reboot/tasks/test_invalid_parameter.yml11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/integration/targets/reboot/tasks/test_invalid_parameter.yml b/test/integration/targets/reboot/tasks/test_invalid_parameter.yml
new file mode 100644
index 0000000..f8e1a8f
--- /dev/null
+++ b/test/integration/targets/reboot/tasks/test_invalid_parameter.yml
@@ -0,0 +1,11 @@
+- name: Use invalid parameter
+ reboot:
+ foo: bar
+ ignore_errors: yes
+ register: invalid_parameter
+
+- name: Ensure task fails with error
+ assert:
+ that:
+ - invalid_parameter is failed
+ - "invalid_parameter.msg == 'Invalid options for reboot: foo'"