mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Added winrm test for long-running command.
This commit is contained in:
parent
f4d649bea0
commit
90fc6c6881
1 changed files with 13 additions and 0 deletions
|
@ -70,3 +70,16 @@
|
||||||
- "unknown_result.stderr" # An unknown command displays error on stderr.
|
- "unknown_result.stderr" # An unknown command displays error on stderr.
|
||||||
- "unknown_result|failed"
|
- "unknown_result|failed"
|
||||||
- "not unknown_result|changed"
|
- "not unknown_result|changed"
|
||||||
|
|
||||||
|
- name: run a command that takes longer than 60 seconds
|
||||||
|
raw: PowerShell -Command Start-Sleep -s 75
|
||||||
|
register: sleep_command
|
||||||
|
|
||||||
|
- name: assert that the sleep command ran
|
||||||
|
assert:
|
||||||
|
that:
|
||||||
|
- "sleep_command.rc == 0"
|
||||||
|
- "not sleep_command.stdout"
|
||||||
|
- "not sleep_command.stderr"
|
||||||
|
- "not sleep_command|failed"
|
||||||
|
- "not sleep_command|changed"
|
||||||
|
|
Loading…
Reference in a new issue