summaryrefslogtreecommitdiffstats
path: root/roles/lib_utils/src
Commit message (Collapse)AuthorAgeFilesLines
* Adding ability to yedit json files.Kenny Woodson2018-02-132-7/+19
|
* Returning actual results of yedit query. Empty list was returning empty dict.Kenny Woodson2017-09-201-1/+1
|
* add retry on repoquery_cmdLuke Meyer2017-09-131-1/+1
|
* add retries to repoquery moduleLuke Meyer2017-09-132-6/+12
|
* Fix python3 error in repoqueryJeff Peeler2017-05-132-2/+2
| | | | | | | Explicitly convert from bytes to string so that splitting the string is successful. This change works with python 2 as well. Closes #4182
* Merge pull request #4065 from ingvagabund/introduce-get-rpm-version-roleJan Chaloupka2017-05-124-2/+29
|\ | | | | Introduce excluder-free rpm version detection role
| * Extend repoquery command (of lib_utils role) to ignore excludersJan Chaloupka2017-05-114-2/+29
| |
* | Fix for yedit custom separatorsMatt Woodson2017-05-101-1/+1
|/
* Fixed a bug in oc_volume.Kenny Woodson2017-03-283-73/+38
|
* Adding a few more test cases. Fixed a bug when key was empty. Safeguard ↵Kenny Woodson2017-03-284-10/+110
| | | | against yedit module being passed an empty key
* Added the ability to do multiple editsKenny Woodson2017-03-284-56/+136
|
* Remove dummy setup/teardown methodsRodolfo Carvalho2017-03-061-8/+0
|
* 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-282-3/+29
| | | | | | | | | | | | | | | | 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)
* fix up ruamel.yaml/pyyaml no-member lint errorsJason DeTiberus2017-02-222-38/+43
|
* Removed unrequired no-members from yedit and generated codeSteve Milner2017-02-221-6/+20
|
* Removed unused code. Made tests executable.Kenny Woodson2017-02-212-0/+0
|
* Fix validation of generated codeRodolfo Carvalho2017-02-201-1/+1
| | | | | Importing modules with the same name will not reload an already imported module. Explicitly reloading the module is the quickest fix.
* 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.
* Pleasing the linting gods.Kenny Woodson2017-02-162-6/+12
|
* Fixed tests for pyyaml vs ruamel. Added import logic. Fixed safe load.Kenny Woodson2017-02-161-2/+2
|
* Adding fallback support for pyyaml.Kenny Woodson2017-02-162-15/+37
|
* Fixed ansible module unit and integration tests and added runners.Thomas Wiest2017-02-072-2/+45
|
* Added oc_serviceaccount_secret to lib_openshift.Thomas Wiest2017-02-061-8/+15
|
* Added repoquery to lib_utils.Thomas Wiest2017-01-319-12/+805
|
* Update the generators to include fragment bannersTim Bielawa2017-01-241-1/+36
|
* Updated the generate.py scripts for tox and virtualenv.Kenny Woodson2017-01-181-12/+20
|
* Adding a few updates for python27,35 compatibilityKenny Woodson2017-01-181-0/+6
|
* Adding --verfiy to generate script.Kenny Woodson2017-01-173-23/+55
|
* Adding oc_edit module to lib_openshift.Kenny Woodson2017-01-173-58/+3
|
* lib_openshift modules. This is the first one. oc_route.Kenny Woodson2017-01-134-53/+164
|
* Adding ability to systematically modify yaml from ansible.Kenny Woodson2017-01-1110-0/+1352