]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-deploy.git/commit
Add new unit tests for get_mon_initial_members(). 271/head
authorVicente Cheng <freeze.bilsted@gmail.com>
Fri, 20 Mar 2015 02:14:41 +0000 (10:14 +0800)
committerVicente Cheng <freeze.bilsted@gmail.com>
Fri, 20 Mar 2015 02:14:41 +0000 (10:14 +0800)
commit025e4ba7f6e53dbaefc35dd6bbdc089ebb057216
tree1c68e9bc818606be156a5953b92c5f3c9ce9c8fb
parent88c48395471e686389bc2c672e29d61026de8d95
Add new unit tests for get_mon_initial_members().

    Add the unit tests for new abstracted function.
    Detail as below:

    1. Test Mon value is None and
       error_on_empty is True.
    2. Test Mon value is None and
       error_on_empty is False.
    3. Test Mon value is single item.
    4. Test Mon value is multiple item.

If you have any questions, feel free to let me know.
Thanks!

Signed-off-by: Vicente Cheng <freeze.bilsted@gmail.com>
ceph_deploy/tests/test_mon.py