]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/test/common/test_context.cc
update sources to v12.1.0
[ceph.git] / ceph / src / test / common / test_context.cc
index d976758c6b7c35edaf1a7d4c3783d9e1103be6e4..ee0f646066625906e20ff0fd3fe9752da7649913 100644 (file)
@@ -52,6 +52,13 @@ TEST(CephContext, do_command)
     EXPECT_EQ("{\n    \"key\": \"value\"\n}\n", s);
   }
 
+  {
+    bufferlist out;
+    cct->do_command("config diff get", cmdmap, "xml", &out);
+    string s(out.c_str(), out.length());
+    EXPECT_EQ("<config_diff_get><diff><current><key>" + value + 
+      "</key></current><defaults><key></key></defaults></diff></config_diff_get>", s);
+  }
   cct->put();
 }