summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMatt Davis <mdavis@ansible.com>2016-10-23 23:14:49 -0700
committerMatt Davis <mdavis@ansible.com>2016-10-24 00:03:42 -0700
commit4d5368e93ba46a8d56ada25162152b9a32002f9a (patch)
tree184be1e67170ac25a9c29397f05acf112de54f5e /test
parent02ed5990351db4bcf52d6d29ef300df8172197f7 (diff)
downloadansible-4d5368e93ba46a8d56ada25162152b9a32002f9a.tar.gz
reenable win_async loop test
(cherry picked from commit 9a782736655f705574cf8558e781cba9d14ba4de)
Diffstat (limited to 'test')
-rw-r--r--test/integration/roles/test_win_async_wrapper/tasks/main.yml52
1 files changed, 25 insertions, 27 deletions
diff --git a/test/integration/roles/test_win_async_wrapper/tasks/main.yml b/test/integration/roles/test_win_async_wrapper/tasks/main.yml
index 3ca0f3e7b9..d3d24bb753 100644
--- a/test/integration/roles/test_win_async_wrapper/tasks/main.yml
+++ b/test/integration/roles/test_win_async_wrapper/tasks/main.yml
@@ -138,33 +138,31 @@
- asyncresult | failed == true
- asyncresult.msg is search('failing via exception')
-
-# this test is only flaky under shippable/AWS- the last iteration "until's" forever, cannot repro locally
-#- name: loop async success
-# async_test:
-# sleep_delay_sec: 3
-# async: 10
-# poll: 0
-# with_sequence: start=1 end=4
-# register: async_many
-#
-#- name: wait for completion
-# async_status:
-# jid: "{{ item }}"
-# register: asyncout
-# until: asyncout.finished == 1
-# retries: 10
-# delay: 1
-# with_items: "{{ async_many.results | map(attribute='ansible_job_id') | list }}"
-#
-#- name: validate results
-# assert:
-# that:
-# - item.finished == 1
-# - item.slept_sec == 3
-# - item.changed == true
-# - item.ansible_job_id is match('\d+\.\d+')
-# with_items: "{{ asyncout.results }}"
+- name: loop async success
+ async_test:
+ sleep_delay_sec: 3
+ async: 10
+ poll: 0
+ with_sequence: start=1 end=4
+ register: async_many
+
+- name: wait for completion
+ async_status:
+ jid: "{{ item }}"
+ register: asyncout
+ until: asyncout.finished == 1
+ retries: 10
+ delay: 1
+ with_items: "{{ async_many.results | map(attribute='ansible_job_id') | list }}"
+
+- name: validate results
+ assert:
+ that:
+ - item.finished == 1
+ - item.slept_sec == 3
+ - item.changed == true
+ - item.ansible_job_id is match('\d+\.\d+')
+ with_items: "{{ asyncout.results }}"
# this part of the test is flaky- Windows PIDs are reused aggressively, so this occasionally fails due to a new process with the same ID
# FUTURE: consider having the test module hook to a kernel object we can poke at that gets signaled/released on exit