Skip to content

Latest commit

 

History

History
38 lines (26 loc) · 799 Bytes

File metadata and controls

38 lines (26 loc) · 799 Bytes

EIDA nodes tester

Usage

cd src
bash test_seedpsd_rollout_issue_88.bash

Writing test

Start your script in the src/ dir by sourcing the common lib:

#!/usr/bin/env/bash

source lib/nodes-tester.bash

for node in $NODE_DEFINITIONS; do
    eval $(parse_yaml "$node")
    if http -F -q --check-status "$endpoint/eidaws/psd/1/" >/dev/null 2>&1; then
        echo "- [x] $node"
    else
        echo "- [ ] $node"
    fi
done

The variable “$NODE_DEFINITIONS” contains a list of files to iterate to. Those files contain a yaml definition of the nodes, as used by eida-oculus.

The yaml parsing is evaluated to load a bunch of SHELL variables like this:

$endpoint 
$onlineCheck_net $onlineCheck_sta ...