From c0c9ff23b2d887fbb2c414bf41c6e401722b873f Mon Sep 17 00:00:00 2001 From: Chris Church Date: Wed, 18 Jun 2014 10:07:35 -0500 Subject: [PATCH] Fix win_ping integration test. --- .../roles/test_win_ping/tasks/main.yml | 58 ++++++++----------- 1 file changed, 24 insertions(+), 34 deletions(-) diff --git a/test/integration/roles/test_win_ping/tasks/main.yml b/test/integration/roles/test_win_ping/tasks/main.yml index f3b5fcc4f42..14c517cfa82 100644 --- a/test/integration/roles/test_win_ping/tasks/main.yml +++ b/test/integration/roles/test_win_ping/tasks/main.yml @@ -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'"