Merge "Assert ara database is loaded from ansible venv"

This commit is contained in:
Zuul 2019-04-10 08:09:01 +00:00 committed by Gerrit Code Review
commit 1596f3c8c8
1 changed files with 11 additions and 0 deletions

View File

@ -2,3 +2,14 @@
tasks:
- name: Run ara
shell: ara --help
# NOTE(pabelanger): Validate zuul executor actually loaded ARA.
- name: Check that the ARA database exists
stat:
path: "{{ zuul.executor.work_root }}/.ara/ansible.sqlite"
register: ara_db
- name: Assert ansible.sqlite file
assert:
that:
- ara_db.stat.exists