After upgrading to testinfra-3.0.4 from testinfra 1.19.0 issue got resolved.

Found existing installation: testinfra 1.19.0
>     Uninstalling testinfra-1.19.0:
>       Successfully uninstalled testinfra-1.19.0
> Successfully installed testinfra-3.0.4
>
>
On Monday, 6 April 2020 17:42:30 UTC+5:30, murari_kumar wrote:
>
> 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/devp/default/inventory/ansible_inventory.yml
>>  
>> /var/roles/devp/molecule/default/tests/test_default.py -vvv
>>
>> writing pytestdebug information to 
>> /var/roles/devp/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/devp/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/devp/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/b2bc8ffb-4f5f-48d7-8d98-40ec83d83460%40googlegroups.com.

Reply via email to