]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-deploy.git/commitdiff
tests for the new asok path
authorAlfredo Deza <alfredo.deza@inktank.com>
Fri, 6 Dec 2013 15:44:32 +0000 (10:44 -0500)
committerAlfredo Deza <alfredo.deza@inktank.com>
Fri, 6 Dec 2013 15:44:32 +0000 (10:44 -0500)
Signed-off-by: Alfredo Deza <alfredo.deza@inktank.com>
ceph_deploy/tests/unit/util/test_paths.py

index 71bcc62fdfd879892240dc19471d4e67482bc20c..9e0bb913958015c85e779e3b99a357a0df1e8451 100644 (file)
@@ -27,3 +27,7 @@ class TestMonPaths(object):
         assert result.startswith('/')
         assert result.endswith('tmp/mycluster-myhostname.mon.keyring')
 
+    def test_asok(self):
+        result = paths.mon.asok('mycluster', 'myhostname')
+        assert result.startswith('/')
+        assert result.endswith('mycluster-myhostname.asok')