2cece282cc
The fetch-zuul-cloner and use-cached-repos roles rely on an unrelated repo appearing in required-projects. To allow us to move this repo to the Zuul tenant, change that to opendev/base-jobs, a repo which will appear in both the current and future tenants. Change-Id: I06703638b69d94531ad396224669980db9ababd4
25 lines
853 B
YAML
25 lines
853 B
YAML
- name: Test the use-cached-repos role
|
|
hosts: all
|
|
roles:
|
|
- role: use-cached-repos
|
|
post_tasks:
|
|
# opendev/base-jobs 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 opendev/base-jobs was prepared
|
|
stat:
|
|
path: "{{ ansible_user_dir }}/src/opendev.org/opendev/base-jobs"
|
|
register: base_jobs
|
|
|
|
- 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:
|
|
- base_jobs.stat.exists
|
|
- self_config.stat.exists
|