Browse Source

Add a simple test of the install-nodejs role

Change-Id: Ib0e5e3ffa418827746317d0bdf6196a7b38fc0db
changes/43/668043/2
James E. Blair 1 month ago
parent
commit
10aa1b5432
3 changed files with 17 additions and 0 deletions
  1. 1
    0
      doc/source/test-jobs.rst
  2. 5
    0
      test-playbooks/simple-role-test.yaml
  3. 11
    0
      zuul.d/test-js-roles-jobs.yaml

+ 1
- 0
doc/source/test-jobs.rst View File

@@ -6,4 +6,5 @@ repository.  They are not meant for general consumption and are only
6 6
 expected to be run by the OpenDev Zuul.  Generally you can ignore
7 7
 these unless you are making changes to the roles in this repository.
8 8
 
9
+.. zuul:autojob:: zuul-jobs-test-install-nodejs
9 10
 .. zuul:autojob:: zuul-jobs-test-registry

+ 5
- 0
test-playbooks/simple-role-test.yaml View File

@@ -0,0 +1,5 @@
1
+- hosts: all
2
+  tasks:
3
+    - name: Include tested role
4
+      include_role:
5
+        name: "{{ role_name }}"

+ 11
- 0
zuul.d/test-js-roles-jobs.yaml View File

@@ -0,0 +1,11 @@
1
+# Jobs which test roles listed in js-roles.rst
2
+
3
+- job:
4
+    name: zuul-jobs-test-install-nodejs
5
+    description: Test the install-nodejs role
6
+    files:
7
+      - roles/install-nodejs/.*
8
+    run:
9
+      test-playbooks/simple-role-test.yaml
10
+    vars:
11
+      role_name: install-nodejs

Loading…
Cancel
Save