summaryrefslogtreecommitdiffstats
path: root/test/integration/targets/connection_windows_ssh/tests.yml
diff options
context:
space:
mode:
authorJordan Borean <jborean93@gmail.com>2019-03-08 01:38:02 +0100
committerMatt Davis <nitzmahone@users.noreply.github.com>2019-03-08 01:38:02 +0100
commit8ef2e6da05333f49988949f973e627b582a27beb (patch)
tree2453b235628fa3d75b58316397900bc1c0750b2f /test/integration/targets/connection_windows_ssh/tests.yml
parentFix ssh_keys: ... docs example for hcloud_server (#53466) (diff)
downloadansible-8ef2e6da05333f49988949f973e627b582a27beb.tar.xz
ansible-8ef2e6da05333f49988949f973e627b582a27beb.zip
Add support for Windows hosts in the SSH connection plugin (#47732)
* Add support for Windows hosts in the SSH connection plugin * fix Python 2.6 unit test and sanity issues * fix up connection tests in CI, disable SCP for now * ensure we don't pollute the existing environment during the test * Add connection_windows_ssh to classifier * use test dir for inventory file * Required powershell as default shell and fix tests * Remove exlicit become_methods on connection * clarify console encoding comment * ignore recent SCP errors in integration tests * Add cmd shell type and added more tests * Fix some doc issues * revises windows faq * add anchors for windows links * revises windows setup page * Update changelogs/fragments/windows-ssh.yaml Co-Authored-By: jborean93 <jborean93@gmail.com>
Diffstat (limited to 'test/integration/targets/connection_windows_ssh/tests.yml')
-rw-r--r--test/integration/targets/connection_windows_ssh/tests.yml32
1 files changed, 32 insertions, 0 deletions
diff --git a/test/integration/targets/connection_windows_ssh/tests.yml b/test/integration/targets/connection_windows_ssh/tests.yml
new file mode 100644
index 0000000000..c1d2908121
--- /dev/null
+++ b/test/integration/targets/connection_windows_ssh/tests.yml
@@ -0,0 +1,32 @@
+---
+- name: test out Windows SSH specific tests
+ hosts: windows-ssh
+ serial: 1
+ gather_facts: no
+
+ tasks:
+ - name: test out become with Windows SSH
+ win_whoami:
+ register: win_ssh_become
+ become: yes
+ become_method: runas
+ become_user: SYSTEM
+
+ - name: assert test out become with Windows SSH
+ assert:
+ that:
+ - win_ssh_become.account.sid == "S-1-5-18"
+
+ - name: test out async with Windows SSH
+ win_shell: Write-Host café
+ async: 20
+ poll: 3
+ register: win_ssh_async
+
+ - name: assert test out async with Windows SSH
+ assert:
+ that:
+ - win_ssh_async is changed
+ - win_ssh_async.rc == 0
+ - win_ssh_async.stdout == "café\n"
+ - win_ssh_async.stderr == ""