]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa: fix cephfs-top tests for the new fields
authorJos Collin <jcollin@redhat.com>
Fri, 2 Jun 2023 11:09:49 +0000 (16:39 +0530)
committerJos Collin <jcollin@redhat.com>
Thu, 14 Sep 2023 05:34:06 +0000 (11:04 +0530)
Fixes: https://tracker.ceph.com/issues/61397
Signed-off-by: Jos Collin <jcollin@redhat.com>
(cherry picked from commit 0241a82b4d13c8ef21ee00fa3073fd970c56fafe)

qa/tasks/cephfs/test_fstop.py

index ed76eaac2cfb47064628fb598c4eaf319724a3ac..8294fceec926b51706413a40a4d61a73e3073f2b 100644 (file)
@@ -66,7 +66,7 @@ class TestFSTop(CephFSTestCase):
         Tests 'cephfs-top --dump' output is valid
         """
         def verify_fstop_metrics(metrics):
-            clients = metrics.get(self.fs.name, {})
+            clients = metrics.get('filesystems').get(self.fs.name, {})
             if str(self.mount_a.get_global_id()) in clients and \
                str(self.mount_b.get_global_id()) in clients:
                 return True