Add integration test jobs for the configure-mirror role
Change-Id: I8a64a7158e2b98e76b25cb9352b98694d5b924b1
This commit is contained in:
parent
8f28435e35
commit
d55de6e54b
5
playbooks/integration-tests/README.rst
Normal file
5
playbooks/integration-tests/README.rst
Normal 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.
|
1
playbooks/integration-tests/base.yaml
Normal file
1
playbooks/integration-tests/base.yaml
Normal file
@ -0,0 +1 @@
|
||||
- include: configure-mirrors.yaml
|
11
playbooks/integration-tests/configure-mirrors.yaml
Normal file
11
playbooks/integration-tests/configure-mirrors.yaml
Normal 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
|
39
zuul.yaml
39
zuul.yaml
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user