a4e1f29468
These are jobs for the roles in this repo which are currently tested by the "base-integration" job in openstack-zuul-jobs. Move it into this repo and rename it "base-roles". Change-Id: Ibd07964a08120e033bc5a2deca18649bd0e74a48
20 lines
834 B
YAML
20 lines
834 B
YAML
- name: Test the emit-job-header role
|
|
hosts: all
|
|
roles:
|
|
- role: emit-job-header
|
|
zuul_log_url: "http://logs.openstack.org"
|
|
post_tasks:
|
|
# All emit-job-header does is a debug statement so the worst that would
|
|
# happen would be that the debug task would fail outright and we'd prevent
|
|
# something breaking that debug statement from merging just by running it.
|
|
# However, the emit-job-header role includes the set-zuul-log-path-fact
|
|
# role. We can only test for zuul_log_path against changes, though.
|
|
- name: Assert zuul_log_path by set-zuul-log-path-fact for a change
|
|
assert:
|
|
that:
|
|
- zuul_log_path is defined
|
|
- zuul.change in zuul_log_path
|
|
- zuul.patchset in zuul_log_path
|
|
- zuul.pipeline in zuul_log_path
|
|
- zuul.job in zuul_log_path
|