]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
test: update argparse test for rmfailed
authorJohn Spray <john.spray@redhat.com>
Mon, 29 Feb 2016 12:11:34 +0000 (12:11 +0000)
committerJohn Spray <john.spray@redhat.com>
Thu, 10 Mar 2016 12:11:23 +0000 (12:11 +0000)
rmfailed argument used to be an integer greater than
zero, now any string is acceptable (because we accept
fs:rank role strings here)

Signed-off-by: John Spray <john.spray@redhat.com>
src/test/pybind/test_ceph_argparse.py

index a652d8742d416e667bc56c1029c548a8346fab84..8aa0c487a684794d100c39afa6194f3e5a87a4d1 100755 (executable)
@@ -415,10 +415,6 @@ class TestMDS(TestArgparse):
     def test_rmfailed(self):
         self.assert_valid_command(['mds', 'rmfailed', '0'])
         self.assert_valid_command(['mds', 'rmfailed', '0', '--yes-i-really-mean-it'])
-        assert_equal({}, validate_command(sigdict, ['mds', 'rmfailed',
-                                                    '--yes-i-really-mean-it']))
-        assert_equal({}, validate_command(sigdict, ['mds', 'rmfailed', '-1',
-                                                    '--yes-i-really-mean-it']))
         assert_equal({}, validate_command(sigdict, ['mds', 'rmfailed', '0',
                                                     '--yes-i-really-mean-it',
                                                     'toomany']))