0c1ecb990f
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
20 lines
611 B
YAML
20 lines
611 B
YAML
- name: Test the creation of the mirror-info script
|
|
hosts: all
|
|
roles:
|
|
- role: mirror-info
|
|
mirror_fqdn: "{{ zuul_site_mirror_fqdn }}"
|
|
post_tasks:
|
|
- name: Stat mirror script
|
|
stat:
|
|
path: /etc/ci/mirror_info.sh
|
|
register: stat_result
|
|
# note this is "sh" (not bash) just to make sure
|
|
# it sources as POSIX
|
|
- name: Check mirror script can be sourced
|
|
shell: set -ex && . /etc/ci/mirror_info.sh && echo $AFS_SLUG
|
|
- name: Check /etc/ci/mirror_info.sh
|
|
assert:
|
|
that:
|
|
- stat_result.stat.exists
|
|
- stat_result.stat.mode == '0644'
|