Add base role integration jobs
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
This commit is contained in:
committed by
Andreas Jaeger
parent
2f113a6889
commit
a4e1f29468
32
test-playbooks/base-roles/ensure-output-dirs.yaml
Normal file
32
test-playbooks/base-roles/ensure-output-dirs.yaml
Normal file
@@ -0,0 +1,32 @@
|
||||
- name: Test the ensure-output-dirs role
|
||||
hosts: all
|
||||
roles:
|
||||
- role: ensure-output-dirs
|
||||
post_tasks:
|
||||
- name: Check that log dir has been created
|
||||
file:
|
||||
path: "{{ zuul_output_dir }}/logs"
|
||||
state: directory
|
||||
register: log_directory
|
||||
|
||||
- name: Check that artifact dir has been created
|
||||
file:
|
||||
path: "{{ zuul_output_dir }}/artifacts"
|
||||
state: directory
|
||||
register: artifact_directory
|
||||
|
||||
- name: Check that doc dir has been created
|
||||
file:
|
||||
path: "{{ zuul_output_dir }}/docs"
|
||||
state: directory
|
||||
register: doc_directory
|
||||
|
||||
- name: Validate that directories were set correctly
|
||||
assert:
|
||||
that:
|
||||
- log_directory is not changed
|
||||
- log_directory is succeeded
|
||||
- artifact_directory is not changed
|
||||
- artifact_directory is succeeded
|
||||
- doc_directory is not changed
|
||||
- doc_directory is succeeded
|
||||
Reference in New Issue
Block a user