]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/workunits/cephtool/test.sh: test reweight-by-pg
authorSage Weil <sage@redhat.com>
Tue, 19 Aug 2014 03:57:28 +0000 (20:57 -0700)
committerSage Weil <sage@redhat.com>
Tue, 19 Aug 2014 15:16:41 +0000 (08:16 -0700)
Signed-off-by: Sage Weil <sage@redhat.com>
qa/workunits/cephtool/test.sh

index c70d2bb587ef7620303c35c91ff20790f2c9fd8e..80bf76c65b385d576a4dd68e45b8976204c1c877 100755 (executable)
@@ -892,7 +892,13 @@ function test_mon_osd_misc()
 
   # expect "not in range" for invalid overload percentage
   ceph osd reweight-by-utilization 80 2>$TMPFILE; check_response 'not in range' $? 22
+
   set -e
+
+  ceph osd reweight-by-utilization 110
+  ceph osd reweight-by-pg 110
+  ceph osd reweight-by-pg 110 rbd
+  expect_false ceph osd reweight-by-pg 110 boguspoolasdfasdfasdf
 }
 
 function test_mon_heap_profiler()