]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
qa: add a test for the recovery_priority/recovery_op_priority pool settings. 5953/head
authorGuang Yang <yguang@yahoo-inc.com>
Thu, 3 Dec 2015 02:16:52 +0000 (02:16 +0000)
committerGuang Yang <yguang@yahoo-inc.com>
Thu, 3 Dec 2015 02:16:52 +0000 (02:16 +0000)
Signed-off-by: Guang Yang <yguang@yahoo-inc.com>
qa/workunits/cephtool/test.sh

index b33f1bec4374f90eaeb9ace711559ebb3f9d866f..9ab04d6a49a2e3f3c9f4f837cea901dd75412448 100755 (executable)
@@ -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