summaryrefslogtreecommitdiffstats
path: root/roles/lib_utils/src/test/unit
Commit message (Collapse)AuthorAgeFilesLines
* Clean up test filesRodolfo Carvalho2017-03-062-24/+0
| | | | | They are not executable anymore, and tests are now meant to be run through pytest.
* Remove redundant assertionRodolfo Carvalho2017-03-061-2/+0
| | | | | | That line is testing Python's list.count method, instead of yedit. The assertion right above is a superset of it, as it checks for equality to some expected value.
* raise exceptions when walking through object pathJoel Diaz2017-02-281-1/+20
| | | | | | | | | | | | | | | | if we're given path a.b.c and the existing object is: a: b: - item1 raise an exception due to unexpected objects found while traversing the path (ie. b is a list, not a dict) also, add_entry assumes new dicts for each sub element when creating elements besides the final assignment value. doing something like a.b.c[0] = 12 where 'c' doesn't exist raises an exception add test cases to cover: access path that differs from existing object create new objects with an embedded list in the path create new object with a list at the end (define the end list in the passed in 'value' to avoid this exception)
* Removed unused code. Made tests executable.Kenny Woodson2017-02-212-0/+0
|
* Unset exec bit in tests, add missing requirementsJason DeTiberus2017-02-192-0/+0
| | | | was: separate lib_ unit tests from other unit tests
* Include missing unit tests to test runner configRodolfo Carvalho2017-02-192-0/+0
| | | | We were not running those tests in CI, bad :(
* Fix tests on Python 3Rodolfo Carvalho2017-02-191-1/+1
| | | | | | Unlike in Python 2: - `range` doesn't return a list. - `dict.keys` doesn't return a list.
* Added repoquery to lib_utils.Thomas Wiest2017-01-311-0/+87
|
* Adding ability to systematically modify yaml from ansible.Kenny Woodson2017-01-111-0/+277