18 Commits

Author SHA1 Message Date
David Moreau-Simard
264a83e02f
Improve test coverage of the fetch-zuul-cloner role and the shim
This tests that we are indeed able to use the zuul cloner shim
and that it works as expected with and without required projects.

Change-Id: I537ce7ff417558edb3260acb6424a4a2b54046e4
2017-10-19 17:12:40 -04:00
David Moreau-Simard
a80691a49c
Add integration tests for use-cached-repos
Change-Id: I7da4db4ddd058b507754178177344b99363025ac
2017-10-19 17:12:40 -04:00
David Moreau-Simard
36207c4f8d
Add integration tests for emit-job-header and set-zuul-log-path-fact
These two roles are included by default in base jobs, we don't want
to merge a regression that would break every job. Let's test them.

Change-Id: I8d014464b3ed580d4a0fc6dbdc9a42601ff107e5
2017-10-18 15:15:53 -04:00
David Moreau-Simard
79e2859162
Add integration tests for multi-node-bridge role
Change-Id: I1cf7d5de19b3426a9577b4ecbc3538813a16dfc7
2017-10-15 15:45:35 -04:00
Andreas Jaeger
beb0737569 Limit multinode-integration, update base-integration
Limit when to run multinode integration.

Update base-integration for current tests.

Add notes to update the files section when updating.

Change-Id: I4e055511cb10113b93a0a18bab6d72aacf782e11
2017-10-15 19:50:21 +02:00
Zuul
4f7185959a Merge "Add integration tests for fetch-zuul-cloner" 2017-10-15 16:42:53 +00:00
Zuul
ca16523952 Merge "Add integration tests for multi-node-firewall" 2017-10-15 12:29:17 +00:00
David Moreau-Simard
56eb8fc485
Add integration tests for fetch-zuul-cloner
This role is included by default in base jobs. We don't want to
merge a regression that would break every job. Let's test it.

Change-Id: Icb37cb43c40358719157ef7278b5e4df67574edb
2017-10-13 16:01:41 -04:00
David Moreau-Simard
abf7edf91d
Add integration tests for multi-node-firewall
Change-Id: I60243a3a6016483b56f49e80c6744915194e65c8
2017-10-11 11:45:15 -04:00
Ian Wienand
401520e274 Add unbound role
As mentioned in the README, this adds the dynamic configuration for
unbound on hosts. If there is a ipv6 route, it will set forwarding to
ipv6 servers, otherwise use ipv4. This is ported from the
configure_mirror.sh script.

We add a basic test to integration tests

Change-Id: I70b41e45f3d53b191742533c2f3b6c0b6e6c2339
2017-10-11 10:20:16 +11:00
David Moreau-Simard
885cbae414
Integration tests: run mirror-info before configure-mirrors
We're running mirror-info before configure-mirrors in the base job.
Let's keep the role execution order the same so we don't run into
errors because of that.

Change-Id: Ia86c497f9e6788461fbdab8af1247f770dc2c302
2017-10-10 09:19:55 -04:00
David Moreau-Simard
0351a7af27
Add integration tests for multi-node-hosts-file
Change-Id: I633889011d25f120a936a145bdf6e12c3b89133f
2017-09-26 11:52:10 -04:00
David Moreau-Simard
c588aebca3
Add multinode integration jobs and integration tests for known_hosts
This adds the required framework to test the 'multinode' job and adds
a first integration tested role: multi-node-known-hosts.
The groups 'switch' and 'peers' are bound to be used when integration
testing the 'multi-node-bridge' role.

Change-Id: Ia84189ce3e1b273ca8509d2a9796970750191977
Depends-On: Ia7480dab0f357b5710d1962a40499381837942b3
2017-09-26 11:52:06 -04:00
Ian Wienand
0c1ecb990f Add role to make /etc/ci/mirror_info.sh
The mirror info script is sourced by various jobs so needs to be
around for broad compatability.  Since it's full of openstack only
mirrors, this seems like the place for it.

Change-Id: I66164920642a6015a6524fdc3105e4099d26deff
2017-09-09 03:24:44 +00:00
David Moreau-Simard
5fbcc7e0e2 Move openstack-specific jobs to openstack-zuul-jobs
We're in the process of adding jobs to test our base job on different
distributions and ensure there's no regressions.
These are openstack-specific so let's move them from zuul-jobs.

Change-Id: Ic04c48d7a0e15459632b91bce81e777d12622222
Depends-On: Ie29ee24b631f659f3330f5c631e2850f6b8cb463
2017-09-07 15:24:00 -04:00
Paul Belanger
0d5c11029a Setup ANSIBLE_ROLES_PATH in tox.ini
It is possible we are going to depend on roles in other repos (like
the next patch). Move this to using an environmental variable to make
it easier to depend on external roles.

Change-Id: Ia90ac5674188d38a6a749c92de957430d5a5403c
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-08-07 16:15:11 -04:00
Paul Belanger
ea35d7ffc9
Include ansible-playbook syntax-check for tox pep8
Syntax check our playbooks / roles when we run pep8. This way we can
quickly tests if our playbooks are valid.

Change-Id: I2f4e3f617922c8578adb53e2c4a418488fcf230b
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-07-17 13:18:19 -04:00
Paul Belanger
c0c9653ab5
Ensure we load roles for linting
Did didn't have ansible-lint setup properly, as a results our roles
weren't actually linted properly.

Switch run-docs to command task, since we are not using any shell
variables.

Ignore ANSIBLE0012 for now.

Change-Id: Id184f7eb5dd67117e7dde9c8eb38a3a8af9dd892
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-07-17 13:18:17 -04:00