2021-08-01 14:27:44 -07:00
|
|
|
# Run Integration Tests
|
|
|
|
|
|
|
|
{% hint style="info" %}
|
2021-12-21 06:36:23 +01:00
|
|
|
**The integration tests don't work at the moment.**
|
|
|
|
|
2021-10-23 19:58:26 -07:00
|
|
|
Make sure OpenMetadata is up and running. Refer to instructions [building and running](build-code-run-tests.md).
|
2021-08-01 14:27:44 -07:00
|
|
|
{% endhint %}
|
|
|
|
|
|
|
|
## Run MySQL test
|
|
|
|
|
2021-10-23 19:58:26 -07:00
|
|
|
Run the following commands from the top-level directory
|
2021-08-01 14:27:44 -07:00
|
|
|
```text
|
2021-10-23 19:58:26 -07:00
|
|
|
python3 -m venv /tmp/venv
|
|
|
|
source /tmp/venv/bin/activate
|
|
|
|
pip install -r ingestion/requirements.txt
|
|
|
|
pip install -e ingestion
|
|
|
|
pip install pytest
|
|
|
|
pip install pytest-docker
|
|
|
|
cd ingestion/tests/integration/mysql
|
2021-08-01 14:27:44 -07:00
|
|
|
pytest -s -c /dev/null
|
|
|
|
```
|
|
|
|
|
|
|
|
## Run MsSQL test
|
|
|
|
|
|
|
|
```text
|
|
|
|
cd ingestion
|
|
|
|
source env/bin/activate
|
|
|
|
cd tests/integration/mssql
|
|
|
|
pytest -s -c /dev/null
|
|
|
|
```
|
|
|
|
|
|
|
|
## Run Postgres test
|
|
|
|
|
|
|
|
```text
|
|
|
|
cd ingestion
|
|
|
|
source env/bin/activate
|
|
|
|
cd tests/integration/postgres
|
|
|
|
pytest -s -c /dev/null
|
|
|
|
```
|
|
|
|
|
|
|
|
## Run LDAP test
|
|
|
|
|
|
|
|
```text
|
2021-11-06 16:42:23 -07:00
|
|
|
python3 -m venv /tmp/venv
|
|
|
|
source /tmp/venv/bin/activate
|
|
|
|
pip install -r ingestion/requirements.txt
|
|
|
|
pip install -e ingestion
|
|
|
|
pip install pytest
|
|
|
|
pip install pytest-docker
|
|
|
|
cd ingestion/tests/integration/ldap
|
2021-08-01 14:27:44 -07:00
|
|
|
pytest -s -c /dev/null
|
|
|
|
```
|
|
|
|
|
|
|
|
## Run Hive test
|
|
|
|
|
|
|
|
```text
|
2021-11-01 08:32:34 -07:00
|
|
|
python3 -m venv /tmp/venv
|
|
|
|
source /tmp/venv/bin/activate
|
|
|
|
pip install -r ingestion/requirements.txt
|
|
|
|
pip install -e ingestion
|
|
|
|
pip install pytest
|
|
|
|
pip install pytest-docker
|
|
|
|
pip install pyhive thrift sasl thrift_sasl
|
|
|
|
cd ingestion/tests/integration/hive
|
2021-08-01 14:27:44 -07:00
|
|
|
pytest -s -c /dev/null
|
|
|
|
```
|
|
|
|
|