diff options
author | Luke Meyer <lmeyer@redhat.com> | 2017-07-28 17:06:54 -0400 |
---|---|---|
committer | Luke Meyer <lmeyer@redhat.com> | 2017-08-08 15:42:28 -0400 |
commit | 3c71d009c034c4a0f795ae0fb939746aea80fbca (patch) | |
tree | 86a3b227f2322300ba23999843ac6d8bead27a61 /roles/openshift_health_checker/test/etcd_volume_test.py | |
parent | 566731dc4dd1aebbbf0244dc8a31eefb8cd42de5 (diff) | |
download | openshift-3c71d009c034c4a0f795ae0fb939746aea80fbca.tar.gz openshift-3c71d009c034c4a0f795ae0fb939746aea80fbca.tar.bz2 openshift-3c71d009c034c4a0f795ae0fb939746aea80fbca.tar.xz openshift-3c71d009c034c4a0f795ae0fb939746aea80fbca.zip |
openshift_checks: refactor find_ansible_mount
Reuse the code for finding the ansible_mounts mount for a path.
Diffstat (limited to 'roles/openshift_health_checker/test/etcd_volume_test.py')
-rw-r--r-- | roles/openshift_health_checker/test/etcd_volume_test.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/roles/openshift_health_checker/test/etcd_volume_test.py b/roles/openshift_health_checker/test/etcd_volume_test.py index 0b255136e..077cea3ea 100644 --- a/roles/openshift_health_checker/test/etcd_volume_test.py +++ b/roles/openshift_health_checker/test/etcd_volume_test.py @@ -1,6 +1,7 @@ import pytest -from openshift_checks.etcd_volume import EtcdVolume, OpenShiftCheckException +from openshift_checks.etcd_volume import EtcdVolume +from openshift_checks import OpenShiftCheckException @pytest.mark.parametrize('ansible_mounts,extra_words', [ @@ -15,7 +16,7 @@ def test_cannot_determine_available_disk(ansible_mounts, extra_words): with pytest.raises(OpenShiftCheckException) as excinfo: EtcdVolume(fake_execute_module, task_vars).run() - for word in 'Unable to find etcd storage mount point'.split() + extra_words: + for word in ['Unable to determine mount point'] + extra_words: assert word in str(excinfo.value) |