summaryrefslogtreecommitdiffstats
path: root/test/integration/targets/win_become/tasks
diff options
context:
space:
mode:
authorJordan Borean <jborean93@gmail.com>2018-04-05 23:59:51 +0200
committerMatt Davis <nitzmahone@users.noreply.github.com>2018-04-05 23:59:51 +0200
commit71e8527d7cc5ac9110ac6b440e6c389de4a09763 (patch)
tree3392efa7377c5fde3dd73fe64eb9287188c35728 /test/integration/targets/win_become/tasks
parentwin_setup: Added connection name to interfaces (#37327) (diff)
downloadansible-71e8527d7cc5ac9110ac6b440e6c389de4a09763.tar.xz
ansible-71e8527d7cc5ac9110ac6b440e6c389de4a09763.zip
powershell: display non-ascii characters in command outputs (#37229)
Diffstat (limited to 'test/integration/targets/win_become/tasks')
-rw-r--r--test/integration/targets/win_become/tasks/main.yml14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/integration/targets/win_become/tasks/main.yml b/test/integration/targets/win_become/tasks/main.yml
index a2ec24b604..a71e2bb9c9 100644
--- a/test/integration/targets/win_become/tasks/main.yml
+++ b/test/integration/targets/win_become/tasks/main.yml
@@ -266,6 +266,20 @@
- become_netcredentials.label.account_name == 'High Mandatory Level'
- become_netcredentials.label.sid == 'S-1-16-12288'
+ - name: echo some non ascii characters
+ win_command: cmd.exe /c echo über den Fußgängerübergang gehen
+ vars: *become_vars
+ register: nonascii_output
+
+ - name: assert echo some non ascii characters
+ assert:
+ that:
+ - nonascii_output is changed
+ - nonascii_output.rc == 0
+ - nonascii_output.stdout_lines|count == 1
+ - nonascii_output.stdout_lines[0] == 'über den Fußgängerübergang gehen'
+ - nonascii_output.stderr == ''
+
# FUTURE: test raw + script become behavior once they're running under the exec wrapper again
# FUTURE: add standalone playbook tests to include password prompting and play become keywords