From ac90eed05d34d4bde7f434e7f62311c73a63f3f8 Mon Sep 17 00:00:00 2001 From: Clark Boylan Date: Mon, 23 Apr 2018 10:08:24 -0700 Subject: [PATCH] Test validate-host role Add validate-host to our zuul role integration job. This will allow us to test changes to the validate host role and be more confident in making those changes. Depends-On: https://review.openstack.org/563790 Change-Id: If2db235d143e3edace75db724928c9e482720b93 --- tests/base.yaml | 1 + tests/validate-host.yaml | 13 +++++++++++++ zuul.d/jobs.yaml | 1 + 3 files changed, 15 insertions(+) create mode 100644 tests/validate-host.yaml diff --git a/tests/base.yaml b/tests/base.yaml index abaf2429..6c6a9d58 100644 --- a/tests/base.yaml +++ b/tests/base.yaml @@ -10,4 +10,5 @@ - include: mirror-info.yaml - include: configure-mirrors.yaml - include: fetch-zuul-cloner.yaml +- include: validate-host.yaml diff --git a/tests/validate-host.yaml b/tests/validate-host.yaml new file mode 100644 index 00000000..f859d9a5 --- /dev/null +++ b/tests/validate-host.yaml @@ -0,0 +1,13 @@ +- name: Test the validate-host role + pre_tasks: + # NOTE(pabelanger): Until we hit the validate-host role, we have a minimal + # set of ansible variables collected by zuul-executor. This doesn't include + # network variables (ansible_default_ipv4 / ansible_default_ipv6) so gather + # these variables as they are important to the configure-unbound role. + - name: Gather network facts + setup: + gather_subset: 'network' + hosts: all + roles: + - role: validate-host + zuul_site_traceroute_host: git.openstack.org diff --git a/zuul.d/jobs.yaml b/zuul.d/jobs.yaml index 1b5424ab..a9492ea9 100644 --- a/zuul.d/jobs.yaml +++ b/zuul.d/jobs.yaml @@ -26,6 +26,7 @@ - ^roles/mirror-info/.* - ^roles/set-zuul-log-path-fact/.* - ^roles/use-cached-repos/.* + - ^roles/validate-host/.* - ^tests/.* - job: