def setUpTestData(cls): load_test_database('users.user') load_test_database('saef.connectiontype') load_test_database('saef.connection') load_test_database('saef.postgresconnection') load_test_database('saef.applicationtoken') load_test_database('saef.application') load_test_database('saef.applicationsession') load_test_db('saef', 'test_application_overview')
def setUp(self): load_test_db("analyzer", "test_datastore_postgres") dataset = Dataset.objects.get(pk=1) postgres_connection = PostgresConnection.objects.get(pk=1) postgres_connection.db_name = TEST_POSTGRES_DB_NAME postgres_connection.username = TEST_POSTGRES_USERNAME postgres_connection.password = encrypt(TEST_POSTGRES_PASSWORD) postgres_connection.host = TEST_POSTGRES_HOST postgres_connection.port = TEST_POSTGRES_PORT postgres_connection.save() self.datastore = datastore_factory(dataset.connection.pk)
def setUp(self): load_test_db("analyzer", "test_datastore_azure") dataset = Dataset.objects.get(pk=1) azure_connection = AzureConnection.objects.get(pk=1) azure_connection.db_name = TEST_AZURE_DB_NAME azure_connection.username = TEST_AZURE_USERNAME azure_connection.password = encrypt(TEST_AZURE_PASSWORD) azure_connection.host = TEST_AZURE_HOST azure_connection.port = TEST_AZURE_PORT azure_connection.save() self.datastore = datastore_factory(dataset.connection.pk) self.setup_test_database()
def setUp(self): self.test_schema = 'dbo' self.test_table = 'saef_job' self.test_column = 'id' load_test_db("analyzer", "test_recordset_azure") dataset = Dataset.objects.get(pk=1) azure_connection = AzureConnection.objects.get(pk=1) azure_connection.db_name = TEST_AZURE_DB_NAME azure_connection.username = TEST_AZURE_USERNAME azure_connection.password = encrypt(TEST_AZURE_PASSWORD) azure_connection.host = TEST_AZURE_HOST azure_connection.port = TEST_AZURE_PORT azure_connection.save() self.recordset = recordset_factory(dataset)
def setUp(self): self.test_schema = 'public' self.test_table = 'saef_job' self.test_column = 'id' load_test_db("analyzer", "test_recordset_postgres") dataset = Dataset.objects.get(pk=1) postgres_connection = PostgresConnection.objects.get(pk=1) postgres_connection.db_name = TEST_POSTGRES_DB_NAME postgres_connection.username = TEST_POSTGRES_USERNAME postgres_connection.password = encrypt(TEST_POSTGRES_PASSWORD) postgres_connection.host = TEST_POSTGRES_HOST postgres_connection.port = TEST_POSTGRES_PORT postgres_connection.save() self.recordset = recordset_factory(dataset)
def setUpTestData(cls): load_test_db('saef', 'test_dataset_detail')
def setUpTestDatabase(): load_test_db('restapi', 'test_dataset_session')
def setUpTestData(cls): load_test_db('analyzer', 'test_analyzer_actual')
def setUpTestData(cls): load_test_db('analyzer', 'test_analyzer_expected')
def setUpTestData(cls): load_test_db("restapi", "test_application_session")
def setUpTestData(cls): load_test_db("saef", "test_index_doughnut_chart")
def setUpTestData(cls): load_test_db("analyzer", "test_analyzer_comparison")
def setUpTestData(cls): load_test_db("saef", "test_dataset_overview")
def setUpDatabase(): load_test_db("analyzer", "test_compute_application_session_meta_data_task")
def setUpTestData(cls): load_test_db("saef", "test_update_dataset")
def setUp(self): load_test_db("analyzer", "test_compute_job_session_meta_data")
def setUpTestData(cls): load_test_db('saef', 'test_application_detail')