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

pull/83814/head
Jordan Borean 3 months ago committed by GitHub
parent 430aaa1960
commit dec49e6288
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -126,3 +126,16 @@
path: /tmp/empty.txt path: /tmp/empty.txt
state: absent state: absent
delegate_to: localhost 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

@ -42,6 +42,20 @@
that: that:
- timeout_cmd.msg == 'The win_shell action failed to execute in the expected time frame (5) and was terminated' - 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
- name: get WinRM quota value - name: get WinRM quota value
win_shell: (Get-Item WSMan:\localhost\Service\MaxConcurrentOperationsPerUser).Value win_shell: (Get-Item WSMan:\localhost\Service\MaxConcurrentOperationsPerUser).Value
changed_when: false changed_when: false

Loading…
Cancel
Save