Add explicit winrm/psrp tests for HTTP and HTTPS (#83769) (#83808)

(cherry picked from commit dec49e6288)
pull/84196/head
Jordan Borean 1 month ago committed by GitHub
parent 8f04327114
commit f7e155973b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -126,3 +126,16 @@
path: /tmp/empty.txt
state: absent
delegate_to: localhost
- name: Test PSRP HTTP connection
win_ping:
vars:
ansible_port: 5985
ansible_psrp_protocol: http
- name: Test PSRP HTTPS connection
win_ping:
vars:
ansible_port: 5986
ansible_psrp_protocol: https
ansible_psrp_cert_validation: ignore

@ -41,3 +41,17 @@
- assert:
that:
- timeout_cmd.msg == 'The win_shell action failed to execute in the expected time frame (5) and was terminated'
- name: Test WinRM HTTP connection
win_ping:
vars:
ansible_port: 5985
ansible_winrm_scheme: http
ansible_winrm_transport: ntlm # Verifies message encryption over HTTP
- name: Test WinRM HTTPS connection
win_ping:
vars:
ansible_port: 5986
ansible_winrm_scheme: https
ansible_winrm_server_cert_validation: ignore

Loading…
Cancel
Save