From 39417e47dea99e47ec77dba1bfef465a1a599f69 Mon Sep 17 00:00:00 2001 From: Rishabh Dave Date: Mon, 4 Mar 2019 00:59:30 +0530 Subject: [PATCH] qa: add a method to test if a file can be created Signed-off-by: Rishabh Dave --- qa/tasks/cephfs/mount.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/qa/tasks/cephfs/mount.py b/qa/tasks/cephfs/mount.py index d187cedd5f86d..ca8a3a7d7e6b1 100644 --- a/qa/tasks/cephfs/mount.py +++ b/qa/tasks/cephfs/mount.py @@ -142,6 +142,11 @@ class CephFSMount(object): 'sudo', 'touch', os.path.join(self.mountpoint, suffix) ]) + def test_create_file(self, filename='testfile', dirname=None, user=None, + check_status=True): + return self.create_file(filename=filename, dirname=dirname, user=user, + check_status=False) + def check_files(self): assert(self.is_mounted()) -- 2.39.5