mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-27 15:11:23 -07:00
Fix win_ping integration test.
This commit is contained in:
parent
21ba529fbe
commit
c0c9ff23b2
1 changed files with 24 additions and 34 deletions
|
@ -22,45 +22,35 @@
|
||||||
- "not win_ping_with_data_result|changed"
|
- "not win_ping_with_data_result|changed"
|
||||||
- "win_ping_with_data_result.ping == 'blah'"
|
- "win_ping_with_data_result.ping == 'blah'"
|
||||||
|
|
||||||
- name: test ping.ps1 with data
|
#- name: test local ping (should use default ping)
|
||||||
ping.ps1: data=bleep
|
# local_action: ping
|
||||||
register: ping_ps1_result
|
# register: local_ping_result
|
||||||
|
|
||||||
- name: check ping.ps1 result
|
#- name: check local ping result
|
||||||
assert:
|
|
||||||
that:
|
|
||||||
- "not ping_ps1_result|failed"
|
|
||||||
- "not ping_ps1_result|changed"
|
|
||||||
- "ping_ps1_result.ping == 'bleep'"
|
|
||||||
|
|
||||||
#- name: test ping.ps1 with invalid args
|
|
||||||
# ping.ps1: arg=invalid
|
|
||||||
# register: ping_ps1_invalid_args_result
|
|
||||||
|
|
||||||
#- name: check that ping.ps1 with invalid args fails
|
|
||||||
# assert:
|
# assert:
|
||||||
# that:
|
# that:
|
||||||
# - "ping_ps1_invalid_args_result|failed"
|
# - "not local_ping_result|failed"
|
||||||
# - "ping_ps1_invalid_args_result.msg"
|
# - "not local_ping_result|changed"
|
||||||
|
# - "local_ping_result.ping == 'pong'"
|
||||||
|
|
||||||
- name: test local ping (should use default ping)
|
- name: test win_ping.ps1 with data
|
||||||
local_action: ping
|
win_ping.ps1: data=bleep
|
||||||
register: local_ping_result
|
register: win_ping_ps1_result
|
||||||
|
|
||||||
- name: check local ping result
|
- name: check win_ping.ps1 result with data
|
||||||
assert:
|
assert:
|
||||||
that:
|
that:
|
||||||
- "not local_ping_result|failed"
|
- "not win_ping_ps1_result|failed"
|
||||||
- "not local_ping_result|changed"
|
- "not win_ping_ps1_result|changed"
|
||||||
- "local_ping_result.ping == 'pong'"
|
- "win_ping_ps1_result.ping == 'bleep'"
|
||||||
|
|
||||||
- name: test ping (should use ping.ps1)
|
#- name: test win_ping with invalid args
|
||||||
action: ping
|
# win_ping: arg=invalid
|
||||||
register: ping_result
|
# register: win_ping_ps1_invalid_args_result
|
||||||
|
|
||||||
|
#- name: check that win_ping.ps1 with invalid args fails
|
||||||
|
# assert:
|
||||||
|
# that:
|
||||||
|
# - "win_ping_ps1_invalid_args_result|failed"
|
||||||
|
# - "win_ping_ps1_invalid_args_result.msg"
|
||||||
|
|
||||||
- name: check ping result
|
|
||||||
assert:
|
|
||||||
that:
|
|
||||||
- "not ping_result|failed"
|
|
||||||
- "not ping_result|changed"
|
|
||||||
- "ping_result.ping == 'pong'"
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue