Skip to content

Commit

Permalink
remove impala tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ginberg committed Jan 17, 2024
1 parent 543b4b1 commit 145e97f
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 59 deletions.
6 changes: 0 additions & 6 deletions tests/testImpala.R

This file was deleted.

14 changes: 0 additions & 14 deletions tests/testthat/setup.R
Original file line number Diff line number Diff line change
Expand Up @@ -115,20 +115,6 @@ if (dbms == "oracle") {
options(sqlRenderTempEmulationSchema = oracleOhdsiDatabaseSchema)
}

# impala
if (dbms == "impala") {
# NOTE: Driver for IMPALA requires manual installation
impalaConnectionDetails <- createConnectionDetails(
dbms = "impala",
user = Sys.getenv("CDM5_IMPALA_USER"),
password = URLdecode(Sys.getenv("CDM5_IMPALA_PASSWORD")),
server = Sys.getenv("CDM5_IMPALA_SERVER"),
pathToDriver = Sys.getenv("CDM5_IMPALA_PATH_TO_DRIVER")
)
impalaCdmDatabaseSchema <- Sys.getenv("CDM5_IMPALA_CDM_SCHEMA")
impalaOhdsiDatabaseSchema <- Sys.getenv("CDM5_IMPALA_OHDSI_SCHEMA")
}

