summaryrefslogtreecommitdiffstats
path: root/roles/openshift_health_checker/test/package_version_test.py
Commit message (Collapse)AuthorAgeFilesLines
* health checks: factor out get_required_versionLuke Meyer2018-01-171-1/+2
|
* package_version check: reuse get_major_minor_versionLuke Meyer2018-01-171-1/+1
|
* Remove openshift.common.{is_atomic|is_containerized}Michael Gugino2017-12-201-3/+3
| | | | | We set these variables using facts in init, no need to duplicate the logic all around the codebase.
* Remove openshift.common.service_typeMichael Gugino2017-12-071-2/+5
| | | | | | | | This commit removes openshift.common.service_type in favor of openshift_service_type. This commit also removes r_openshift_excluder_service_type from plays in favor of using the role's defaults.
* openshift_checks: use oo group names everywhereLuke Meyer2017-10-041-6/+6
|
* openshift_checks: add retries in pythonLuke Meyer2017-09-121-4/+4
|
* openshift_checks aos_version: also check installed under yumLuke Meyer2017-09-061-0/+2
| | | | | | | | | Tweaks to the logic around using yum vs dnf; now uses ansible_pkg_mgr to determine which is in effect for a host. Also, extended the yum logic to check installed packages in addition to available packages in the aos_version module so that disconnected installs and others with weird repo configs need not disable the package_version check.
* package_version check: tolerate release version 3.7Luke Meyer2017-08-021-36/+26
| | | | | | | | | | | Addresses issue https://github.com/openshift/openshift-ansible/issues/4967 For now, any version >= 3.6 is handled as if it were 3.6. We may want to keep that or fine-tune it later. Also, the ovs_version check is not updated. This is a post-install health check (does not block install/upgrade) with an update already in progress so will be addressed there.
* openshift_checks: refactor to internalize task_varsLuke Meyer2017-07-251-13/+13
| | | | | | | | | Move task_vars into instance variable so we don't have to pass it around everywhere. Also store tmp. Make sure both are filled in on execute_module. In the process, is_active became an instance method, and task_vars is basically never used directly outside of test code.
* Allow OVS 2.7 in latest OpenShift releasesRodolfo Carvalho2017-07-171-30/+0
| | | | | | | | | | | Change the package_version check to tolerate either Open vSwitch 2.6 or 2.7. Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1465882 This commit removes a unit test that adds no coverage and tests data instead of logic. This coupling makes every change to supported versions require the same changes to the tests.
* update aos_version module to support generic pkgs and versionsjuanvallejo2017-05-241-9/+117
|
* Merge pull request #3887 from rhcarvalho/pkg-version-only-master-or-nodeOpenShift Bot2017-04-131-0/+22
|\ | | | | Merged by openshift-bot
| * Do not check package version on non-master/nodeRodolfo Carvalho2017-04-101-0/+22
| |
* | preflight checks: refactor and fix aos_versionLuke Meyer2017-04-081-5/+8
|/ | | | | | | | | | | Bring in openshift_repos to provide Origin repo before checks on Origin. For OCP we want the check to fail if both version 3.3 and version 3.4 are available - they shouldn't have both channels enabled. For Origin everything is in one repo so it's not surprising to find 1.4 and 1.5 versions available. Added unit tests as well.
* Add unit tests for package_version.pyRodolfo Carvalho2017-03-281-0/+21