From 0205adef2485fa2d6442927d1ae5c8b2954bcdcd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Moser?= Date: Tue, 31 Mar 2020 16:08:51 +0200 Subject: [PATCH] cloudstack: ci: wait for sys template available (#78) * cloudstack: ci: wait for sys template available * gather all templates * smoke test VM --- .../targets/cs_common/tasks/main.yml | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 tests/integration/targets/cs_common/tasks/main.yml diff --git a/tests/integration/targets/cs_common/tasks/main.yml b/tests/integration/targets/cs_common/tasks/main.yml new file mode 100644 index 0000000000..1b206a07ff --- /dev/null +++ b/tests/integration/targets/cs_common/tasks/main.yml @@ -0,0 +1,23 @@ +--- +- name: wait for system template available + cs_template: + name: "{{ cs_common_template }}" + state: absent + cross_zones: yes + template_filter: all + register: template + check_mode: true + until: template is changed + retries: 20 + delay: 5 + +- name: smoke test instance + cs_instance: + name: smoke-test-vm + template: "{{ cs_common_template }}" + service_offering: "{{ cs_common_service_offering }}" + zone: "{{ cs_common_zone_adv }}" + register: instance + until: instance is successful + retries: 20 + delay: 5