From 85518422c5bd38349e500a288eaccf40fa6d3dc6 Mon Sep 17 00:00:00 2001 From: xie xingguo Date: Tue, 24 Sep 2019 12:18:21 +0800 Subject: [PATCH] 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 --- src/test/pybind/test_ceph_argparse.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/test/pybind/test_ceph_argparse.py b/src/test/pybind/test_ceph_argparse.py index 64321c7a70ced..c7d3022e58a5d 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', -- 2.39.5