]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
test: Switch from pg to osd for set-*-ratio commands
authorDavid Zafman <dzafman@redhat.com>
Fri, 7 Apr 2017 16:36:26 +0000 (09:36 -0700)
committerDavid Zafman <dzafman@redhat.com>
Mon, 17 Apr 2017 14:58:30 +0000 (07:58 -0700)
Testing of 6422e0a220fb3f32ccae50e0c7e52dc9984685c6

Signed-off-by: David Zafman <dzafman@redhat.com>
src/test/pybind/test_ceph_argparse.py

index 0608655b58749f60dbfe1e19422f7458ccb9d965..e9694064bd20321d0bfadf8899c3f156f8be53dc 100755 (executable)
@@ -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):