mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
add test for incorrect format in range host
This commit is contained in:
parent
835fdd1ec2
commit
4f69b63fec
2 changed files with 6 additions and 0 deletions
|
@ -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]
|
Loading…
Reference in a new issue