From: xie xingguo Date: Tue, 24 Sep 2019 04:18:21 +0000 (+0800) Subject: test/pybind/test_ceph_argparse.py: pg_num of pool creation now optional X-Git-Tag: v15.1.0~1450^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F30535%2Fhead;p=ceph.git test/pybind/test_ceph_argparse.py: pg_num of pool creation now optional introduced by f88d95bef6948410603bd877aa4714a2afefd5a5 note that we remove the bad pg_num = -1 test too, which will now be treated as the the crush rule name (invalid but allowed) since pg_num is optional Signed-off-by: xie xingguo --- diff --git a/src/test/pybind/test_ceph_argparse.py b/src/test/pybind/test_ceph_argparse.py index 64321c7a70ce..c7d3022e58a5 100755 --- a/src/test/pybind/test_ceph_argparse.py +++ b/src/test/pybind/test_ceph_argparse.py @@ -1066,11 +1066,8 @@ class TestOSD(TestArgparse): self.assert_valid_command(['osd', 'pool', 'create', 'poolname', '128', '128', 'erasure', 'A-Za-z0-9-_.', 'ruleset^^']) + self.assert_valid_command(['osd', 'pool', 'create', 'poolname']) assert_equal({}, validate_command(sigdict, ['osd', 'pool', 'create'])) - assert_equal({}, validate_command(sigdict, ['osd', 'pool', 'create', - 'poolname'])) - assert_equal({}, validate_command(sigdict, ['osd', 'pool', 'create', - 'poolname', '-1'])) assert_equal({}, validate_command(sigdict, ['osd', 'pool', 'create', 'poolname', '128', '128',