Cealgull Middleware is a middleware which receive requests from Cealgull app and interop with Hyperledger Fabric, PostgresDB and a simple Kubo/IPFS Gateway.
You may need a config.yaml
file in the root directory of the project. config_template.yaml
provides you
with details about how to connect to a fabric-samples test-network and a kubo container.
To Run unit tests, you need Mockery. To install, simply run
user@localhost:~ $ go install github.com/vektra/mockery/v2@v2.32.4
user@localhost:~ $ mockery
user@localhost:~ $ go test ./...
tests/py/smoke
contains python scripts to pursue the smoke test for endpoints correctness.
To run the smoke test suite,
first set the constant in tests/py/smoke/config.py
for two servers and perform the following setup.
user@localhost:/path/to/middleware/tests/py/ $ pipx install cryptography
user@localhost:/path/to/middleware/tests/py/ $ python -m smoke
tests/py/locust
this is the load tests based on the famous locust framework.
To run the load test, perform the following setup.
user@localhost:/path/to/middleware/tests/py/ $ pipx install locust
user@localhost:/path/to/middleware/tests/py/locust $ locust --users 25 --host http://localhost:8089 -f locustfile.py