Git Product home page Git Product logo

Comments (6)

calavera avatar calavera commented on August 26, 2024

We also have to keep in mind that once all the backend interfaces are in this repo, we'll have very nice starting point:

https://github.com/docker/docker/blob/master/api/server/router/container/backend.go
https://github.com/docker/docker/blob/master/api/server/router/volume/backend.go
https://github.com/docker/docker/blob/master/api/server/router/network/backend.go
...

from engine-api.

dnephin avatar dnephin commented on August 26, 2024

I think you could auto-generate the mock using https://github.com/vektra/mockery and go generate. That way it stays current with any API changes.

I'm thinking of doing something like that for the client.

from engine-api.

calavera avatar calavera commented on August 26, 2024

that sounds very interesting indeed.

from engine-api.

MHBauer avatar MHBauer commented on August 26, 2024

Given the importance of this it would be good to make sure to have conforming tests in isolation from any external users, as well as conforming tests by external users. If mockery gets us some internal tests, that would be good.

from engine-api.

calavera avatar calavera commented on August 26, 2024

I've started to add basic tests with mocks. See:

#66
calavera@ba33f31

Please, go nuts and add more tests.

from engine-api.

calavera avatar calavera commented on August 26, 2024

Just an update:

we don't have "all the tests" yet, but we have a lot of them already thanks to @vdemeester:

https://github.com/docker/engine-api/pulls?utf8=%E2%9C%93&q=is%3Apr+is%3Aclosed+%22Add+unit+test%22

I'm not sure at which point we want to consider this solved, but I'm already pretty happy about it.

from engine-api.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.