def test_force_create_pg(self):
self.one_pgid('force_create_pg')
- def set_ratio(self, command):
- self.assert_valid_command(['pg',
- command,
- '0.0'])
- assert_equal({}, validate_command(sigdict, ['pg', command]))
- assert_equal({}, validate_command(sigdict, ['pg',
- command,
- '2.0']))
-
- def test_set_full_ratio(self):
- self.set_ratio('set_full_ratio')
-
- def test_set_nearfull_ratio(self):
- self.set_ratio('set_nearfull_ratio')
-
class TestAuth(TestArgparse):
'poolname',
'toomany']))
+ def set_ratio(self, command):
+ self.assert_valid_command(['osd',
+ command,
+ '0.0'])
+ assert_equal({}, validate_command(sigdict, ['osd', command]))
+ assert_equal({}, validate_command(sigdict, ['osd',
+ command,
+ '2.0']))
+
+ def test_set_full_ratio(self):
+ self.set_ratio('set-full-ratio')
+
+ def test_set_nearfull_ratio(self):
+ self.set_ratio('set-nearfull-ratio')
+
class TestConfigKey(TestArgparse):