2.0.0 • Published 8 months ago

@hyperledger/cactus-test-tooling v2.0.0

Weekly downloads
10
License
Apache-2.0
Repository
github
Last release
8 months ago

@hyperledger/cactus-test-tooling

TODO: description

Usage

// TODO: DEMONSTRATE API

Docker image for the ws-identity server

A docker image of the ws-identity server is used to test integration of WS-X.509 credential type in the fabric connector plugin.

ws-identity includes A Docker file to build the image: clone the repo, install packages, build src and the image

npm install
npm run build
docker build . -t [image-name]

Stellar Test Ledger Usage

The Stellar test ledger follows the same structure present in the test ledger tools for other networks within the Cacti project. It pulls up and manages the Stellar Quickstart Docker Image and can be used by importing the class StellarTestLedger, then instantiating it with some key optional arguments to define how the image should be configure.

  • network: Defines if the image should pull up a pristine local ledger or alternatively connect to an existing public test ledger. Defaults to local. It is important to note that connecting to an existing network can take up to several minutes to synchronize the ledger state.

  • limits: Defines the resource limits for soroban smart contract transactions. A valid transaction and only be included in a ledger block if enough resources are available for that operation. Defaults to testnet, which mimics the actual resource limits applied to the mainnet based on its test environment.

Once the class is successfully instantiated, one can start the environment by triggering

await stellarTestLedger.start();

The image will be pulled up and wait until the healthcheck ensures all of its services have started successfully and are accessible, then returns the container object.

When integrating to a Stellar environment, it is common to use a few key services provided at different ports and paths. Once the class has been started, one can use the method getNetworkConfiguration() to get an object containing the required information to connect to this services.

This object is already formatted to be used with the stellar-plus open source js library to create a custom network configuration object that integrates with its provided tools, ensuring a frictionless development flow for this test ledger.

Once the image have been fully utilized, one can fully stop and remove the environment by triggering

await stellarTestLedger.stop();
await stellarTestLedger.destroy();
2.0.0

8 months ago

2.0.0-rc.7

8 months ago

2.0.0-rc.2

11 months ago

2.0.0-rc.1

12 months ago

2.0.0-main.339

12 months ago

2.0.0-main.214

1 year ago

2.0.0-dev.196

1 year ago

2.0.0-dev.197

1 year ago

2.0.0-dev.195

1 year ago

2.0.0-main.159

1 year ago

2.0.0-dev.94

2 years ago

2.0.0-dev.93

2 years ago

2.0.0-alpha.1

2 years ago

2.0.0-alpha.2

2 years ago

2.0.0-main.91

2 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.1.3

2 years ago

1.1.2

3 years ago

1.0.0

3 years ago

1.0.0-rc.3

4 years ago

1.0.0-rc.2

4 years ago

1.0.0-rc.1

4 years ago

0.10.0

4 years ago

0.9.0

4 years ago

0.8.0

4 years ago

0.7.0

4 years ago

0.6.0

4 years ago

0.5.0-alpha.0

4 years ago

0.5.0

4 years ago

0.4.0

4 years ago

0.3.0

4 years ago

0.2.0

5 years ago

0.1.1-alpha.289

5 years ago