Skip to content

aurora-is-near/aurora-api-testing-rs

Repository files navigation

Relayer Tests (Rust)

Dynamic Aurora API Testing On Mainnet

This repo implements a Rust client for Aurora Relayer APIs testing. It fetches test data generated by relayer test data generator, then it wraps it up into multiple test runs. These test runs are used to be re-executed against the target RPC endpoint (for example: AURORA testnet, or mainnet).

Prerequisites

  • Rust
  • Cargo

Refer to this official installation page for more information.

Env variables

Before you use this repo, you must configure the following environment variables

RPC_URL="https://mainnet.aurora.dev:443/"
AURORA_PLUS_API_KEY=""
NETWORK_NAME="mainnet_aurora_plus"

The AURORA_PLUS_API_KEY is needed to execute some special test cases. If you don't have one, please create a new account on Aurora+.

Tests

cargo test

Run specific test

cargo test --test <TEST_NAME>

Styling

cargo fmt --all -- --check

About

Rust client for testing Aurora Relayer APIs

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages