def cifsUpdateFile(self,fileName, updateFileContent): TestCifsUtils.do_cifsUpdateFile(fileName, updateFileContent) return updateFileContent
def cifsDeleteFile(self,fileName): deleteMessage = TestCifsUtils.do_cifsDeleteFile(fileName) return deleteMessage
def cifsCreateFile(self, fileName, createFileContent): TestCifsUtils.do_cifsCreateFile(fileName, createFileContent) return createFileContent
def cifsReadFile(self, fileName ): readFileContent = TestCifsUtils.do_cifsReadFile(fileName) return readFileContent
def cifsMountAs(self, userName, userPass): status= TestCifsUtils.do_cifsMount('common/', userName, userPass) if status != 8192: self.assertEqual(status, 0, 'CIFS Mount failure') return status
def cifsUnmount(self): TestCifsUtils.do_cifsUnmount() return
def cifsUpdateFile(self, fileName, updateFileContent): TestCifsUtils.do_cifsUpdateFile(fileName, updateFileContent) return updateFileContent
def cifsDeleteFile(self, fileName): deleteMessage = TestCifsUtils.do_cifsDeleteFile(fileName) return deleteMessage
def cifsReadFile(self, fileName): readFileContent = TestCifsUtils.do_cifsReadFile(fileName) return readFileContent
def cifsMountAs(self, userArea, userName, userPass): status = TestCifsUtils.do_cifsMount('private/' + userArea, userName, userPass) if status != 8192: self.assertEqual(status, 0, 'CIFS Mount failure') return status
def cifsMountAs(self, userArea, userName, userPass): status = TestCifsUtils.do_cifsMount("shared/" + userArea, userName, userPass) if status != 8192: self.assertEqual(status, 0, "CIFS Mount failure") return status
def cifsMountAs(self, access, userArea, userName, userPass): status = TestCifsUtils.do_cifsMount(access + "/" + userArea, userName, userPass) if status != 32 * 256: # 32 is exit status for mount failure: just return status self.assertEqual(status, 0, "CIFS Mount failure") return status
def cifsMountAs(self, access, userArea, userName, userPass): status = TestCifsUtils.do_cifsMount(access + '/' + userArea, userName, userPass) if status != 32 * 256: # 32 is exit status for mount failure: just return status self.assertEqual(status, 0, 'CIFS Mount failure') return status