Commit 7fec9c3e by Michael Scherer

add a test to cover bound stepping in inventory

parent 1dd3ff38
......@@ -219,9 +219,9 @@ class TestInventory(unittest.TestCase):
def test_complex_group_names(self):
inventory = self.complex_inventory()
tests = {
'host1': [ 'role1' ],
'host1': [ 'role1', 'role3' ],
'host2': [ 'role1', 'role2' ],
'host3': [ 'role2' ]
'host3': [ 'role2', 'role3' ]
}
for host, roles in tests.iteritems():
group_names = inventory.get_variables(host)['group_names']
......
......@@ -85,3 +85,5 @@ host[1:2]
[role2]
host[2:3]
[role3]
host[1:3:2]
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment