Partial revert "mon: osd pool set syntax relaxed, modify unit tests"

This reverts commit 08327fed82, except
for the hashpspool bit.  We switched back to an integer argument in
commit 337195f046.

Signed-off-by: Sage Weil <sage@inktank.com>
This commit is contained in:
Sage Weil 2013-12-01 22:21:31 -08:00
parent ff60c364d3
commit e80ab94bf4

View File

@ -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):