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