Add a simple test of the install-nodejs role
Change-Id: Ib0e5e3ffa418827746317d0bdf6196a7b38fc0db
This commit is contained in:
parent
2a5822ea8b
commit
10aa1b5432
@ -6,4 +6,5 @@ repository. They are not meant for general consumption and are only
|
|||||||
expected to be run by the OpenDev Zuul. Generally you can ignore
|
expected to be run by the OpenDev Zuul. Generally you can ignore
|
||||||
these unless you are making changes to the roles in this repository.
|
these unless you are making changes to the roles in this repository.
|
||||||
|
|
||||||
|
.. zuul:autojob:: zuul-jobs-test-install-nodejs
|
||||||
.. zuul:autojob:: zuul-jobs-test-registry
|
.. zuul:autojob:: zuul-jobs-test-registry
|
||||||
|
5
test-playbooks/simple-role-test.yaml
Normal file
5
test-playbooks/simple-role-test.yaml
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
- hosts: all
|
||||||
|
tasks:
|
||||||
|
- name: Include tested role
|
||||||
|
include_role:
|
||||||
|
name: "{{ role_name }}"
|
11
zuul.d/test-js-roles-jobs.yaml
Normal file
11
zuul.d/test-js-roles-jobs.yaml
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
# Jobs which test roles listed in js-roles.rst
|
||||||
|
|
||||||
|
- job:
|
||||||
|
name: zuul-jobs-test-install-nodejs
|
||||||
|
description: Test the install-nodejs role
|
||||||
|
files:
|
||||||
|
- roles/install-nodejs/.*
|
||||||
|
run:
|
||||||
|
test-playbooks/simple-role-test.yaml
|
||||||
|
vars:
|
||||||
|
role_name: install-nodejs
|
Loading…
Reference in New Issue
Block a user