alan-turing-institute / trustchain

Trustworthy decentralised PKI
https://alan-turing-institute.github.io/trustchain/
Apache License 2.0
9 stars 4 forks source link

HTTP server during tests #157

Open sgreenbury opened 7 months ago

sgreenbury commented 7 months ago

Some tests (e.g. in mobile FFI) currently depend on running a Trustchain HTTP server locally. #94 also requires this during integration testing.

Options:

  1. Have a separate init_http() (e.g. similar to init()) that can be called in tests that require a http server with the same specific config.
  2. Set-up a server on an ephemeral port (e.g. test_fetch_bundle()) within each test that requires it.