I have a rest API implemented using Gorilla Mux in Golang. This API uploads/downloads files from MongoDb GridFs. I want to write integration tests for my API.
Is there a
embedded MongoDb package with
GridFs support in Go? How do we test APIs using GridFs? Do we need to test against a real MongoDB?
Java seems to have such a library
As part of the test, I would like to start embedded MongoDB and stop it at the end of the test.