diff options
Diffstat (limited to 'test/integration/targets/prepare_nuage_tests/tasks/main.yml')
-rw-r--r-- | test/integration/targets/prepare_nuage_tests/tasks/main.yml | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/test/integration/targets/prepare_nuage_tests/tasks/main.yml b/test/integration/targets/prepare_nuage_tests/tasks/main.yml index f988342e5e..11408971c3 100644 --- a/test/integration/targets/prepare_nuage_tests/tasks/main.yml +++ b/test/integration/targets/prepare_nuage_tests/tasks/main.yml @@ -1,16 +1,19 @@ ---- - block: - name: Install Nuage VSD API Simulator pip: name: nuage-vsd-sim - name: Start Nuage VSD API Simulator - shell: "(cd /; nuage-vsd-sim >/dev/null 2>&1 &)" - async: 10 + shell: "(cd /; nuage-vsd-sim >/dev/null 2>&1)" + async: 1800 poll: 0 - name: Wait for API to be ready - wait_for: - port: 5000 + uri: + url: http://localhost:5000 + register: api + delay: 3 + retries: 10 + until: api.status == 200 when: "ansible_python_version is version('2.7', '>=')" |