From: Rishabh Dave Date: Sun, 3 Mar 2019 19:29:30 +0000 (+0530) Subject: qa: add a method to test if a file can be created X-Git-Tag: v15.1.0~2911^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=39417e47dea99e47ec77dba1bfef465a1a599f69;p=ceph-ci.git qa: add a method to test if a file can be created Signed-off-by: Rishabh Dave --- diff --git a/qa/tasks/cephfs/mount.py b/qa/tasks/cephfs/mount.py index d187cedd5f8..ca8a3a7d7e6 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())