#!/bin/bash # # Integration test for remote API # # @author Steffen Vogel # @copyright 2014-2022, Institute for Automation of Complex Power Systems, EONERC # @license Apache 2.0 ################################################################################## set -e DIR=$(mktemp -d) pushd ${DIR} function finish { popd rm -rf ${DIR} } trap finish EXIT cat > base.json < local.json < fetched.json # Shutdown VILLASnode kill %% wait %% # Compare local config with the fetched one diff -u <(jq -S . < fetched.json) <(jq -S . < local.json)