Skip to content

Latest commit

 

History

History
36 lines (24 loc) · 1.62 KB

File metadata and controls

36 lines (24 loc) · 1.62 KB

Tests

Prerequisites

  • You can find the gird_client prerequisites here.
  • Follow the installation steps for grid_client.
  • Some of these test do ssh operation and the used node-ssh package is a wrapper for ssh2 which currently only supports ssh Ed25519 keys with the latest Ubuntu version so you will need an Ed25519 key to run these tests.
  • You can follow the steps here to generate an Ed25519 ssh key pair.
  • If your ssh key is not generated in the default location you will need to update the Public Key location in client_loader and the Private Key location in utils

Test Configuration

  • You can use any of the following methods for adding your configuration.

    • First Method (Environment Variables):

      • Export your configuration as environment variables
      • export MNEMONIC="<mnemonics>"
      • export NETWORK="<network>" # dev, qa, test or main.
      • export RMB_PROXY=true
      • export STORE_SECRET="<secret>"
      • Your ssh key will be automatically retrieved from the default location ~/user/.ssh/id_ed25519.pub
    • Second Method (config.json)

      • Navigate to config.json
      • Add all of your credentials there.

Running the tests

  • Running a single test file:

    • yarn workspace @threefold/grid_client test tests/modules/<test_file.test.ts>
  • Running all of the tests:

    • yarn workspace @threefold/grid_client test --runInBand