mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
psrp - Fix raw and script tests for connection plugin (#55357)
* psrp - Fix raw and script tests for connection plugin * Fix error propagation with raw in psrp * uncomment test
This commit is contained in:
@@ -71,11 +71,22 @@
|
||||
assert:
|
||||
that:
|
||||
- test_script_with_large_args_result.rc == 0
|
||||
- test_script_with_large_args_result.stdout == long_string + "\r\n"
|
||||
- not test_script_with_large_args_result.stderr
|
||||
- test_script_with_large_args_result is not failed
|
||||
- test_script_with_large_args_result is changed
|
||||
|
||||
- name: check that script ran and received arguments correctly with winrm output
|
||||
assert:
|
||||
that:
|
||||
- test_script_with_large_args_result.stdout == long_string + "\r\n"
|
||||
when: ansible_connection != 'psrp'
|
||||
|
||||
- name: check that script ran and received arguments correctly with psrp output
|
||||
assert:
|
||||
that:
|
||||
- test_script_with_large_args_result.stdout == long_string
|
||||
when: ansible_connection == 'psrp'
|
||||
|
||||
- name: run test script that takes parameters passed via splatting
|
||||
script: test_script_with_splatting.ps1 @{ This = 'this'; That = '{{ test_win_script_value }}'; Other = 'other'}
|
||||
register: test_script_with_splatting_result
|
||||
|
||||
Reference in New Issue
Block a user