mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 06:12:51 +00:00
add a test to verify ansible detect invalid range
This commit is contained in:
@@ -270,6 +270,9 @@ class TestInventory(unittest.TestCase):
|
||||
hosts = inventory.list_hosts("nc:&triangle:!tri_c")
|
||||
self.compare(hosts, ['tri_a', 'tri_b'])
|
||||
|
||||
@raises(errors.AnsibleError)
|
||||
def test_invalid_range(self):
|
||||
Inventory(os.path.join(self.test_dir, 'inventory','test_incorrect_range'))
|
||||
|
||||
###################################################
|
||||
### Inventory API tests
|
||||
|
||||
Reference in New Issue
Block a user