This adds the possibility to sova uses a local file instead of
downloading from github.
This is required because the verification searchs for a specific
failure, that recently was updated in the sova config file, and
the test started to fail. So, now, we use a static sova config
file to be used by the molecule, avoiding these kind of failures
happen in the future.
Because Ansible official testing tools (ansible-test) cannot be used
without a collection, we change the code layout to make conformant.
WARNING: The role is no longer considered to be named
"ansible-role-collect-logs" but "collect_logs" instead, with a
temporary alias called "collect-logs".
- [x] ansible-test sanity checks runs (does not need to pass)
- [x] zuul is still able to use the role
- [x] infrared is still able to use the role
- [x] molecule tests are running and passing
- [x] tripleo-ci jobs still collect the files
One symlink is still needed for infrared until related patch lands:
Avoids failure when ansible was running inside a virtualenv due to
unavailability of --user mode. In the future sova test should be
switched to a container instead of delegated as delegated is testing
compatibility build build node used by tox (bionic), under a tox
virtualenv, something that diverge considerably from production use.