summaryrefslogtreecommitdiffstats
path: root/test/integration/targets/win_exec_wrapper/library/test_invalid_requires.ps1
diff options
context:
space:
mode:
Diffstat (limited to 'test/integration/targets/win_exec_wrapper/library/test_invalid_requires.ps1')
-rw-r--r--test/integration/targets/win_exec_wrapper/library/test_invalid_requires.ps19
1 files changed, 9 insertions, 0 deletions
diff --git a/test/integration/targets/win_exec_wrapper/library/test_invalid_requires.ps1 b/test/integration/targets/win_exec_wrapper/library/test_invalid_requires.ps1
new file mode 100644
index 0000000..89727ef
--- /dev/null
+++ b/test/integration/targets/win_exec_wrapper/library/test_invalid_requires.ps1
@@ -0,0 +1,9 @@
+#!powershell
+
+#Requires -Module Ansible.ModuleUtils.Legacy
+# Requires -Version 20
+# AnsibleRequires -OSVersion 20
+
+# requires statement must be straight after the original # with now space, this module won't fail
+
+Exit-Json -obj @{ output = "output"; changed = $false }