Skip to content

Commit

Permalink
Implement ceph-fs key rotation tests
Browse files Browse the repository at this point in the history
This PR implements tests for key rotation in ceph-fs units. It works
similarly to how RGW tests do.
  • Loading branch information
lmlg committed Apr 24, 2024
1 parent 2e0beac commit 3bf0ec7
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions zaza/openstack/charm_tests/ceph/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -1812,3 +1812,13 @@ def test_key_rotate(self):
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

0 comments on commit 3bf0ec7

Please sign in to comment.