Add RPC API check

This commit is contained in:
Michael Vines 2018-12-24 11:10:53 -08:00
parent f38345fdad
commit 1531a1777a
2 changed files with 19 additions and 1 deletions

View File

@ -82,6 +82,15 @@ echo "--- Node count"
rm -rf $client_id
) || flag_error
echo "--- RPC API: getTransactionCount"
(
set -x
curl -X POST \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1, "method":"getTransactionCount"}' \
http://localhost:8899
) || flag_error
killBackgroundCommands
echo "--- Ledger verification"

View File

@ -90,10 +90,19 @@ local|tar)
esac
echo "--- RPC API: getTransactionCount"
(
set -x
curl -X POST \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1, "method":"getTransactionCount"}' \
http://"$entrypointIp":8899
)
echo "--- $entrypointIp: wallet sanity"
(
set -x
scripts/wallet-sanity.sh "$entrypointIp:8001"
scripts/wallet-sanity.sh "$entrypointIp":8001
)
echo "+++ $entrypointIp: node count ($numNodes expected)"