From 7714f691eb93c8e360912a70e8b63cf3d16674c9 Mon Sep 17 00:00:00 2001 From: Abhijeet Kasurde Date: Thu, 16 Apr 2020 15:00:34 +0530 Subject: [PATCH] wait_for simplehttpserver to come up online Signed-off-by: Abhijeet Kasurde --- test/integration/targets/get_url/tasks/main.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/integration/targets/get_url/tasks/main.yml b/test/integration/targets/get_url/tasks/main.yml index 0a7d1b142d9..052bde222a2 100644 --- a/test/integration/targets/get_url/tasks/main.yml +++ b/test/integration/targets/get_url/tasks/main.yml @@ -368,6 +368,12 @@ async: 90 poll: 0 +- name: Wait for SimpleHTTPServer to come up online + wait_for: + host: 'localhost' + port: '{{ http_port }}' + state: started + - name: download src with sha1 checksum url get_url: url: 'http://localhost:{{ http_port }}/27617.txt'