Skip to content

Commit

Permalink
playbooks: add a playbook to run all Cukinia's tests
Browse files Browse the repository at this point in the history
The playbook will run all tests defined in /etc/cukinia/cukinia.conf.

Signed-off-by: Mathieu Dupré <[email protected]>
  • Loading branch information
dupremathieu committed Nov 14, 2023
1 parent c0af9a5 commit 16a44de
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions playbooks/ci_all_machines_tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Copyright (C) 2023 Savoir-faire Linux, Inc.
# SPDX-License-Identifier: Apache-2.0

# Ansible playbook that runs all Cukinia's tests.

---
- hosts: "{{ machines_tested | default('cluster_machines') }}"
name: Cukinia tests
tasks:
- name: Create temporary Cukinia directory
tempfile:
state: directory
register: tmp_cukinia_dir
- name: Common tests
shell:
cmd: >-
MACHINENAME={{ cukinia_namespace | default(inventory_hostname) }}
cukinia -f junitxml -o {{ tmp_cukinia_dir.path }}/cukinia.xml
/etc/cukinia/cukinia.conf || true
- name: Fetch result
fetch:
src: '{{ tmp_cukinia_dir.path }}/cukinia.xml'
dest: >-
{{ cukinia_test_prefix | default('.') }}/all/{{ inventory_hostname
}}/cukinia.xml
flat: yes

0 comments on commit 16a44de

Please sign in to comment.