From 737920cd898a0b527dfd7e096ea2e6aff8907d7a Mon Sep 17 00:00:00 2001 From: Pierre-Louis Bonicoli Date: Wed, 13 Dec 2017 23:02:11 +0100 Subject: [PATCH] YAML inventory unit test: add tests Relates: #33878 --- test/units/plugins/inventory/test_inventory.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/units/plugins/inventory/test_inventory.py b/test/units/plugins/inventory/test_inventory.py index a21f045023d..ab6bdac84fd 100644 --- a/test/units/plugins/inventory/test_inventory.py +++ b/test/units/plugins/inventory/test_inventory.py @@ -180,6 +180,9 @@ class TestInventoryPlugins(unittest.TestCase): self.assertIn(im._inventory.get_host('test1'), im._inventory.groups['all'].hosts) self.assertIn(im._inventory.get_host('test2'), im._inventory.groups['all'].hosts) self.assertEqual(len(im._inventory.groups['all'].hosts), 2) + self.assertIn(im._inventory.get_host('test1'), im._inventory.groups['ungrouped'].hosts) + self.assertIn(im._inventory.get_host('test2'), im._inventory.groups['ungrouped'].hosts) + self.assertEqual(len(im._inventory.groups['ungrouped'].hosts), 2) def _get_inventory(self, inventory_content):