Giter Club home page Giter Club logo

aleo-setup-integration-test's Introduction

Aleo Setup Integration Test

This repository contains the integration test for aleo-setup (setup1-contributor and setup1-verifier binaries), and the aleo-setup-coordinator.

Prerequisites

Before running, you need to have the following installed:

  • rustup, and the required linker for you system. (on Ubuntu this involves installing build-essential most likely).
  • openssl development headers (libssl-dev and pkg-config on Ubuntu).
  • Python 3 with pip (if you want to use the aleo-setup-state-monitor).

Install the stable version of rust to compile this integration testing software:

rustup install stable

Building/Running

You can run a integration tests with the following command where test.ron is the test specification:

cargo run -- test.ron

See example-config.ron in the repository root for an example of the configuration format. They use the Rusty Object Notation (RON) format, there are editor extensions available. This format was chosen because it allows structured/nested data (like JSON) but also allows comments and looser formatting for handwritten files (like TOML).

Using Local Repositories

If you wish to use repositories checked out on your local computer you can supply the following configuration options (replacing the existing ones) at the beginning of the ron test file:

aleo_setup_repo: (
    type: "Local",
    dir: "../aleo-setup",
),
aleo_setup_coordinator_repo: (
    type: "Local",
    dir: "../aleo-setup-coordinator",
),
aleo_setup_state_monitor_repo: (
    type: "Local",
    dir: "../aleo-setup-state-monitor",
),

dir is the relative path to where you have the git repository checked out.

aleo-setup-integration-test's People

Contributors

kellpossible avatar jules avatar ibaryshnikov avatar apruden2008 avatar niklaslong avatar

Stargazers

 avatar alireza avatar  avatar hoda avatar sed lin avatar sam trader avatar  avatar touba avatar Validator | Node Runner avatar  avatar

Watchers

Mark Henderson avatar Fabiano Prestes avatar  avatar Damon Sicore avatar Eduardo Morais avatar Brent C avatar Raymond Chu avatar Jackson Yeager avatar  avatar  avatar

aleo-setup-integration-test's Issues

Specify specific test id

At the moment if you want to run a subset or a single test from a large test specification file, you need to comment out the tests, or edit the skip field. This is slow and annoying, and risks accidentally checking in an edited file. Better to specify the test id as a new command line option

Cross repository github action to trigger this test

Looks like it should be possible to do the cross-repository github action using either repository_dispatch or workflow_disptach https://docs.github.com/en/actions/reference/events-that-trigger-workflows#manual-events
which can be triggered from the REST api. We can make a workflow in aleo-setup and aleo-setup-coordinator repositories that sends a POST request to the aleo-setup-integration-test REST api endpoint to trigger the event. I think someone is doing something similar described here https://fabianmoronzirfas.me/tech/2019/02/06/cross-repo-github-action-triggering.html
I think it may also be possible to include information about the branch/commit in the POST request to be used in the integration test.

Looks like this github action could perhaps be used in the aleo-setup and aleo-setup-coordinator repositories: https://github.com/marketplace/actions/repository-dispatch

Simulate network issues

Use a proxy between the contributors and the coordinator to simulate network problems. The proxy needs to be configurable in real-time (no stop/start to reload config files). Ideally there should be a separate proxy per contributor/verifier.

https://github.com/Shopify/toxiproxy looks like a good candidate

Implement admin actions

Allow admin actions (such as the manual round reset) to be specified and invoked during the tests

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.