diff --git a/src/test/pybind/test_ceph_argparse.py b/src/test/pybind/test_ceph_argparse.py index f44adf77890..a6d973b2264 100755 --- a/src/test/pybind/test_ceph_argparse.py +++ b/src/test/pybind/test_ceph_argparse.py @@ -945,14 +945,20 @@ class TestOSD(TestArgparse): 'pg_num', 'pgp_num', 'crush_ruleset', 'hashpspool'): self.assert_valid_command(['osd', 'pool', - 'set', 'poolname', var, 'value']) + 'set', 'poolname', var, '-1']) assert_equal({}, validate_command(sigdict, ['osd', 'pool', 'set'])) assert_equal({}, validate_command(sigdict, ['osd', 'pool', 'set', 'poolname'])) assert_equal({}, validate_command(sigdict, ['osd', 'pool', 'set', 'poolname', - 'size', 'value', + 'size', 'invalid'])) + assert_equal({}, validate_command(sigdict, ['osd', 'pool', + 'set', 'poolname', + 'invalid', '-1'])) + assert_equal({}, validate_command(sigdict, ['osd', 'pool', + 'set', 'poolname', + 'size', '-1', 'toomany'])) def test_pool_set_quota(self):