|
|
|
@ -22,45 +22,35 @@
|
|
|
|
|
- "not win_ping_with_data_result|changed"
|
|
|
|
|
- "win_ping_with_data_result.ping == 'blah'"
|
|
|
|
|
|
|
|
|
|
- name: test ping.ps1 with data
|
|
|
|
|
ping.ps1: data=bleep
|
|
|
|
|
register: ping_ps1_result
|
|
|
|
|
#- name: test local ping (should use default ping)
|
|
|
|
|
# local_action: ping
|
|
|
|
|
# register: local_ping_result
|
|
|
|
|
|
|
|
|
|
- name: check ping.ps1 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
|
|
|
|
|
#- name: check local ping result
|
|
|
|
|
# assert:
|
|
|
|
|
# that:
|
|
|
|
|
# - "ping_ps1_invalid_args_result|failed"
|
|
|
|
|
# - "ping_ps1_invalid_args_result.msg"
|
|
|
|
|
# that:
|
|
|
|
|
# - "not local_ping_result|failed"
|
|
|
|
|
# - "not local_ping_result|changed"
|
|
|
|
|
# - "local_ping_result.ping == 'pong'"
|
|
|
|
|
|
|
|
|
|
- name: test local ping (should use default ping)
|
|
|
|
|
local_action: ping
|
|
|
|
|
register: local_ping_result
|
|
|
|
|
- name: test win_ping.ps1 with data
|
|
|
|
|
win_ping.ps1: data=bleep
|
|
|
|
|
register: win_ping_ps1_result
|
|
|
|
|
|
|
|
|
|
- name: check local ping result
|
|
|
|
|
- name: check win_ping.ps1 result with data
|
|
|
|
|
assert:
|
|
|
|
|
that:
|
|
|
|
|
- "not local_ping_result|failed"
|
|
|
|
|
- "not local_ping_result|changed"
|
|
|
|
|
- "local_ping_result.ping == 'pong'"
|
|
|
|
|
- "not win_ping_ps1_result|failed"
|
|
|
|
|
- "not win_ping_ps1_result|changed"
|
|
|
|
|
- "win_ping_ps1_result.ping == 'bleep'"
|
|
|
|
|
|
|
|
|
|
- name: test ping (should use ping.ps1)
|
|
|
|
|
action: ping
|
|
|
|
|
register: ping_result
|
|
|
|
|
#- name: test win_ping with invalid args
|
|
|
|
|
# win_ping: arg=invalid
|
|
|
|
|
# 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'"
|
|
|
|
|