-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pipeline integration testing #83
base: main
Are you sure you want to change the base?
Conversation
@F-I-D-O, i've got an issue with integration tests, which im not really sure how to solve. The integration tests work fine if the tables are clear (or at least do not influence test data), but im afraid that these tests shoulnd't be run, if the user has already uploaded some data (these tests could lead to modifications of original data) |
The test should be run in a test scheme, just like the SQL unit tests. The scheme should be initialized empty before any test. |
Additionally, integration tests should contain tests testing the whole pipeline at once |
UPD: resolved |
they were already. From setting up the tables up to contraction/computing strongly connected components |
@F-I-D-O, would like your review on assertion of the export. I've done it in such way, that I've computed resulted files' md5 hashes and they are asserted against newly generated files at each execution of the test.
|
@F-I-D-O, also while researching export flow I encountered one suspicious to me thing. In order to export the data we need to use some kind of config, which is something like this: ---
area_dir: ../../../../../
area_id: 1
map:
SRID: 4326
SRID_plane: 32618
path: dasdsada In the integration test im creating variable dictionary for export, but it does not seem right to me. |
Hashes are not a good solution:
I suggest keeping the hashes now for binary files and comparing text files as text. Concerning the second issue, I think it would be to best to modify install_sql.py so that the schema can be configured. There is already an issue for that. |
I think we should check if we need all of these configs and if yes, we should use a config file like this ( I think we will setup some config file with Marek...) |
As per the request made from our last meeting, I'm including summary of the updates by this Pull Request:
|
Created simple integration tests based on example .osm file