Closed ilgooz closed 6 years ago
Update: use buffconn and WithDialer to create a mock server for gRPC
docker client doesn't provide a test server nor a mock interface at this moment. this possibly leaves us directly checking generated api calls like described in the first message of this thread.
see https://github.com/moby/moby/issues/30454
edit:
we use docker.CommonAPIClient
for mocking (docker provides a mocking interface)
Useful resource for the integration test posted on Discord: http://pliutau.com/separate_unit_integration_tests/
I split git and gRPC related tests to other issues. See https://github.com/mesg-foundation/core/issues/339 and https://github.com/mesg-foundation/core/issues/310.
We are heavily depending on integration tests in docker client related tests, gRPC calls and tests that run gitClone.