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:
parent
bab008ee92
commit
c34a783423
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue