From 6f5e43ccb5391ecd7a69bc5735b9fe9984361b7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Teemu=20M=C3=A4kinen?= Date: Thu, 15 Feb 2024 13:48:06 +0200 Subject: [PATCH] Reload hasura metadata after all services are running --- github-actions/setup-e2e-environment/action.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/github-actions/setup-e2e-environment/action.yml b/github-actions/setup-e2e-environment/action.yml index 262f881..ba3e5fa 100644 --- a/github-actions/setup-e2e-environment/action.yml +++ b/github-actions/setup-e2e-environment/action.yml @@ -268,6 +268,17 @@ runs: command: "curl --fail http://localhost:3010/actuator/health --output /dev/null --silent" + - name: Reload Hasura metadata to re-establish connection to Tiamat + env: + HASURA_PASSWORD: "hasura" + run: | + curl --header "Content-Type: application/json" \ + --header "x-hasura-admin-secret: $HASURA_PASSWORD" \ + --request POST \ + --data '{"type":"reload_metadata","args":{"reload_remote_schemas":true,"reload_sources":false}}' \ + localhost:3201/v1/metadata + shell: bash + - name: Verify that all containers are healthy run: '[ -z "$(docker ps -q --filter health=unhealthy)" ]' shell: bash