mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-07-05 16:19:35 +00:00

* fixed bug that was setting to lowercase property names that were already in camelCase * added datetime prefix to allow integration tests to be run repeatedly * fixed test to use the ldap entries from ldap service in docker to test the service * updated instructions for ldap test * added comments to clarify the fix done in snake_to_camel method Co-authored-by: Vijay Mariadassou <vijay@mariadassou.com>
66 lines
1.3 KiB
Markdown
66 lines
1.3 KiB
Markdown
# Run Integration Tests
|
|
|
|
{% hint style="info" %}
|
|
Make sure OpenMetadata is up and running. Refer to instructions [building and running](build-code-run-tests.md).
|
|
{% endhint %}
|
|
|
|
## Run MySQL test
|
|
|
|
Run the following commands from the top-level directory
|
|
```text
|
|
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
|
|
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
|
|
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
|
|
pytest -s -c /dev/null
|
|
```
|
|
|
|
## Run Hive test
|
|
|
|
```text
|
|
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
|
|
pytest -s -c /dev/null
|
|
```
|
|
|