summaryrefslogtreecommitdiff
path: root/test/integration/targets/prepare_http_tests
diff options
context:
space:
mode:
authorJordan Borean <jborean93@gmail.com>2018-10-19 13:43:54 +1000
committerGitHub <noreply@github.com>2018-10-19 13:43:54 +1000
commitc0546b41331c6928e0d118be2711a382b6a9fefd (patch)
treef303bf9b10bfdd8f08b5750a0a1102d1b63366ab /test/integration/targets/prepare_http_tests
parente758f69ce349c93109473c43ab0152df3b9e2120 (diff)
downloadansible-c0546b41331c6928e0d118be2711a382b6a9fefd.tar.gz
win httptester: add wait for endpoint in case it is still coming up (#47326)
Diffstat (limited to 'test/integration/targets/prepare_http_tests')
-rw-r--r--test/integration/targets/prepare_http_tests/tasks/main.yml11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/integration/targets/prepare_http_tests/tasks/main.yml b/test/integration/targets/prepare_http_tests/tasks/main.yml
index e022fb9dd6..583a24305b 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'