From: Venky Shankar Date: Mon, 16 Mar 2026 04:48:22 +0000 (+0530) Subject: qa/cephfs: do not validate error string in "fs authorize" tests X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=d499c7f30f6d381bd3251108ff8dda9fd3c80f0f;p=ceph.git qa/cephfs: do not validate error string in "fs authorize" tests Error string validation is prone to failures when error string changes. errno (retval) validation suffices for tests. Signed-off-by: Venky Shankar --- diff --git a/qa/tasks/cephfs/test_admin.py b/qa/tasks/cephfs/test_admin.py index 20d0d7c7cda..048d7061e4f 100644 --- a/qa/tasks/cephfs/test_admin.py +++ b/qa/tasks/cephfs/test_admin.py @@ -2661,8 +2661,7 @@ class TestPermErrMsg(CephFSTestCase): for wrong_perm in ('w', 'wr'): self.negtest_ceph_cmd( args=(f'fs authorize {self.fs.name} {self.CLIENT_NAME} / ' - f'{wrong_perm}'), retval=self.EXPECTED_ERRNO, - errmsgs=self.EXPECTED_ERRMSG) + f'{wrong_perm}'), retval=self.EXPECTED_ERRNO) class TestFSFail(TestAdminCommands):