From d3635b796ae28e1bc6598daf4109bf371a1f4ed8 Mon Sep 17 00:00:00 2001 From: Dan van der Ster Date: Fri, 26 Feb 2016 21:58:00 +0100 Subject: [PATCH] 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) --- src/test/pybind/test_ceph_argparse.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/test/pybind/test_ceph_argparse.py b/src/test/pybind/test_ceph_argparse.py index eb79323c0ff83..75ffa34ceb068 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'])) -- 2.39.5