modifed test to use get_hosts instead of get_groups
closes #5749 Conflicts: test/units/TestInventory.py
This commit is contained in:
parent
23fee4b836
commit
a3c36a6853
1 changed files with 4 additions and 5 deletions
|
@ -434,8 +434,7 @@ class TestInventory(unittest.TestCase):
|
|||
|
||||
def test_dir_inventory_multiple_groups(self):
|
||||
inventory = self.dir_inventory()
|
||||
group_greek = inventory.get_group('greek')
|
||||
group_major_god = inventory.get_group('major-god')
|
||||
actual_host_names = [host.name for host in group_greek.get_hosts()];
|
||||
print "%s : %s " % (group_greek.name, actual_host_names)
|
||||
assert actual_host_names == ['zeus','morpheus']
|
||||
group_greek = inventory.get_hosts('greek')
|
||||
actual_host_names = [host.name for host in group_greek];
|
||||
print "greek : %s " % (actual_host_names)
|
||||
assert actual_host_names == ['zeus','morpheus']
|
||||
|
|
Loading…
Reference in a new issue