diff options
author | Jordan Borean <jborean93@gmail.com> | 2024-08-23 03:10:12 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-23 03:10:12 +0200 |
commit | b5e0293645570f3f404ad1dbbe5f006956ada0df (patch) | |
tree | 92a57e72ff6fd638c1f46b3163e0de9fe6cf55a0 /test/integration/targets | |
parent | Handle authentication errors and token expiration (#83695) (diff) | |
download | ansible-b5e0293645570f3f404ad1dbbe5f006956ada0df.tar.xz ansible-b5e0293645570f3f404ad1dbbe5f006956ada0df.zip |
powershell - Improve CLIXML parsing (#83847)
Improves the logic used when parsing CLIXML to support all escaped
character sequences and not just newlines.
Diffstat (limited to 'test/integration/targets')
-rw-r--r-- | test/integration/targets/connection_winrm/tests.yml | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/integration/targets/connection_winrm/tests.yml b/test/integration/targets/connection_winrm/tests.yml index 9ef7682be8..36be126aca 100644 --- a/test/integration/targets/connection_winrm/tests.yml +++ b/test/integration/targets/connection_winrm/tests.yml @@ -72,3 +72,12 @@ always: - name: reset WinRM quota value win_shell: Set-Item WSMan:\localhost\Service\MaxConcurrentOperationsPerUser {{ winrm_quota.stdout | trim }} + + - name: emit raw CLIXML on stderr with special chars + raw: $host.UI.WriteErrorLine("Test 🎵 _x005F_ _x005Z_.") + register: stderr_clixml + + - name: assert emit raw CLIXML on stderr with special chars + assert: + that: + - stderr_clixml.stderr_lines == ['Test 🎵 _x005F_ _x005Z_.'] |