ansible/test/integration/targets/prepare_nuage_tests/tasks/main.yml
Sam Doran 911a2ec6d3 Make nuage_vspk test more reliable
- don't background the nuage-vsd-sim
- increase the asncy timeout
- use uri to actually query the simulator API to make sure it is ready for connections
2019-06-26 14:32:23 -07:00

19 lines
446 B
YAML

- 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: 1800
poll: 0
- name: Wait for API to be ready
uri:
url: http://localhost:5000
register: api
delay: 3
retries: 10
until: api.status == 200
when: "ansible_python_version is version('2.7', '>=')"