Implement ceph-fs key rotation tests

This PR implements tests for key rotation in ceph-fs units. It works
similarly to how RGW tests do.
This commit is contained in:
Luciano Lo Giudice
2024-04-24 11:29:33 -03:00
parent 2e0beacad4
commit 3bf0ec72b9

View File

@@ -1812,3 +1812,13 @@ class CephMonKeyRotationTests(test_utils.BaseCharmTest):
logging.info('ceph-radosgw units present, but no RGW service')
except KeyError:
pass
try:
zaza_model.get_application('ceph-fs')
fs_entity = self._get_all_keys(unit, lambda x: x.startswith('mds.'))
if fs_entity is not None:
self._check_key_rotation(next(iter(fs_entity))[0], unit)
else:
logging.info('ceph-fs units present, but no MDS service')
except KeyError:
pass