Changeset - 02142564ac8f
[Not reviewed]
0 1 0
Branko Majic (branko) - 6 years ago 2018-05-27 20:32:10
branko@majic.rs
MAR-129: Updated tests in database_server role to use updated mechanism for fetching list of hosts to run onto.
1 file changed with 4 insertions and 1 deletions:
0 comments (0 inline, 0 general)
roles/database_server/molecule/default/tests/test_default.py
Show inline comments
 
import os
 

	
 
import testinfra.utils.ansible_runner
 

	
 

	
 
testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner(
 
    '.molecule/ansible_inventory.yml').get_hosts('all')
 
    os.environ['MOLECULE_INVENTORY_FILE']).get_hosts(['parameters-mandatory'])
 

	
 

	
 
def test_installed_packages(host):
0 comments (0 inline, 0 general)