# redshift
if (dbms == "redshift") {
DatabaseConnector::downloadJdbcDrivers("redshift")
Expand Down
32 changes: 0 additions & 32 deletions tests/testthat/test-query-no-fail.R
Original file line number Diff line number Diff line change
Expand Up @@ -156,14 +156,6 @@ test_that("Run all analysis at per-person level on Oracle", {
expect_true(is(covariateData, "CovariateData"))
})

test_that("Run all analysis at per-person level on Impala", {
skip_if_not(dbms == "impala")
impalaConnection <- createUnitTestData(impalaConnectionDetails, impalaCdmDatabaseSchema, impalaOhdsiDatabaseSchema, cohortTable, cohortAttributeTable, attributeDefinitionTable)
on.exit(dropUnitTestData(impalaConnection, impalaOhdsiDatabaseSchema, cohortTable, cohortAttributeTable, attributeDefinitionTable))
covariateData <- runExtractionPerPerson(impalaConnection, impalaCdmDatabaseSchema, impalaOhdsiDatabaseSchema, cohortTable)
expect_true(is(covariateData, "CovariateData"))
})

test_that("Run all analysis at per-person level on Redshift", {
skip_if_not(dbms == "redshift")
redshiftConnection <- createUnitTestData(redshiftConnectionDetails, redshiftCdmDatabaseSchema, redshiftOhdsiDatabaseSchema, cohortTable, cohortAttributeTable, attributeDefinitionTable)
Expand Down Expand Up @@ -335,14 +327,6 @@ test_that("Run all analysis at aggregated level on Oracle", {
expect_true(is(covariateData, "CovariateData"))
})

test_that("Run all analysis at aggregated level on Impala", {
skip_if_not(dbms == "impala")
impalaConnection <- createUnitTestData(impalaConnectionDetails, impalaCdmDatabaseSchema, impalaOhdsiDatabaseSchema, cohortTable, cohortAttributeTable, attributeDefinitionTable)
on.exit(dropUnitTestData(impalaConnection, impalaOhdsiDatabaseSchema, cohortTable, cohortAttributeTable, attributeDefinitionTable))
covariateData <- runExtractionAggregated(impalaConnection, impalaCdmDatabaseSchema, impalaOhdsiDatabaseSchema, cohortTable)
expect_true(is(covariateData, "CovariateData"))
})

test_that("Run all analysis at aggregated level on Redshift", {
skip_if_not(dbms == "redshift")
redshiftConnection <- createUnitTestData(redshiftConnectionDetails, redshiftCdmDatabaseSchema, redshiftOhdsiDatabaseSchema, cohortTable, cohortAttributeTable, attributeDefinitionTable)
Expand Down Expand Up @@ -443,14 +427,6 @@ test_that("Run all temporalanalysis at per-person level on Oracle", {
expect_true(is(covariateData, "CovariateData"))
})

test_that("Run all temporalanalysis at per-person level on Impala", {
skip_if_not(dbms == "impala")
impalaConnection <- createUnitTestData(impalaConnectionDetails, impalaCdmDatabaseSchema, impalaOhdsiDatabaseSchema, cohortTable, cohortAttributeTable, attributeDefinitionTable)
on.exit(dropUnitTestData(impalaConnection, impalaOhdsiDatabaseSchema, cohortTable, cohortAttributeTable, attributeDefinitionTable))
covariateData <- runExtractionTemporalPerPerson(impalaConnection, impalaCdmDatabaseSchema, impalaOhdsiDatabaseSchema, cohortTable)
expect_true(is(covariateData, "CovariateData"))
})

test_that("Run all temporalanalysis at per-person level on Redshift", {
skip_if_not(dbms == "redshift")
redshiftConnection <- createUnitTestData(redshiftConnectionDetails, redshiftCdmDatabaseSchema, redshiftOhdsiDatabaseSchema, cohortTable, cohortAttributeTable, attributeDefinitionTable)
Expand Down Expand Up @@ -552,14 +528,6 @@ test_that("Run all temporalanalysis at aggregated level on Oracle", {
expect_true(is(covariateData, "CovariateData"))
})

test_that("Run all temporalanalysis at aggregated level on Impala", {
skip_if_not(dbms == "impala")
impalaConnection <- createUnitTestData(impalaConnectionDetails, impalaCdmDatabaseSchema, impalaOhdsiDatabaseSchema, cohortTable, cohortAttributeTable, attributeDefinitionTable)
on.exit(dropUnitTestData(impalaConnection, impalaOhdsiDatabaseSchema, cohortTable, cohortAttributeTable, attributeDefinitionTable))
covariateData <- runExtractionTemporalAggregated(impalaConnection, impalaCdmDatabaseSchema, impalaOhdsiDatabaseSchema, cohortTable)
expect_true(is(covariateData, "CovariateData"))
})

test_that("Run all temporalanalysis at aggregated level on Redshift", {
skip_if_not(dbms == "redshift")
redshiftConnection <- createUnitTestData(redshiftConnectionDetails, redshiftCdmDatabaseSchema, redshiftOhdsiDatabaseSchema, cohortTable, cohortAttributeTable, attributeDefinitionTable)
Expand Down
7 changes: 0 additions & 7 deletions tests/testthat/test-spot-checks.R
Original file line number Diff line number Diff line change
Expand Up @@ -201,13 +201,6 @@ test_that("Run spot-checks at per-person level on Oracle", {
runSpotChecks(oracleConnection, oracleCdmDatabaseSchema, oracleOhdsiDatabaseSchema, cohortTable)
})

test_that("Run spot-checks at per-person level on Impala", {
skip_if_not(dbms == "impala")
impalaConnection <- createUnitTestData(impalaConnectionDetails, impalaCdmDatabaseSchema, impalaOhdsiDatabaseSchema, cohortTable, cohortAttributeTable, attributeDefinitionTable)
on.exit(dropUnitTestData(impalaConnection, impalaOhdsiDatabaseSchema, cohortTable, cohortAttributeTable, attributeDefinitionTable))
runSpotChecks(impalaConnection, impalaCdmDatabaseSchema, impalaOhdsiDatabaseSchema, cohortTable)
})

test_that("Run spot-checks at per-person level on Redshift", {
skip_if_not(dbms == "redshift")
redshiftConnection <- createUnitTestData(redshiftConnectionDetails, redshiftCdmDatabaseSchema, redshiftOhdsiDatabaseSchema, cohortTable, cohortAttributeTable, attributeDefinitionTable)
Expand Down

0 comments on commit 145e97f

Please sign in to comment.