summaryrefslogtreecommitdiffstats
path: root/roles/openshift_health_checker/test
Commit message (Collapse)AuthorAgeFilesLines
* remove skopeo dependency on docker-pyjuanvallejo2017-05-191-74/+73
|
* improve error handling for missing varsjuanvallejo2017-05-191-18/+169
|
* Merge pull request #3630 from juanvallejo/jvallejo/add-etcd-volume-checkOpenShift Bot2017-05-191-0/+149
|\ | | | | Merged by openshift-bot
| * Update checkRodolfo Carvalho2017-05-101-13/+13
| |
| * add etcd volume checkjuanvallejo2017-05-091-0/+149
| |
* | add etcd cluster size checkjuanvallejo2017-05-171-0/+328
| |
* | Merge pull request #3919 from rhcarvalho/fix-action-plugin-test-ansible2.3Rodolfo Carvalho2017-04-201-1/+3
|\ \ | | | | | | Fix instantiation of action plugin test to support Ansible 2.3
| * | Fix instantiation of action plugin in test fixtureRodolfo Carvalho2017-04-131-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | In Ansible 2.3+, the base action plugin class' run method depends on accessing attributes (check_mode) of its play_context. In older versions play_context was not involved in run, and thus None was passed in.
* | | Simplify memory availability check, review testsRodolfo Carvalho2017-04-172-52/+59
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Fix required memory for etcd hosts (10 -> 20 GB), as per documentation. - Some changes to make the code more similar to the similar DiskAvailability check. - Do not raise exception for hosts that do not have a recommended memory value (those are ignored anyway through `is_active`, so that was essentially dead code). - Test that the required memory is the max of the recommended memories for all groups assigned to a host. E.g. if a host is master and node, we should check that it has enough memory to be a master, because the memory requirement for a master is higher than for a node.
* | | Simplify disk availability check, review testsRodolfo Carvalho2017-04-171-78/+127
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - only support a fixed list of recommended values for now, no overwriting via Ansible variables (keep it simple, add features as needed). - implement is_active: run this check only for hosts that have a recommended disk space. - test priority of mount paths / and /var.
* | | add disk and memory availability check testsjuanvallejo2017-04-172-0/+190
| |/ |/|
* | 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
| |
* | Merge pull request #3757 from ↵OpenShift Bot2017-04-121-0/+14
|\ \ | | | | | | | | | | | | juanvallejo/jvallejo/skip-yum-update-check-on-fedora Merged by openshift-bot
| * | skip PackageAvailability check if not yumjuanvallejo2017-04-111-0/+14
| | |
* | | preflight checks: refactor and fix aos_versionLuke Meyer2017-04-083-6/+130
| |/ |/| | | | | | | | | | | | | | | | | | | 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 tests for action pluginRodolfo Carvalho2017-04-041-15/+168
| |
* | Make resolve_checks more strictRodolfo Carvalho2017-04-042-2/+81
|/ | | | | So that all names it return are directly usable, without checking for existence.
* Add test scaffold for docker_image_availability.pyRodolfo Carvalho2017-03-281-0/+28
| | | | | The intention is to set a starting point and let another team member work on the code to gain experience with tests.
* Add unit tests for package_version.pyRodolfo Carvalho2017-03-281-0/+21
|
* Add unit tests for package_update.pyRodolfo Carvalho2017-03-281-0/+16
|
* Add unit tests for package_availability.pyRodolfo Carvalho2017-03-281-0/+49
|
* Add unit tests for mixins.pyRodolfo Carvalho2017-03-281-0/+23
|
* Test recursively finding subclassesRodolfo Carvalho2017-03-281-0/+17
|
* Test OpenShift health check loaderRodolfo Carvalho2017-03-281-1/+8
|
* Rename module_executor -> execute_moduleRodolfo Carvalho2017-03-281-1/+36
| | | | | | | | It is a function/callable, the name should imply action, should be a verb and not a noun. Keep supporting the old name while we have PRs in-flight that use the old name.
* Add unit tests for existing health checksRodolfo Carvalho2017-03-172-0/+45