Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ansible
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
ansible
Commits
a0b73b18
Commit
a0b73b18
authored
Aug 23, 2013
by
Michael Scherer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add one last test, for combined range, which make ansible.inventory.expand_hosts
covered to 100%
parent
64d35cb3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
test/TestInventory.py
+5
-0
test/inventory/test_combined_range
+2
-0
No files found.
test/TestInventory.py
View file @
a0b73b18
...
...
@@ -286,6 +286,11 @@ class TestInventory(unittest.TestCase):
def
test_alpha_end_before_beg
(
self
):
Inventory
(
os
.
path
.
join
(
self
.
test_dir
,
'inventory'
,
'test_alpha_end_before_beg'
))
def
test_combined_range
(
self
):
i
=
Inventory
(
os
.
path
.
join
(
self
.
test_dir
,
'inventory'
,
'test_combined_range'
))
hosts
=
i
.
list_hosts
(
'test'
)
expected_hosts
=
[
'host1A'
,
'host2A'
,
'host1B'
,
'host2B'
]
assert
sorted
(
hosts
)
==
sorted
(
expected_hosts
)
###################################################
### Inventory API tests
...
...
test/inventory/test_combined_range
0 → 100644
View file @
a0b73b18
[test]
host[1:2][A:B]
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment