From: Dan van der Ster Date: Fri, 26 Feb 2016 20:58:00 +0000 (+0100) Subject: test: add simple test for new reweight-by-* options X-Git-Tag: v10.1.0~198^2~11 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=1a6ad5053e7fc4f8942855a17ce4540e340e9d4f;p=ceph.git test: add simple test for new reweight-by-* options Test validity of --no-increasing and --yes-i-really-mean-it. Signed-off-by: Dan van der Ster --- diff --git a/src/test/pybind/test_ceph_argparse.py b/src/test/pybind/test_ceph_argparse.py index 7c96881d1ed5..a652d8742d41 100755 --- a/src/test/pybind/test_ceph_argparse.py +++ b/src/test/pybind/test_ceph_argparse.py @@ -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']))