]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
qa: add test for clearomap cli option
authorAbhishek Lekshmanan <abhishek@suse.com>
Mon, 27 Nov 2017 18:37:13 +0000 (19:37 +0100)
committerAbhishek Lekshmanan <abhishek@suse.com>
Tue, 5 Dec 2017 10:06:22 +0000 (11:06 +0100)
Fixes:http://tracker.ceph.com/issues/22255
Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
qa/workunits/rados/test_rados_tool.sh

index 60024c2ceed48f4023af1cac0c0f56d9e27e7b6b..e81e83982d7c625956da7c3ebaf01a8b598384ad 100755 (executable)
@@ -302,6 +302,8 @@ test_omap() {
         $RADOS_TOOL -p $POOL rmomapkey $OBJ $i
     done
     $RADOS_TOOL -p $POOL listomapvals $OBJ | grep -c value | grep 5
+    $RADOS_TOOL -p $POOL clearomap $OBJ |
+    $RADOS_TOOL -p $POOL listomapvals $OBJ | wc -l | grep 0
     cleanup
 
     for i in $(seq 1 1 10)