diff --git a/.github/workflows/integration-test-cluster-neo4j-5.yml b/.github/workflows/integration-test-cluster-neo4j-5.yml index 65f17224..47ea8fb4 100644 --- a/.github/workflows/integration-test-cluster-neo4j-5.yml +++ b/.github/workflows/integration-test-cluster-neo4j-5.yml @@ -53,7 +53,7 @@ jobs: NEO4J_AUTH: neo4j/testtest options: >- --hostname server1 - --health-cmd "echo 'RETURN true' | cypher-shell -u neo4j -p testtest -d neo4j || exit 1" + --health-cmd "curl -s -H 'Authorization: Basic bmVvNGo6dGVzdHRlc3Q=' localhost:7474/db/system/cluster/status | grep -q '\"healthy\":true' || exit 1" --health-start-period "60s" --health-interval "30s" --health-timeout "15s" @@ -74,7 +74,7 @@ jobs: NEO4J_AUTH: neo4j/testtest options: >- --hostname server2 - --health-cmd "echo 'RETURN true' | cypher-shell -u neo4j -p testtest -d neo4j || exit 1" + --health-cmd "curl -s -H 'Authorization: Basic bmVvNGo6dGVzdHRlc3Q=' localhost:7474/db/system/cluster/status | grep -q '\"healthy\":true' || exit 1" --health-start-period "60s" --health-interval "30s" --health-timeout "15s" @@ -95,7 +95,7 @@ jobs: NEO4J_AUTH: neo4j/testtest options: >- --hostname server3 - --health-cmd "echo 'RETURN true' | cypher-shell -u neo4j -p testtest -d neo4j || exit 1" + --health-cmd "curl -s -H 'Authorization: Basic bmVvNGo6dGVzdHRlc3Q=' localhost:7474/db/system/cluster/status | grep -q '\"healthy\":true' || exit 1" --health-start-period "60s" --health-interval "30s" --health-timeout "15s" @@ -116,7 +116,7 @@ jobs: NEO4J_AUTH: neo4j/testtest options: >- --hostname read-server4 - --health-cmd "echo 'RETURN true' | cypher-shell -u neo4j -p testtest -d neo4j || exit 1" + --health-cmd "curl -s -H 'Authorization: Basic bmVvNGo6dGVzdHRlc3Q=' localhost:7474/db/system/cluster/status | grep -q '\"healthy\":true' || exit 1" --health-start-period "60s" --health-interval "30s" --health-timeout "15s"