From 7fec9c3ebafd7efc1a81afc56ef62cdf4dc9f992 Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Fri, 23 Aug 2013 12:00:39 +0200 Subject: [PATCH] add a test to cover bound stepping in inventory --- test/TestInventory.py | 4 ++-- test/complex_hosts | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/test/TestInventory.py b/test/TestInventory.py index e46027a5e61..d269544c9a1 100644 --- a/test/TestInventory.py +++ b/test/TestInventory.py @@ -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'] diff --git a/test/complex_hosts b/test/complex_hosts index 5153bf095dd..0b5ce8c19c4 100644 --- a/test/complex_hosts +++ b/test/complex_hosts @@ -85,3 +85,5 @@ host[1:2] [role2] host[2:3] +[role3] +host[1:3:2]