示例#1
0
 def __init__(self, methodName = "runTest"):
     '''
     To run the sharestore tests, you must create a section in the ~/.vault
     test config file with the following form:
     
     [Share]
     folder = <folder that the remote system will be mounted to>
     mount = <mount command>
     umount = <umount command>
     
     The folder will be deleted after the tests have run.
     
     For example:
     [Share]
     folder = /tmp/vault-test
     mount = sshfs <name>@<server>:<remote-folder> /tmp/vault-test
     umount = fusermount -u /tmp/vault-test
     '''
     StoreBaseTests.__init__(self)
     unittest.TestCase.__init__(self, methodName)
     try:
         self.folder = self.config.get("Share", "folder")
         self.mount = self.config.get("Share", "mount")
         self.umount = self.config.get("Share", "umount")
     except:
         raise Exception("Share config missing from vault test config")
示例#2
0
    def __init__(self, methodName="runTest"):
        StoreBaseTests.__init__(self)
        unittest.TestCase.__init__(self, methodName)

        try:
            self.root = self.config.get("Google", "root")
            self.login = self.config.get("Google", "login")
            self.password = self.config.get("Google", "password")
        except Exception as e:
            raise Exception("Google login or password missing from vault test config", str(e))
示例#3
0
 def __init__(self, methodName = "runTest"):
     StoreBaseTests.__init__(self)
     unittest.TestCase.__init__(self, methodName)
     
     try:
         self.key = self.config.get("Amazon", "aws_access_key_id")
         self.secret_key = self.config.get("Amazon", "aws_secret_access_key")
         self.bucket = self.config.get("Amazon", "bucket")
     except:
         raise Exception("Amazon keys missing from vault test config")
示例#4
0
    def __init__(self, methodName="runTest"):
        StoreBaseTests.__init__(self)
        unittest.TestCase.__init__(self, methodName)

        try:
            self.server = self.config.get("FTP", "server")
            self.login = self.config.get("FTP", "login")
            self.password = self.config.get("FTP", "password")
            self.folder = self.config.get("FTP", "folder")

        except Exception as e:
            raise Exception("FTP server, login or password missing from vault test config", str(e))
示例#5
0
    def __init__(self, methodName = "runTest"):
        StoreBaseTests.__init__(self)
        unittest.TestCase.__init__(self, methodName)

        try:
            self.login = self.config.get("DropBox", "login")
            self.password = self.config.get("DropBox", "password")
            self.folder = self.config.get("DropBox", "folder")
            self.app_key = self.config.get("DropBox", "app_key")
            self.app_secret_key = self.config.get("DropBox", "app_secret_key")
        except Exception as e:
            raise Exception("DropBox login or password missing from vault test config", str(e))
示例#6
0
 def __init__(self, methodName = "runTest"):
     StoreBaseTests.__init__(self)
     unittest.TestCase.__init__(self, methodName)