summaryrefslogtreecommitdiff
path: root/utils
AgeCommit message (Collapse)Author
2017-03-06Merge pull request #3569 from detiber/consolidateToxJason DeTiberus
Consolidate root/utils tests
2017-03-06Update docs for test consolidation and remove the MakefileJason DeTiberus
2017-03-06Consolidate root/utils testsJason DeTiberus
- Consolidate tests between the root of the repo and utils
2017-03-06Remove commented-out test codeRodolfo Carvalho
2017-03-06Remove old commented-out testsRodolfo Carvalho
2017-03-06Fix testRodolfo Carvalho
Instead of checking if a string is True, check if 'found' is True, the string is the error message. Also, we can remove the loop and use the simpler Python 'in' construct.
2017-03-06Lint utils/testRodolfo Carvalho
- Do not use `print` in unit tests, send messages through the test framework instead. - Remove unused import. - Add spaces around equal sign in assigment. - Turn method into a function. - Reorganize imports according to PEP8.
2017-03-06Remove unused Makefile variablesRodolfo Carvalho
2017-02-24Fix Quick Installer failed due to a Python method failureTim Bielawa
Fixes issues dumping various objects to YAML. This change updates the quick installer fact caching callback to use the improved AnsibleDumper when writing out the facts to storage. * https://bugzilla.redhat.com/show_bug.cgi?id=1421053 * https://bugzilla.redhat.com/show_bug.cgi?id=1421061 * https://bugzilla.redhat.com/show_bug.cgi?id=1421059
2017-02-21Update link to project homepageRodolfo Carvalho
2017-02-21Remove pytest-related dependencies from setup.pyRodolfo Carvalho
The `setup_requires` line prevents builds in internal environments without Internet access / pythonX-pytest-runner RPM installed. In fact, we're running tests with `pytest`, outside of `setup.py`, so we don't need those dependencies there. Note: we decided not to run tests through `python setup.py pytest` because pytest-runner was limited in how we can pass arguments to pytest / enable plugins. E.g., I could not get the coverage plugin working when running `python setup.py pytest`.
2017-02-20Raise the bar on coverage requirementsRodolfo Carvalho
2017-02-20Accept extra positional arguments in toxRodolfo Carvalho
Example: tox -e py35-ansible22-unit -- --collect-only
2017-02-20Replace nose with pytest (utils)Rodolfo Carvalho
2017-02-20Clean up utils/README.mdRodolfo Carvalho
Remove old way of running tests, plus mirror edits.
2017-02-19Remove dead code in installerRodolfo Carvalho
Found using `vulture`, confirmed that code that was once used became unused in later commits after its introduction.
2017-02-14Update variant_versionSteve Milner
3.5 added and 3.4 moved to LEGACY
2017-01-30Create v3_5 upgrade playbooksRussell Teague
2017-01-25flake8 mccabe dependency fixRussell Teague
2017-01-24Temporary work-around for flake8 vs maccabe version conflictTim Bielawa
2017-01-11cleanup: Removed debug prints from testsSteve Milner
2017-01-10remove debug statement from testJason DeTiberus
2017-01-10increase test coverageJason DeTiberus
2017-01-10More toxificationJason DeTiberus
- Move pylint tests to tox - Move yamllint tests to tox - Create separate tox config (and setup.py) for root - bump ansible requirement - unify pylint config - add docs - remove git directory containing old testing tools - install python-six if not present for openshift-facts - add python-six as a dependency for openshift-ansible-utils
2017-01-10add test for utils to bump coverageJason DeTiberus
2017-01-09Merge pull request #3061 from tbielawa/scaleup-bz1390135Scott Dodson
The scaleup subcommand does not support the unattended option
2017-01-09Merge pull request #3021 from tbielawa/fix_aoi_manTim Bielawa
Update aoi manpage with correct operation count
2017-01-09The scaleup subcommand does not support the unattended optionTim Bielawa
* 'atomic-openshift-installer' will exit now if -u is given with the 'scaleup' subcommand * https://bugzilla.redhat.com/show_bug.cgi?id=1390135
2017-01-09Update manpage version.Tim Bielawa
2017-01-04Hush the sudo privs check in oo-installerTim Bielawa
* Don't print words when checking for sudo access * Just 'echo' an empty string with no new-line Closes #3003
2016-12-28Update aoi manpage with correct operation countTim Bielawa
2016-12-20python3 support, add tox for better local testing against multiple python ↵Jason DeTiberus
versions
2016-12-12YAML LintingRussell Teague
* Added checks to make ci for yaml linting * Modified y(a)ml files to pass lint checks
2016-12-09Make 'cover-erase' a config file setting. Move VENT target to pre-req for ↵Tim Bielawa
all ci-* targets
2016-12-09Fixes to 'make ci'Tim Bielawa
* Fixed: A grep filter was capturing the actual pylint check rc's * Changed: pylint used to print out messages for locally-disabled and file-ignored items * Changed: pylint output format is now 'parseable' * Cleaned up: Pylint was emitting deprecation messages for 'required-attributes' and 'ignore-iface-methods'. They have been removed from the pylintrc file
2016-12-08Fix coverage not appending new dataTim Bielawa
* Adds '--cover-erase' flag to the 'ci-unittests' target Fixes bug introduced in d7b4265f329591817bac381e2772ae14ac337cea: "Can't add arcs to existing line data" error message
2016-12-07Merge pull request #2939 from tbielawa/gh2933Jason DeTiberus
Speed up 'make ci' and trim the output
2016-12-07Speed up 'make ci' and trim the outputTim Bielawa
The virtualenv is conditionally rebuilt now if the test requirements file is modified. This will save upwards of 30+ seconds in iterative 'make ci' runs. The pylint output is now trimmed to exclude disabled tests. The order of the 'ci' target prerequisites has been changed to run the fastest tests first. Closes #2933
2016-12-06Handle updating of scheduler config during upgradeJason DeTiberus
- do not upgrade predicates if openshift_master_scheduler_predicates is defined - do not upgrade priorities if openshift_master_scheduler_priorities is defined - do not upgrade predicates/priorities unless they match known previous default configs - output WARNING to user if predictes/priorities are not updated during install
2016-12-06test updatesJason DeTiberus
- fix nose coverage flags - add coverage support for files tested outside of the utils directory - exclude stdlib and virtualenv installed dependencies
2016-11-29update tests and flake8/pylint fixesJason DeTiberus
2016-11-10Merge pull request #2783 from tbielawa/aoioutputTim Bielawa
Enable quiet output for all a-o-i commands
2016-11-10Enable quiet output for all a-o-i commandsTim Bielawa
* Update: uninstall, upgrade, scaleup wf's * Verbosity can be toggled with -v flag, as before https://bugzilla.redhat.com/show_bug.cgi?id=1384294
2016-11-10Update override cluster_hostnameSamuel Munilla
Update the default for the override prompt and set both openshift_master_cluster_hostname and openshift_master_cluster_public_hostname
2016-11-08Merge pull request #2729 from tbielawa/BZ1390064Scott Dodson
Bug 1390064 - [quick install] a complete installed cluster was reported as a mix of installed and uninstalled env
2016-11-07Merge pull request #2735 from rhcarvalho/deadcodeScott Dodson
Remove some dead code
2016-11-07Change the logic to just compare against masters and nodes.Tim Bielawa
2016-11-05a-o-i: remove dummy data_fileRodolfo Carvalho
2016-11-05a-o-i: remove script leftover from OpenShift v2Rodolfo Carvalho
2016-11-04Add some tests for utils to get the coverage up.Tim Bielawa