Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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
- Cargo

Refer 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
```