dd9add50a0
* Started monitor-e2e rewrite * axios * Implemented tests * Monitor start * First deploy * Wait for monitor * Removed redundant files * Tests. * TODO * Links to minitor in constants * Typo. * [PR-into-PR] Monitor E2E rewrite - balance (#191) * Test run for more monitor-e2e tests * macos/docker * timeout * Little refactor * Trying to test balances in other types of bridges. * Utils. * test * check all * erc to erc try * Final tests * typo * All jobs * Lint * Roll back docker in docker * WaitUntil * Axios version * New validator checks (#192)
28 lines
682 B
Bash
Executable File
28 lines
682 B
Bash
Executable File
FILES=(getBalances.json validators.json eventsStats.json alerts.json)
|
|
|
|
check_files_exist() {
|
|
rc=0
|
|
for f in "${FILES[@]}"; do
|
|
command="test -f responses/$f"
|
|
(docker-compose -f ../e2e-commons/docker-compose.yml exec monitor /bin/bash -c "$command") || rc=1
|
|
(docker-compose -f ../e2e-commons/docker-compose.yml exec monitor-erc20 /bin/bash -c "$command") || rc=1
|
|
(docker-compose -f ../e2e-commons/docker-compose.yml exec monitor-erc20-native /bin/bash -c "$command") || rc=1
|
|
done
|
|
return $rc
|
|
}
|
|
|
|
i=0
|
|
until check_files_exist
|
|
do
|
|
((i++))
|
|
if [ "$i" -gt 30 ]
|
|
then
|
|
exit -1
|
|
fi
|
|
|
|
echo "Waiting for monitor to start..."
|
|
sleep 3
|
|
done
|
|
|
|
echo "Monitor started"
|