Middleware

command module
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2023 License: Apache-2.0 Imports: 7 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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