getredash / redash

Make Your Company Data Driven. Connect to any data source, easily visualize, dashboard and share your data.
http://redash.io/
BSD 2-Clause "Simplified" License
25.96k stars 4.34k forks source link

Integration tests for query runners (data sources) #3807

Open arikfr opened 5 years ago

arikfr commented 5 years ago

We have plenty of open pull requests updating query runners, that we are hesitant to merge because there is no way to verify it doesn't introduce a regression. We also had our share of regressions introduced in changes that seemed safe and were merged...

I think it's due time to start looking at setting up integration tests for data sources. We will probably start with the most used once and move forward from there. The community's help here is instrumental.

As a first step, I want to document which data sources have a Docker image we can use:

Data Source Docker Image Notes
Amazon Elasticsearch Y We can create a test AWS account
Athena X We can create a test AWS account
Axibase ?
BigQuery X We can create a test account
Cassandra Y Not sure how straightforward is the Docker image to use
Clickhouse Y
Couchbase ?
Databricks X We can create a test account, but testing the Hive query runner should be enough.
IBM DB2 ?
Apache Drill ? It's HTTP based, so the very least we can have mocks.
Druid Y
DynamoDB X We can create a test AWS account
Elasticsearch Y
Google Analytics X We can create a test account
Google Spreadsheets X We can create a test account
Graphite ?
Hive ?
Impala ?
InfluxDB Y
JIRA X We can create a test account
Kylin ?
MapD ?
MemSQL ?
MongoDB Y
Microsoft SQL Server ?
MySQL Y
Oracle ?
PostgreSQL Y
Phoenix ?
Presto ?
Prometheus ?
Qubole ?
Rockset X We can create a test account
Salesforce X
Snowflake X We can create a test account
SQLite Y
TreasureData X
Uptycs ?
Vertica ?
Yandex Metrica ?

Some notes:

koooge commented 5 years ago

Hi. I'm with you and I worried about their stability.

dynamodb-local or localstack might be useful as a dynamodb mock https://hub.docker.com/r/amazon/dynamodb-local/ https://github.com/localstack/localstack