Пример #1
0
 def cifsUpdateFile(self,fileName, updateFileContent):
     TestCifsUtils.do_cifsUpdateFile(fileName, updateFileContent)
     return updateFileContent
Пример #2
0
 def cifsDeleteFile(self,fileName):
     deleteMessage = TestCifsUtils.do_cifsDeleteFile(fileName)
     return  deleteMessage
Пример #3
0
 def cifsCreateFile(self, fileName, createFileContent):
     TestCifsUtils.do_cifsCreateFile(fileName, createFileContent)
     return createFileContent
Пример #4
0
 def cifsReadFile(self, fileName ):
     readFileContent = TestCifsUtils.do_cifsReadFile(fileName)
     return  readFileContent
Пример #5
0
 def cifsMountAs(self, userName, userPass):
     status= TestCifsUtils.do_cifsMount('common/', userName, userPass)
     if status != 8192:      
         self.assertEqual(status, 0, 'CIFS Mount failure')
     return status
Пример #6
0
 def cifsUnmount(self):
     TestCifsUtils.do_cifsUnmount()
     return
Пример #7
0
 def cifsUpdateFile(self, fileName, updateFileContent):
     TestCifsUtils.do_cifsUpdateFile(fileName, updateFileContent)
     return updateFileContent
Пример #8
0
 def cifsDeleteFile(self, fileName):
     deleteMessage = TestCifsUtils.do_cifsDeleteFile(fileName)
     return deleteMessage
Пример #9
0
 def cifsCreateFile(self, fileName, createFileContent):
     TestCifsUtils.do_cifsCreateFile(fileName, createFileContent)
     return createFileContent
Пример #10
0
 def cifsReadFile(self, fileName):
     readFileContent = TestCifsUtils.do_cifsReadFile(fileName)
     return readFileContent
Пример #11
0
 def cifsUnmount(self):
     TestCifsUtils.do_cifsUnmount()
     return
Пример #12
0
 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
Пример #13
0
 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
Пример #15
0
 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