tokenbridge/monitor-e2e/native-to-erc.sh
Przemyslaw Rzad a2e9dae43d
Extending monitor-e2e with 3 types of bridge (#170)
* Started working on monitor-e2e

* Monitor e2e tests extended for 3 types of bridge

* Skipp error checking

* bash fix

* Fixed docker-compose

* check first

* grep errors

* all jobs

* Style

* Executing instead of sourcing
2019-08-01 10:26:20 +02:00

27 lines
793 B
Bash
Executable File

set -e # exit when any command fails
echo "MONITOR E2E - NATIVE TO ERC"
export URL="localhost:3010"
echo "Test case - Web Interface should return balances"
OUTPUT=$(curl -s http://$URL/)
grep -q home <<< "$OUTPUT"
grep -q foreign <<< "$OUTPUT"
(! grep -q error <<< "$OUTPUT")
echo "Test case - Web Interface should return validators"
OUTPUT=$(curl -s http://$URL/validators)
grep -q home <<< "$OUTPUT"
grep -q foreign <<< "$OUTPUT"
(! grep -q error <<< "$OUTPUT")
echo "Test case - Web Interface should return eventsStats"
OUTPUT=$(curl -s http://$URL/eventsStats)
grep -q lastChecked <<< "$OUTPUT"
(! grep -q error <<< "$OUTPUT")
echo "Test case - Web Interface should return alerts"
OUTPUT=$(curl -s http://$URL/alerts)
grep -q lastChecked <<< "$OUTPUT"
(! grep -q error <<< "$OUTPUT")