From 3bf0ec72b99053277e5fe4e86877f5fc84c8d6a9 Mon Sep 17 00:00:00 2001 From: Luciano Lo Giudice Date: Wed, 24 Apr 2024 11:29:33 -0300 Subject: [PATCH] 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. --- zaza/openstack/charm_tests/ceph/tests.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/zaza/openstack/charm_tests/ceph/tests.py b/zaza/openstack/charm_tests/ceph/tests.py index 85de53dcf..9e18ca872 100644 --- a/zaza/openstack/charm_tests/ceph/tests.py +++ b/zaza/openstack/charm_tests/ceph/tests.py @@ -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