From: Nitzan Mordechai Date: Thu, 20 Jan 2022 10:24:29 +0000 (+0200) Subject: qa/workunit: Adding whitespace unit test for config set,get,rm X-Git-Tag: v16.2.11~347^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=c7dd86f1ea4fe31171477c5903224c9a4819ec6b;p=ceph.git qa/workunit: Adding whitespace unit test for config set,get,rm Update the workunit/mon/config.sh to include set/get/rm commands with and without whitespaces Fixes: https://tracker.ceph.com/issues/44092 Signed-off-by: Nitzan Mordechai (cherry picked from commit 674489490fdd74b84295a57a71c51c6bc0ab2cee) --- diff --git a/qa/workunits/mon/config.sh b/qa/workunits/mon/config.sh index 36eab8f7ba32..1b00201ae481 100755 --- a/qa/workunits/mon/config.sh +++ b/qa/workunits/mon/config.sh @@ -62,6 +62,17 @@ ceph config rm client.foo.bar debug_asok ceph config get client.foo.bar.baz debug_asok | grep 33 ceph config rm global debug_asok +# whitespace keys +ceph config set client.foo 'debug asok' 44 +ceph config get client.foo 'debug asok' | grep 44 +ceph config set client.foo debug_asok 55 +ceph config get client.foo 'debug asok' | grep 55 +ceph config set client.foo 'debug asok' 66 +ceph config get client.foo debug_asok | grep 66 +ceph config rm client.foo debug_asok +ceph config set client.foo debug_asok 66 +ceph config rm client.foo 'debug asok' + # help ceph config help debug_asok | grep debug_asok