From 8fd3dbddafc32b6dd86b6df0b8e9d770c221400e Mon Sep 17 00:00:00 2001 From: Nitzan Mordechai Date: Thu, 20 Jan 2022 12:24:29 +0200 Subject: [PATCH] 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) --- qa/workunits/mon/config.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) 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 -- 2.47.3