Brian Coca
9b088a1e40
implemented inventory_hostname lookup in v2
2015-10-15 13:11:42 -04:00
Abhijit Menon-Sen
d100db837b
Add basic tests for expand_hostname_range
2015-09-30 16:28:45 +05:30
Marius Gedminas
0624797375
Bugfix: if you define a custom __eq__, you must define a __hash__ too
...
Also, on Python 3 the stock object.__hash__ raises an error ("unhashable
type"), and we have code that uses Host instances as dict keys.
2015-09-24 12:46:06 +03:00
Marius Gedminas
a2bc6b4b26
Bugfix: if you define __eq__, you should define __ne__ too
2015-09-24 12:43:33 +03:00
Abhijit Menon-Sen
2fcdb37e7b
Support «hosts: groupname[1:]» notation (~= 'the rest of the group')
2015-09-18 22:28:34 +05:30
Abhijit Menon-Sen
21142f5723
Add some tests for split/apply_subscript
2015-09-18 22:15:28 +05:30
Victor Salgado
01ae60d524
Add more tests for _split_pattern for when the input is a list
2015-09-17 13:50:40 -03:00
Abhijit Menon-Sen
abd006657b
Add test/units/inventory with a few _split_pattern tests
...
There were no inventory-specific unit tests earlier, so we add a new
directory for them with some initial low-level tests of _split_pattern
with various valid and deprecated pattern strings.
2015-09-17 19:32:14 +05:30