add test same host in different files in dir
tests issue #5749 same host defined in different groups which in turn are defined in different ini files in an inventory directory Conflicts: test/units/TestInventory.py
This commit is contained in:
parent
38abd5e20e
commit
23fee4b836
1 changed files with 9 additions and 1 deletions
|
@ -431,3 +431,11 @@ class TestInventory(unittest.TestCase):
|
||||||
print "EXPECTED VARS=%s" % expected_vars
|
print "EXPECTED VARS=%s" % expected_vars
|
||||||
|
|
||||||
assert host_vars == expected_vars
|
assert host_vars == expected_vars
|
||||||
|
|
||||||
|
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']
|
||||||
|
|
Loading…
Reference in a new issue