From 5534912daa423c6887586e0651002f82ab1b63a2 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Tue, 25 Jul 2017 11:25:00 -0400 Subject: [PATCH] qa/workunits/cephtool/test.sh: add some config-key tests Signed-off-by: Sage Weil --- qa/workunits/cephtool/test.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/qa/workunits/cephtool/test.sh b/qa/workunits/cephtool/test.sh index e10814543a0..9d8482df632 100755 --- a/qa/workunits/cephtool/test.sh +++ b/qa/workunits/cephtool/test.sh @@ -1349,6 +1349,21 @@ function test_mon_osd_create_destroy() } +function test_mon_config_key() +{ + key=asdfasdfqwerqwreasdfuniquesa123df + ceph config-key list | grep -c $key | grep 0 + ceph config-key get $key | grep -c bar | grep 0 + ceph config-key set $key bar + ceph config-key get $key | grep bar + ceph config-key list | grep -c $key | grep 1 + ceph config-key dump | grep $key | grep bar + ceph config-key rm $key + expect_false ceph config-key get $key + ceph config-key list | grep -c $key | grep 0 + ceph config-key dump | grep -c $key | grep 0 +} + function test_mon_osd() { #