Added job for testing roles

Change-Id: I99b781989aa68e73c49ad49a3c54f4c028acb2d9
This commit is contained in:
Stanislav Egorov 2020-02-20 15:15:50 -08:00
parent 517cf775c9
commit 3d52bbb2ed
3 changed files with 26 additions and 0 deletions

View File

@ -0,0 +1,18 @@
---
- 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

View File

@ -10,6 +10,11 @@
# See the License for the specific language governing permissions and
# limitations under the License.
- job:
name: airship-airshipctl-roles-test
run: tests/ansible/role-test-runner.yaml
nodeset: airship-airshipctl-single-node
- job:
name: airship-airshipctl-build-docs
nodeset: airship-airshipctl-single-node

View File

@ -16,6 +16,9 @@
rtd_webhook_id: 112688
check:
jobs:
- airship-airshipctl-roles-test:
files:
- "roles/*"
- airship-airshipctl-build-docs
- airship-airshipctl-lint-unit
- airship-airshipctl-build-image