vijaypm 5d796172ce
ISSUE-960: (#988)
* ISSUE-960: fixed test cases and updated documented with list of pip install

* using requests package for testing http port responsiveness and socket for non-http ports

* use healthcheck api instead of just service endpoint

Co-authored-by: Vijay Mariadassou <vijay@mariadassou.com>
2021-11-01 08:32:34 -07:00

1.1 KiB

Run Integration Tests

{% hint style="info" %} Make sure OpenMetadata is up and running. Refer to instructions building and running. {% endhint %}

Run MySQL test

Run the following commands from the top-level directory

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

cd ingestion
source env/bin/activate
cd tests/integration/mssql
pytest -s -c /dev/null

Run Postgres test

cd ingestion
source env/bin/activate
cd tests/integration/postgres
pytest -s -c /dev/null

Run LDAP test

cd ingestion
source env/bin/activate
cd tests/integration/ldap
pytest -s -c /dev/null

Run Hive test

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