cd src
bash test_seedpsd_rollout_issue_88.bashStart 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
doneThe 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 ...