summaryrefslogtreecommitdiffstats
path: root/src/test/pybind
diff options
context:
space:
mode:
authorDavid Zafman <dzafman@redhat.com>2017-04-07 18:36:26 +0200
committerDavid Zafman <dzafman@redhat.com>2017-04-17 16:58:30 +0200
commit811f89a682e831f98d602c9887034cef517a009a (patch)
tree34f7ab77b71c3da1c4f2aa9a677e5fafe40fc090 /src/test/pybind
parentosd: Remove unused argument to clear_queued_recovery (diff)
downloadceph-811f89a682e831f98d602c9887034cef517a009a.tar.xz
ceph-811f89a682e831f98d602c9887034cef517a009a.zip
test: Switch from pg to osd for set-*-ratio commands
Testing of 6422e0a220fb3f32ccae50e0c7e52dc9984685c6 Signed-off-by: David Zafman <dzafman@redhat.com>
Diffstat (limited to 'src/test/pybind')
-rwxr-xr-xsrc/test/pybind/test_ceph_argparse.py30
1 files changed, 15 insertions, 15 deletions
diff --git a/src/test/pybind/test_ceph_argparse.py b/src/test/pybind/test_ceph_argparse.py
index 0608655b587..e9694064bd2 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):