mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-01 00:03:10 +00:00
add test for missing end in host range
This commit is contained in:
@@ -274,6 +274,11 @@ class TestInventory(unittest.TestCase):
|
||||
def test_invalid_range(self):
|
||||
Inventory(os.path.join(self.test_dir, 'inventory','test_incorrect_range'))
|
||||
|
||||
@raises(errors.AnsibleError)
|
||||
def test_missing_end(self):
|
||||
Inventory(os.path.join(self.test_dir, 'inventory','test_missing_end'))
|
||||
|
||||
|
||||
###################################################
|
||||
### Inventory API tests
|
||||
|
||||
|
||||
2
test/inventory/test_missing_end
Normal file
2
test/inventory/test_missing_end
Normal file
@@ -0,0 +1,2 @@
|
||||
[test]
|
||||
host[1:]
|
||||
Reference in New Issue
Block a user