Skip to content

EIDA/nodes-validation-scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

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

About

Scripts to test the conformity of nodes on specific issues.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages