]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/workunit: Adding whitespace unit test for config set,get,rm 47380/head
authorNitzan Mordechai <nmordech@redhat.com>
Thu, 20 Jan 2022 10:24:29 +0000 (12:24 +0200)
committerNitzan Mordechai <nmordech@redhat.com>
Mon, 1 Aug 2022 06:27:53 +0000 (09:27 +0300)
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 <nmordech@redhat.com>
(cherry picked from commit 674489490fdd74b84295a57a71c51c6bc0ab2cee)

qa/workunits/mon/config.sh

index 36eab8f7ba3236fa3ac1f571c45711b62c179a8b..1b00201ae48165f8336633065d4350f46bfdc37c 100755 (executable)
@@ -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