]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/cephfs: adjust check of 'cephfs-table-tool all show snap' output
authorYan, Zheng <zyan@redhat.com>
Fri, 16 Mar 2018 09:40:59 +0000 (17:40 +0800)
committerYan, Zheng <zyan@redhat.com>
Sun, 18 Mar 2018 10:19:08 +0000 (18:19 +0800)
Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
qa/tasks/cephfs/test_journal_repair.py

index 62cbbb0684a76a19b3fc4fbd75aa5d48c187f901..3a82b39d0c71d4bac9deebe0375d02818e1a073b 100644 (file)
@@ -321,8 +321,10 @@ class TestJournalRepair(CephFSTestCase):
         # Should see no snaps
         self.assertEqual(
             json.loads(self.fs.table_tool(["all", "show", "snap"])),
-            {"version": 0,
+            {"version": 1,
              "snapserver": {"last_snap": 1,
+                            "last_created": 1,
+                            "last_destroyed": 1,
                             "pending_noop": [],
                             "snaps": [],
                             "need_to_purge": {},
@@ -363,6 +365,8 @@ class TestJournalRepair(CephFSTestCase):
             json.loads(self.fs.table_tool(["all", "show", "snap"])),
             {"version": 1,
              "snapserver": {"last_snap": 1,
+                            "last_created": 1,
+                            "last_destroyed": 1,
                             "pending_noop": [],
                             "snaps": [],
                             "need_to_purge": {},