]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
tests: test that all docker OSDs are up and in 1485/head
authorAndrew Schoen <aschoen@redhat.com>
Mon, 1 May 2017 15:45:44 +0000 (10:45 -0500)
committerAndrew Schoen <aschoen@redhat.com>
Mon, 1 May 2017 16:40:44 +0000 (11:40 -0500)
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
tests/functional/tests/mon/test_mons.py

index 73229f0a08b27c0d582a224adb7adc98669bafae..d97429affee654d46556f6fb7d9216c4e21b84d9 100644 (file)
@@ -37,3 +37,13 @@ class TestOSDs(object):
         output = Command.check_output(cmd)
         phrase = "{num_osds} osds: {num_osds} up, {num_osds} in".format(num_osds=node["total_osds"])
         assert phrase in output
+
+    @pytest.mark.docker
+    def test_all_docker_osds_are_up_and_in(self, node, Command):
+        cmd = "sudo docker exec ceph-mon-ceph-{} ceph --cluster={} --connect-timeout 5 -s".format(
+            node["vars"]["inventory_hostname"],
+            node["cluster_name"]
+        )
+        output = Command.check_output(cmd)
+        phrase = "{num_osds} osds: {num_osds} up, {num_osds} in".format(num_osds=node["total_osds"])
+        assert phrase in output