]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
test/pybind/test_ceph_argparse.py: pg_num of pool creation now optional 30535/head
authorxie xingguo <xie.xingguo@zte.com.cn>
Tue, 24 Sep 2019 04:18:21 +0000 (12:18 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Tue, 24 Sep 2019 05:25:07 +0000 (13:25 +0800)
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 <xie.xingguo@zte.com.cn>
src/test/pybind/test_ceph_argparse.py

index 64321c7a70ced46b1b2782ca6f7c3ecb541cfff6..c7d3022e58a5d7188ad8cf8e5e7928b41db6b167 100755 (executable)
@@ -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',