diff options
author | Jordan Borean <jborean93@gmail.com> | 2024-08-20 00:59:07 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-20 00:59:07 +0200 |
commit | 69fb629355823e6f909ae21ee7bd068d17d3f6e9 (patch) | |
tree | 7590cbe8c91831c54ddef39aebe7c050b2794bc1 /test/integration/targets/windows-minimal/tasks/main.yml | |
parent | connection plugins: extras fix (#83353) (diff) | |
download | ansible-69fb629355823e6f909ae21ee7bd068d17d3f6e9.tar.xz ansible-69fb629355823e6f909ae21ee7bd068d17d3f6e9.zip |
Fix up raw_params for ansible.windows modules (#83830)
* Fix up raw_params for ansible.windows modules
Fixes up the logic for detecting if using ansible.windows.win_command or
ansible.windows.win_shell with _raw_params. These two modules are
special in that they can be referenced in 4 different ways but the
ansible.windows collection specific prefix needs to be manually added to
the list.
* Fix up sanity issue
Diffstat (limited to '')
-rw-r--r-- | test/integration/targets/windows-minimal/tasks/main.yml | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/test/integration/targets/windows-minimal/tasks/main.yml b/test/integration/targets/windows-minimal/tasks/main.yml index a7e6ba7fc4..1e075d7a61 100644 --- a/test/integration/targets/windows-minimal/tasks/main.yml +++ b/test/integration/targets/windows-minimal/tasks/main.yml @@ -65,3 +65,23 @@ - win_ping_crash_result is not changed - 'win_ping_crash_result.msg == "Unhandled exception while executing module: boom"' - '"throw \"boom\"" in win_ping_crash_result.exception' + +- name: verify that shortname _raw_params works + win_shell: echo "name=foo" + register: win_shell_short_res + failed_when: win_shell_short_res.stdout | trim != 'name=foo' + +- name: verify that legacy _raw_params works + ansible.legacy.win_shell: echo "name=foo" + register: win_shell_legacy_res + failed_when: win_shell_legacy_res.stdout | trim != 'name=foo' + +- name: verify that builtin _raw_params works + ansible.builtin.win_shell: echo "name=foo" + register: win_shell_builtin_res + failed_when: win_shell_builtin_res.stdout | trim != 'name=foo' + +- name: verify that collection _raw_params works + ansible.windows.win_shell: echo "name=foo" + register: win_shell_collection_res + failed_when: win_shell_collection_res.stdout | trim != 'name=foo' |