Middleware

command module
v0.1.0-rc7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 9, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

README

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

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL