From: David Zafman Date: Fri, 7 Apr 2017 16:36:26 +0000 (-0700) Subject: test: Switch from pg to osd for set-*-ratio commands X-Git-Tag: v12.0.2~51^2~19 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=811f89a682e831f98d602c9887034cef517a009a;p=ceph.git test: Switch from pg to osd for set-*-ratio commands Testing of 6422e0a220fb3f32ccae50e0c7e52dc9984685c6 Signed-off-by: David Zafman --- diff --git a/src/test/pybind/test_ceph_argparse.py b/src/test/pybind/test_ceph_argparse.py index 0608655b5874..e9694064bd20 100755 --- a/src/test/pybind/test_ceph_argparse.py +++ b/src/test/pybind/test_ceph_argparse.py @@ -183,21 +183,6 @@ class TestPG(TestArgparse): 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): @@ -1153,6 +1138,21 @@ class TestOSD(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):