Skip to content
This repository has been archived by the owner on Mar 21, 2022. It is now read-only.

iconloop/LV-Client-Sample

Repository files navigation

LV-Client-Sample

Requirements

  1. gradle Only version 6.x supported!
$ brew install gradle@6
  1. Java Version 1.8

Build

$ gradle build

Test Client Run

$ cd build/libs
$ java -jar LV-Client-Sample.jar -m 0

Command line Run

$ cd build/libs
$ java -jar LV-Client-Sample.jar -t "blahblash" -n 3 -th 2
$ cat clues.txt

Test tool

Written in python, the tool helps you testing LiteVault System. It provides below features:

  • Get storage info: create authorization to Manager (BACKUP_REQUEST & ISSUE_VID_REQUEST)
  • Get storage token: create authorization to Storages (TOKEN_REQUEST)
  • Manage clues: store and restore clues (STORE_REQUEST & CLUE_REQUEST)

Install the tool

$ pip install -e .[dev]

need python 3.7.3 or above

Before started

  • Prepare clues by using [java cli tool](### Command line Run)
  • Run Manager and Storages

Getting started

  • $ lv-tool -h

OR run testing shell

./run.sh [clue_file_path]  # GetStorages -> TOKEN -> STORE -> READ
./run.sh                   # GetStorages -> TOKEN -> READ

Do not use this shell in QA testing. This is a humble script for handy testing

QA

Using the 'locust' library for integration testing and automated QA.

$ locust -f locust_files/full_scenario.py

Connect to http://localhost:8089/ and test.