You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running the local Docker Compose and local_ingestion_dependency.sh does not seem to be enough to get up and running with the Integration Tests.
With the docs approach, we get the following failures:
FAILED tests/integration/hive/test_hive_crud.py::test_check_table - TypeError: __init__() takes 2 positional arguments but 4 were given
FAILED tests/integration/ldap/test_ldap_crud.py::test_read_user - requests.exceptions.HTTPError: 404 Client Error: Not Found for url: http://localhost:8585/api/v1/users/name/john_doe
FAILED tests/integration/mysql/test_mysql_crud.py::test_read_schema - sqlalchemy.exc.OperationalError: (pymysql.err.OperationalError) (2003, "Can't connect to MySQL server on 'localhost' ([Errno 61] Connection refused)")
FAILED tests/unit/helpers_test.py::RestTest::test_5_create_table - requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http://localhost:8585/api/v1/databases?fields=service
FAILED tests/unit/workflow_test.py::WorkflowTest::test_execute_200 - TypeError: not all arguments converted during string formatting
and a bunch of tests not passing.
Ideally, the tests should run correctly out of the box to help us validate new contributions. If needed, we should update the docs as well to ease and incentivize new developments.
In case anyone else is looking at this issue, I was able to make test_mysql_crud.py work with a few minor changes to the test case. Please see the attached git diff patch file. ISSUE-798_mysql.patch.txt
Please note that for this patch to work, you will need to follow these instructions:
Checkout tag 0.4.0
Update docker/metadata/docker-compose.yml as indicated in the patch file.
Bring up OpenMetadata services with (remember to configure Docker to allocate at least 4GB memory otherwise ElasticSearch will keep crashing)
There seem to be multiple issues here. So, breaking down the issue into smaller issues to make it more manageable. Broke out the MySQL Integration test issue into its own issue here - #910
Activity
vijaypm commentedon Oct 19, 2021
In case anyone else is looking at this issue, I was able to make test_mysql_crud.py work with a few minor changes to the test case. Please see the attached git diff patch file.
ISSUE-798_mysql.patch.txt
Please note that for this patch to work, you will need to follow these instructions:
harshach commentedon Oct 21, 2021
Thanks, @vijaypm for taking this on. If you run into an issue please ping us on slack
cc @ayush-shah
vijaypm commentedon Oct 23, 2021
There seem to be multiple issues here. So, breaking down the issue into smaller issues to make it more manageable. Broke out the MySQL Integration test issue into its own issue here - #910
vijaypm commentedon Oct 27, 2021
Separated the error with Hive integration test into issue #960
vijaypm commentedon Oct 31, 2021
MySQL tests were fixed as part of PR #914
vijaypm commentedon Oct 31, 2021
Hive tests being fixed as part of PR #988
vijaypm commentedon Nov 6, 2021
Ldap test has been fixed as part of PR #1088
vijaypm commentedon Nov 7, 2021
Split the issue with failing unittest into issue #1091
vijaypm commentedon Nov 8, 2021
@pmbrull I believe this issue can now be closed
pmbrull commentedon Nov 8, 2021
Hi, @vijaypm!!
Amazing work on this, thanks a lot for tackling the tests. It will be much safer now to make evolutions to the code 🙏
We can close this 🤗 Feel free to open further issues if needed!