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: v0.94.7~10^2~14 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=d3635b796ae28e1bc6598daf4109bf371a1f4ed8;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 (cherry picked from commit 1a6ad5053e7fc4f8942855a17ce4540e340e9d4f) --- diff --git a/src/test/pybind/test_ceph_argparse.py b/src/test/pybind/test_ceph_argparse.py index eb79323c0ff8..75ffa34ceb06 100755 --- a/src/test/pybind/test_ceph_argparse.py +++ b/src/test/pybind/test_ceph_argparse.py @@ -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']))