Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aurora-is-near/aurora-api-testing-rs
Rust client for testing Aurora Relayer APIs
https://github.com/aurora-is-near/aurora-api-testing-rs
Last synced: 10 days ago
JSON representation
Rust client for testing Aurora Relayer APIs
- Host: GitHub
- URL: https://github.com/aurora-is-near/aurora-api-testing-rs
- Owner: aurora-is-near
- License: cc0-1.0
- Created: 2022-10-28T04:52:37.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-12-16T15:31:54.000Z (19 days ago)
- Last Synced: 2024-12-16T16:35:04.263Z (18 days ago)
- Language: Rust
- Size: 3.48 MB
- Stars: 1
- Watchers: 7
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Relayer Tests (Rust)
[![Dynamic Aurora API Testing On Mainnet](https://github.com/aurora-is-near/aurora-api-testing-rs/actions/workflows/tests_on_schedule.yml/badge.svg)](https://github.com/aurora-is-near/aurora-api-testing-rs/actions/workflows/tests_on_schedule.yml)
This repo implements a Rust client for Aurora Relayer APIs testing. It fetches
test data generated by [relayer test data generator](https://github.com/aurora-is-near/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
- CargoRefer to this [official installation page](https://www.rust-lang.org/tools/install) for more information.
## Env variables
Before you use this repo, you must configure the following environment variables
```bash
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+](https://aurora.plus/).## Tests
```bash
cargo test
```### Run specific test
```bash
cargo test --test
```### Styling
```bash
cargo fmt --all -- --check
```