Skip to content

Connect Cealgull app, Hyperledger Fabric and IPFS storage system.

License

Notifications You must be signed in to change notification settings

Cealgull/Middleware

Repository files navigation

Cealgull Middleware

Unittests codecov License

Cealgull Middleware is a middleware which receive requests from Cealgull app and interop with Hyperledger Fabric, PostgresDB and a simple Kubo/IPFS Gateway.

Getting Started

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.

Testing

Unit Test

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 ./...

Smoke 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

Load Test

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

About

Connect Cealgull app, Hyperledger Fabric and IPFS storage system.

Resources

License

Stars

Watchers

Forks

Packages

No packages published