]> 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>
Thu, 10 Mar 2016 13:16:36 +0000 (08:16 -0500)
Test validity of --no-increasing and --yes-i-really-mean-it.

Signed-off-by: Dan van der Ster <daniel.vanderster@cern.ch>
(cherry picked from commit 1a6ad5053e7fc4f8942855a17ce4540e340e9d4f)

src/test/pybind/test_ceph_argparse.py

index eb79323c0ff836752b3305b7d38568bae4c446d0..75ffa34ceb0687ecdd56bd426e77350f89ae3f65 100755 (executable)
@@ -1086,6 +1086,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']))