Add integration test jobs for the configure-mirror role

Change-Id: I8a64a7158e2b98e76b25cb9352b98694d5b924b1
This commit is contained in:
David Moreau-Simard 2017-09-06 22:30:34 -04:00
parent 8f28435e35
commit d55de6e54b
4 changed files with 56 additions and 0 deletions

View File

@ -0,0 +1,5 @@
zuul-jobs integration tests
---------------------------
This directory contains playbooks and files that are meant to be used for
self-testing the zuul-jobs project.

View File

@ -0,0 +1 @@
- include: configure-mirrors.yaml

View File

@ -0,0 +1,11 @@
- name: Test the configure-mirrors role
hosts: all
roles:
- role: configure-mirrors
mirror_fqdn: "{{ zuul_site_mirror_fqdn }}"
post_tasks:
- name: Install a package to sanity check the mirror configuration
package:
name: "emacs"
state: "present"
become: yes

View File

@ -145,3 +145,42 @@
Do additional setup needed for multi-node jobs such as setting up
overlay networks and setting up known-hosts and ssh keys
pre-run: playbooks/multinode/pre
####
# zuul-jobs/project-config integration
####
- job:
name: base-integration
description: |
Runs roles that are included by default in the 'base' job in order to
prevent regressions.
parent: base-minimal
roles:
- zuul: openstack-infra/project-config
run: playbooks/integration-tests/base
- job:
name: base-integration-ubuntu-trusty
parent: base-integration
nodes:
- name: ubuntu-trusty
label: ubuntu-trusty
- job:
name: base-integration-ubuntu-xenial
parent: base-integration
nodes:
- name: ubuntu-xenial
label: ubuntu-xenial
- project:
name: openstack-infra/zuul-jobs
check:
jobs:
- base-integration-ubuntu-trusty
- base-integration-ubuntu-xenial
gate:
jobs:
- base-integration-ubuntu-trusty
- base-integration-ubuntu-xenial