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