Added job for testing roles
Change-Id: I99b781989aa68e73c49ad49a3c54f4c028acb2d9
This commit is contained in:
parent
517cf775c9
commit
3d52bbb2ed
18
tests/ansible/role-test-runner.yaml
Normal file
18
tests/ansible/role-test-runner.yaml
Normal 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
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user