Skip to content

Commit

Permalink
feat: Update health check cmd to use status endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
exaby73 committed Jul 23, 2024
1 parent 52c6e71 commit 6c3165d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/integration-test-cluster-neo4j-5.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"
Expand All @@ -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"
Expand All @@ -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"
Expand Down

0 comments on commit 6c3165d

Please sign in to comment.