summaryrefslogtreecommitdiffstats
path: root/roles/openshift_health_checker/test/etcd_volume_test.py
diff options
context:
space:
mode:
authorScott Dodson <sdodson@redhat.com>2017-08-11 14:37:54 -0400
committerGitHub <noreply@github.com>2017-08-11 14:37:54 -0400
commit8daf3d92028cc6643cee438754ea3c08af540bef (patch)
treed5dd27ca9a7857c4d5df286df5380688c5271210 /roles/openshift_health_checker/test/etcd_volume_test.py
parentbe7e7308764eebdc30ec14d5dfaa49faa7f41d6d (diff)
parent3c71d009c034c4a0f795ae0fb939746aea80fbca (diff)
downloadopenshift-8daf3d92028cc6643cee438754ea3c08af540bef.tar.gz
openshift-8daf3d92028cc6643cee438754ea3c08af540bef.tar.bz2
openshift-8daf3d92028cc6643cee438754ea3c08af540bef.tar.xz
openshift-8daf3d92028cc6643cee438754ea3c08af540bef.zip
Merge pull request #4944 from sosiouxme/20170728-refactor-ansible-mounts
openshift_checks: refactor find_ansible_mount
Diffstat (limited to 'roles/openshift_health_checker/test/etcd_volume_test.py')
-rw-r--r--roles/openshift_health_checker/test/etcd_volume_test.py5
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)