ONSdigital / dp-mongodb-in-memory

Runs an in-memory MongoDB instance for Go unit tests
MIT License
14 stars 13 forks source link

Initial code #2

Closed rafahop closed 3 years ago

rafahop commented 3 years ago

What

This is an initial version. It is functional but there are still some unimplemented details like the verification of the package integrity.

The entry point will be the Start(version) method in the main package. It will detect the running system and download the appropriate Mongodb tarball (caching it for future executions) and start a server instance in memory. Currently supporting mac, ubuntu and debian. And mongodb versions higher than 4.4.

How to review

Check the code. Run unit tests. After running main_test you'll be able to see downloaded versions 4.4.8 and 5.0.2 in your local cache (check the logs to find the location)

Who can review

Anyone but me