mongodb / mongo-jdbc-driver

JDBC Driver for MongoDB Atlas SQL interface
Apache License 2.0
37 stars 33 forks source link

SQL-561: Adding integration test harness #62

Closed bucaojit closed 2 years ago

bucaojit commented 2 years ago

Adding test harness for now, test case configuration files to come in tickets SQL-555, SQL-563. In this PR as there are no test files, the MongoSQLIntegrationTest only checks for testcase files and returns.

Added sample test data in resources/integration_test/testdata, which is helpful for testing the loading feature with ./gradlew runDataLoader

Query and DatabaseMetadata functions not fully tested as they require a change from ADL to implement getSchemas().

bucaojit commented 2 years ago

Made the change to run the local adl script and dataloader in the evergreen task. Also added an empty run_adl.sh script which will be overridden with SQL-566. Added a command in the dataloader to generate the schema for the database after it loads the data.