From: Sébastien Han Date: Fri, 16 Nov 2018 09:41:12 +0000 (+0100) Subject: test_build_key_path_bootstrap_osd: fix X-Git-Tag: v4.0.0beta1~185 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=d9ac9d466cfbbfa53d6014dfe374e8ea98887c4e;p=ceph-ansible.git test_build_key_path_bootstrap_osd: fix The entity name is client.bootstrap-osd (as returned by Ceph), and not bootstrap-osd. The build_key_path function split 'client.bootstrap-osd' on the '.' so using bootstrap-osd fails with index out of range. Signed-off-by: Sébastien Han --- diff --git a/library/test_ceph_key.py b/library/test_ceph_key.py index 143b6c8f3..e0b747941 100644 --- a/library/test_ceph_key.py +++ b/library/test_ceph_key.py @@ -540,7 +540,7 @@ class TestCephKeyModule(object): def test_build_key_path_bootstrap_osd(self): fake_cluster = "fake" - entity = "bootstrap-osd" + entity = "client.bootstrap-osd" expected_result = "/var/lib/ceph/bootstrap-osd/fake.keyring" result = ceph_key.build_key_path(fake_cluster, entity) assert result == expected_result