From 90fc6c6881b2f14084336a536c21334d0bb94bfa Mon Sep 17 00:00:00 2001 From: Chris Church Date: Mon, 18 Aug 2014 07:49:01 -0400 Subject: [PATCH] Added winrm test for long-running command. --- test/integration/roles/test_win_raw/tasks/main.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/test/integration/roles/test_win_raw/tasks/main.yml b/test/integration/roles/test_win_raw/tasks/main.yml index aa15de9bc7..c51ba4b2cc 100644 --- a/test/integration/roles/test_win_raw/tasks/main.yml +++ b/test/integration/roles/test_win_raw/tasks/main.yml @@ -70,3 +70,16 @@ - "unknown_result.stderr" # An unknown command displays error on stderr. - "unknown_result|failed" - "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"