]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
qa: add a method to test if a file can be created
authorRishabh Dave <ridave@redhat.com>
Sun, 3 Mar 2019 19:29:30 +0000 (00:59 +0530)
committerRishabh Dave <ridave@redhat.com>
Wed, 17 Apr 2019 18:28:22 +0000 (23:58 +0530)
Signed-off-by: Rishabh Dave <ridave@redhat.com>
qa/tasks/cephfs/mount.py

index d187cedd5f86dd5c43a922589b4df252258831e5..ca8a3a7d7e6b154fdae545aefbd758c437aed6c7 100644 (file)
@@ -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())