qa: add test for clearomap cli option

Fixes:http://tracker.ceph.com/issues/22255
Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
This commit is contained in:
Abhishek Lekshmanan 2017-11-27 19:37:13 +01:00
parent b086f53ec0
commit 83631d9bd8

View File

@ -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)