Skip to content

feat: enhance health check endpoint with detailed database connectivity checks#5

Merged
phgoncalves merged 2 commits intodevelopfrom
fix/database-healthcheck
Nov 8, 2025
Merged

feat: enhance health check endpoint with detailed database connectivity checks#5
phgoncalves merged 2 commits intodevelopfrom
fix/database-healthcheck

Conversation

@phgoncalves
Copy link
Owner

Pull Request

Summary

This PR solves an issue where even when the database was not accessible the /health endpoint was showing success message.
It also includes logs and add more database checks.

Changes

  • Use the canConnect variable to define the /health endpoint return.
  • Add open and close connection tests to the /health endpoint
  • Add unit tests

Testing

  • Added unit tests
  • Tested mannually

Notes

@phgoncalves phgoncalves merged commit 507ad37 into develop Nov 8, 2025
1 check passed
@phgoncalves phgoncalves deleted the fix/database-healthcheck branch November 8, 2025 06:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant