Hi,
When i run a molecule test on my ansible roles i am facing the following
error on all of them.
DEBUG: COMMAND
> /bin/py.test --debug -p no:cacheprovider --connection=ansible
> --ansible-inventory=/tmp/molecule/devportal/default/inventory/ansible_inventory.yml
>
> /var/roles/devportal/molecule/default/tests/test_default.py -vvv
>
> writing pytestdebug information to
> /var/roles/devportal/molecule/default/pytestdebug.log
> ============================= test session starts
> ==============================
> platform linux2 -- Python 2.7.5, pytest-4.6.0, py-1.8.1, pluggy-0.13.1
> -- /usr/bin/python2
> using: pytest-4.6.0 pylib-1.8.1
> setuptools registered plugins:
> testinfra-1.19.0 at
> /usr/lib/python2.7/site-packages/testinfra/plugin.py
> rootdir: /var/roles/devportal/molecule/default
> plugins: testinfra-1.19.0
> collected 0 items / 1
> errors
>
> ==================================== ERRORS
> ====================================
> ____________________ ERROR collecting tests/test_default.py
> ____________________
> tests/test_default.py:6: in <module>
> os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('all')
>
> /usr/lib/python2.7/site-packages/testinfra/utils/ansible_runner.py:152: in
> __init__
> self.cli = ansible.cli.playbook.PlaybookCLI(None)
> /usr/lib/python2.7/site-packages/ansible/cli/__init__.py:67: in
> __init__
> raise ValueError('A non-empty list for args is required')
> E ValueError: A non-empty list for args is required
> !!!!!!!!!!!!!!!!!!! Interrupted: 1 errors during collection
> !!!!!!!!!!!!!!!!!!!!
> =========================== 1 error in 0.50 seconds
> ============================
> wrote pytestdebug information to
> /var/roles/devportal/molecule/default/pytestdebug.log
> An error occurred during the test sequence action: 'verify'. Cleaning up.
>
>
Can anyone give some inputs on this.
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/2acd6083-426a-4009-a7a7-f8d6e12185b2%40googlegroups.com.