airshipctl/tests/ansible/role-test-runner.yaml
Stanislav Egorov 3d52bbb2ed Added job for testing roles
Change-Id: I99b781989aa68e73c49ad49a3c54f4c028acb2d9
2020-03-02 20:25:50 -08:00

19 lines
537 B
YAML

---
- hosts: primary
tasks:
- name: set default roles
set_fact:
test_subject_roles_default:
- libvirt-network
- libvirt-pool
- libvirt-volume
- libvirt-domain
- redfish-emulator
- airship-libvirt-gate
- http-fileserver
- name: run tests against defined roles
include_tasks: "../../roles/{{ role_name }}/tests/main.yaml"
with_items: "{{ test_subject_roles | default(test_subject_roles_default) }}"
loop_control:
loop_var: role_name