]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
tests: add num_devices to node fixture
authorAndrew Schoen <aschoen@redhat.com>
Wed, 7 Dec 2016 16:32:00 +0000 (10:32 -0600)
committerAndrew Schoen <aschoen@redhat.com>
Wed, 7 Dec 2016 16:36:06 +0000 (10:36 -0600)
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
tests/conftest.py

index 87f1ac333f6ae7bbd444bdd137254e4f4d75d9b5..ef87c6cc7d042ec637a799687a3fa378f4b9c01c 100644 (file)
@@ -30,6 +30,7 @@ def node(Ansible, Interface, Command, request):
     address = Interface("eth1").addresses[0]
     subnet = ".".join(ansible_vars["public_network"].split(".")[0:-1])
     num_mons = len(ansible_vars["groups"]["mons"])
+    num_devices = len(ansible_vars["devices"])
     cluster_name = ansible_vars.get("cluster", "ceph")
     conf_path = "/etc/ceph/{}.conf".format(cluster_name)
     data = dict(
@@ -38,6 +39,7 @@ def node(Ansible, Interface, Command, request):
         vars=ansible_vars,
         osd_ids=osd_ids,
         num_mons=num_mons,
+        num_devices=num_devices,
         cluster_name=cluster_name,
         conf_path=conf_path,
     )