#!/usr/bin/env bash

# Test that all services are reachable from host machine
curl -m2 http://localhost:8080 > /dev/null 2>&1 && echo "frontend-royalties good" || echo "frontend-royalties failed"
curl -m2 http://localhost:8082/graphql > /dev/null 2>&1 && echo "graphql-router good" || echo "graphql-router failed"
curl -m2 http://localhost:8081/graphql > /dev/null 2>&1 && echo "graphql-abacus good" || echo "graphql-abacus failed"
curl -m2 http://localhost:5000/contracts > /dev/null 2>&1 && echo "contracts good" || echo "contracts failed"
curl -m2 http://localhost:5001/accounts > /dev/null 2>&1 && echo "accounts good" || echo "accounts failed"
