61239d1ef7
When this job is ran against other repositories such as project-config or zuul-jobs, the project being prepared won't be o-z-j. Change-Id: I8487680ad573b1127e5d2e73fafbd0442e003c62
25 lines
908 B
YAML
25 lines
908 B
YAML
- name: Test the use-cached-repos role
|
|
hosts: all
|
|
roles:
|
|
- role: use-cached-repos
|
|
post_tasks:
|
|
# openstack-infra/project-config is in 'required-projects'.
|
|
# Also check that the project being tested is being prepared.
|
|
# We're checking them explicitly rather than with_items on zuul.projects
|
|
# in case there is a regression which would take an item out.
|
|
- name: Check that openstack-infra/project-config was prepared
|
|
stat:
|
|
path: "{{ ansible_user_dir }}/src/git.openstack.org/openstack-infra/project-config"
|
|
register: project_config
|
|
|
|
- name: Check this project was prepared
|
|
stat:
|
|
path: "{{ ansible_user_dir }}/src/{{ zuul.project.canonical_name }}"
|
|
register: self_config
|
|
|
|
- name: Validate that required projects have been prepared
|
|
assert:
|
|
that:
|
|
- project_config.stat.exists
|
|
- self_config.stat.exists
|