def test_dbConfig(self): try: builder = RequestCommandBuilder(self.serviceProxy) sqlFile = '../../resources/opal/limesurvey.sql' DeleteDatabaseCommand(host='localhost', user='******', password='******', database='Limbo').execute() CreateDatabaseCommand(host='localhost', user='******', password='******', database='Limbo').execute() ImportDatabaseCommand(host='localhost', user='******', password='******', database='Limbo', sqlFile=sqlFile).execute() builder.build(CreateOpalDatabaseCommand, dbName='Limbo', dbHost='localhost', dbUrl='jdbc:mysql://localhost:3306/Limbo?characterEncoding=UTF-8', dbDriver='com.mysql.jdbc.Driver', dbUser='******', dbPassword='******').execute() # builder.build(DeleteOpalDatabaseCommand, dbName='Limbo').execute() except Exception, e: self.fail(e)
def test_requestCommandBuilderFileUpload(self): builder = RequestCommandBuilder(self.serviceProxy) builder.build(FileUploadCommand, localFile='../../resources/opal/DummyTable.xls', opalPath='/tmp').execute()