From: Guang Yang Date: Thu, 3 Dec 2015 02:16:52 +0000 (+0000) Subject: qa: add a test for the recovery_priority/recovery_op_priority pool settings. X-Git-Tag: v10.0.2~110^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F5953%2Fhead;p=ceph.git qa: add a test for the recovery_priority/recovery_op_priority pool settings. Signed-off-by: Guang Yang --- diff --git a/qa/workunits/cephtool/test.sh b/qa/workunits/cephtool/test.sh index b33f1bec4374..9ab04d6a49a2 100755 --- a/qa/workunits/cephtool/test.sh +++ b/qa/workunits/cephtool/test.sh @@ -1407,6 +1407,18 @@ function test_mon_osd_pool_set() ceph osd pool set $TEST_POOL_GETSET deep_scrub_interval 0 expect_false "ceph osd pool get $TEST_POOL_GETSET deep_scrub_interval | grep '.'" + expect_false "ceph osd pool get $TEST_POOL_GETSET recovery_priority | grep '.'" + ceph osd pool set $TEST_POOL_GETSET recovery_priority 5 + ceph osd pool get $TEST_POOL_GETSET recovery_priority | grep 'recovery_priority: 5' + ceph osd pool set $TEST_POOL_GETSET recovery_priority 0 + expect_false "ceph osd pool get $TEST_POOL_GETSET recovery_priority | grep '.'" + + expect_false "ceph osd pool get $TEST_POOL_GETSET recovery_op_priority | grep '.'" + ceph osd pool set $TEST_POOL_GETSET recovery_op_priority 5 + ceph osd pool get $TEST_POOL_GETSET recovery_op_priority | grep 'recovery_op_priority: 5' + ceph osd pool set $TEST_POOL_GETSET recovery_op_priority 0 + expect_false "ceph osd pool get $TEST_POOL_GETSET recovery_op_priority | grep '.'" + ceph osd pool set $TEST_POOL_GETSET nopgchange 1 expect_false ceph osd pool set $TEST_POOL_GETSET pg_num 10 expect_false ceph osd pool set $TEST_POOL_GETSET pgp_num 10