]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
tests: make sure all osds are mounted
authorAndrew Schoen <aschoen@redhat.com>
Mon, 5 Dec 2016 21:54:11 +0000 (15:54 -0600)
committerAndrew Schoen <aschoen@redhat.com>
Tue, 6 Dec 2016 20:56:19 +0000 (14:56 -0600)
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
tests/functional/tests/osd/test_osds.py

index 3029f16b2da7c264b755852082cc4a1f63261db7..81bf599a49de676c7caeddc346662afc6c35cd9f 100644 (file)
@@ -16,3 +16,8 @@ class TestOSDs(object):
         # TODO: figure out way to paramaterize CephNode['osd_ids'] for this test
         for osd_id in CephNode["osd_ids"]:
             assert Service("ceph-osd@%s" % osd_id).is_enabled
+
+    def test_osd_are_mounted(self, CephNode, MountPoint):
+        # TODO: figure out way to paramaterize CephNode['osd_ids'] for this test
+        for osd_id in CephNode["osd_ids"]:
+            assert MountPoint("/var/lib/ceph/osd/ceph-%s" % osd_id).exists