mirror of https://github.com/ceph/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 <seb@redhat.com>pull/3367/head
parent
1afa4c5c95
commit
d9ac9d466c
|
@ -540,7 +540,7 @@ class TestCephKeyModule(object):
|
||||||
|
|
||||||
def test_build_key_path_bootstrap_osd(self):
|
def test_build_key_path_bootstrap_osd(self):
|
||||||
fake_cluster = "fake"
|
fake_cluster = "fake"
|
||||||
entity = "bootstrap-osd"
|
entity = "client.bootstrap-osd"
|
||||||
expected_result = "/var/lib/ceph/bootstrap-osd/fake.keyring"
|
expected_result = "/var/lib/ceph/bootstrap-osd/fake.keyring"
|
||||||
result = ceph_key.build_key_path(fake_cluster, entity)
|
result = ceph_key.build_key_path(fake_cluster, entity)
|
||||||
assert result == expected_result
|
assert result == expected_result
|
||||||
|
|
Loading…
Reference in New Issue