Make tests that use kennethreitz retry.

pull/13663/head
Toshio Kuratomi 9 years ago
parent dc0a4e74d6
commit 87214005d2

@ -47,6 +47,12 @@
dest: "{{ output_dir }}/shouldnotexist.html" dest: "{{ output_dir }}/shouldnotexist.html"
ignore_errors: True ignore_errors: True
register: result register: result
# kennethreitz having trouble staying up. Eventually need to install our own
# certs & web server to test this... also need to install and test it with
# a proxy so the complications are inevitable
until: "'read operation timed out' not in result.msg"
retries: 30
delay: 10
- stat: - stat:
path: "{{ output_dir }}/shouldnotexist.html" path: "{{ output_dir }}/shouldnotexist.html"
@ -65,6 +71,9 @@
dest: "{{ output_dir }}/kreitz.html" dest: "{{ output_dir }}/kreitz.html"
validate_certs: no validate_certs: no
register: result register: result
until: "'read operation timed out' not in result.msg"
retries: 30
delay: 10
- stat: - stat:
path: "{{ output_dir }}/kreitz.html" path: "{{ output_dir }}/kreitz.html"

@ -98,6 +98,12 @@
dest: "{{ output_dir }}/shouldnotexist.html" dest: "{{ output_dir }}/shouldnotexist.html"
ignore_errors: True ignore_errors: True
register: result register: result
# kennethreitz having trouble staying up. Eventually need to install our own
# certs & web server to test this... also need to install and test it with
# a proxy so the complications are inevitable
until: "'read operation timed out' not in result.msg"
retries: 30
delay: 10
- stat: - stat:
path: "{{ output_dir }}/shouldnotexist.html" path: "{{ output_dir }}/shouldnotexist.html"
@ -121,6 +127,9 @@
dest: "{{ output_dir }}/kreitz.html" dest: "{{ output_dir }}/kreitz.html"
validate_certs: no validate_certs: no
register: result register: result
until: "'read operation timed out' not in result.msg"
retries: 30
delay: 10
- stat: - stat:
path: "{{ output_dir }}/kreitz.html" path: "{{ output_dir }}/kreitz.html"

Loading…
Cancel
Save