From: Alfredo Deza Date: Thu, 18 Jul 2013 16:12:38 +0000 (-0400) Subject: update tests for the new base method using cluster X-Git-Tag: v1.2~30^2~8 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=fe92edfef6f7cbb9302bf8bc45e743aaf9260b54;p=ceph-deploy.git update tests for the new base method using cluster --- diff --git a/ceph_deploy/tests/unit/util/test_paths.py b/ceph_deploy/tests/unit/util/test_paths.py index ff5b2d3..e467e25 100644 --- a/ceph_deploy/tests/unit/util/test_paths.py +++ b/ceph_deploy/tests/unit/util/test_paths.py @@ -4,22 +4,23 @@ from ceph_deploy.util import paths class TestMonPaths(object): def test_base_path(self): - assert paths.mon._base.endswith('/ceph-') + result = paths.mon._base('mycluster') + assert result.endswith('/mycluster-') def test_path(self): - result = paths.mon.path('ceph', 'myhostname') + result = paths.mon.path('mycluster', 'myhostname') assert result.startswith('/') - assert result.endswith('/ceph-myhostname') + assert result.endswith('/mycluster-myhostname') def test_done(self): - result = paths.mon.done('ceph', 'myhostname') + result = paths.mon.done('mycluster', 'myhostname') assert result.startswith('/') - assert result.endswith('ceph-myhostname/done') + assert result.endswith('mycluster-myhostname/done') def test_init(self): - result = paths.mon.init('ceph', 'myhostname', 'init') + result = paths.mon.init('mycluster', 'myhostname', 'init') assert result.startswith('/') - assert result.endswith('ceph-myhostname/init') + assert result.endswith('mycluster-myhostname/init') def test_keyring(self): result = paths.mon.keyring('mycluster', 'myhostname')