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
Sébastien Han 2018-11-16 10:41:12 +01:00 committed by mergify[bot]
parent 1afa4c5c95
commit d9ac9d466c
1 changed files with 1 additions and 1 deletions

View File

@ -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