]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
test: add simple test for new reweight-by-* options
authorDan van der Ster <daniel.vanderster@cern.ch>
Fri, 26 Feb 2016 20:58:00 +0000 (21:58 +0100)
committerSage Weil <sage@redhat.com>
Tue, 1 Mar 2016 16:37:58 +0000 (11:37 -0500)
Test validity of --no-increasing and --yes-i-really-mean-it.

Signed-off-by: Dan van der Ster <daniel.vanderster@cern.ch>
src/test/pybind/test_ceph_argparse.py

index 7c96881d1ed5d1eb56b479c3fdadb3ec936434f2..a652d8742d416e667bc56c1029c548a8346fab84 100755 (executable)
@@ -1111,6 +1111,8 @@ class TestOSD(TestArgparse):
     def test_reweight_by_utilization(self):
         self.assert_valid_command(['osd', 'reweight-by-utilization'])
         self.assert_valid_command(['osd', 'reweight-by-utilization', '100'])
+        self.assert_valid_command(['osd', 'reweight-by-utilization', '--no-increasing'])
+        self.assert_valid_command(['osd', 'reweight-by-utilization', '--yes-i-really-mean-it'])
         assert_equal({}, validate_command(sigdict, ['osd',
                                                     'reweight-by-utilization',
                                                     '50']))