tree: 819d1e19a45a7088c6099fb1a4ed8a2a768be3df [path history] [tgz]
  1. Dockerfile
  2. LICENSE
  3. README.md
  4. clean.sh
  5. data.json
  6. docker-compose.yml
  7. mock-v1.js
  8. mock.sh
  9. xos-core.protoset
mock/README.md

This directory contains a mock server that is used when unit-testing the cordctl client. This mock server is implemented in javascript and runs using nodejs inside of a docker container.

Because the nodejs gRPC server implementation does not yet support the gRPC reflection API, a set of statically built protobufs, xos-core.protoset, is made available and can be used with the client instead of the reflection API. This protoset is not intended to be an operational substitute for the API retrieved via reflection, but is merely a convenience for unit testing.