From 7f4945a8f1233e1c95a6524fb276b6a8b0933674 Mon Sep 17 00:00:00 2001 From: Jordan Borean Date: Fri, 19 Oct 2018 13:43:54 +1000 Subject: [PATCH] win httptester: add wait for endpoint in case it is still coming up (#47326) (cherry picked from commit c0546b41331c6928e0d118be2711a382b6a9fefd) --- .../targets/prepare_http_tests/tasks/main.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/test/integration/targets/prepare_http_tests/tasks/main.yml b/test/integration/targets/prepare_http_tests/tasks/main.yml index e022fb9dd6e..583a24305bf 100644 --- a/test/integration/targets/prepare_http_tests/tasks/main.yml +++ b/test/integration/targets/prepare_http_tests/tasks/main.yml @@ -13,6 +13,17 @@ # Override hostname defaults with httptester linked names - include_vars: httptester.yml + # Server 2008 R2 uses a 3rd party program to foward the ports and it may + # not be ready straight away, we give it at least 5 minutes before + # conceding defeat + - name: make sure the port forwarder is active - Windows + win_wait_for: + host: ansible.http.tests + port: 80 + state: started + timeout: 300 + when: ansible_os_family == 'Windows' + - name: RedHat - Enable the dynamic CA configuration feature command: update-ca-trust force-enable when: ansible_os_family == 'RedHat'