mirror of
https://github.com/ceph/ceph
synced 2024-12-20 18:33:44 +00:00
Partial revert "mon: osd pool set syntax relaxed, modify unit tests"
This reverts commit08327fed82
, except for the hashpspool bit. We switched back to an integer argument in commit337195f046
. Signed-off-by: Sage Weil <sage@inktank.com>
This commit is contained in:
parent
ff60c364d3
commit
e80ab94bf4
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user