From: Sage Weil Date: Tue, 25 Jul 2017 15:25:00 +0000 (-0400) Subject: qa/workunits/cephtool/test.sh: add some config-key tests X-Git-Tag: v12.1.2~67^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=5534912daa423c6887586e0651002f82ab1b63a2;p=ceph.git qa/workunits/cephtool/test.sh: add some config-key tests Signed-off-by: Sage Weil --- 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() { #