Assert ara database is loaded from ansible venv

This adds some code coverage on zuul-executor side, to confirm ara
database is also created by zuul-executor.

Change-Id: I53cb3f96bf550bae2c736b1116ff2266056e926b
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
Paul Belanger 2019-04-08 10:57:40 -04:00
parent bab008ee92
commit c34a783423
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