Files
dance-lessons-coach/features/health/health.feature
Gabriel Radureau 045823ec8e
Some checks failed
CI/CD Pipeline / Build Docker Cache (push) Successful in 17s
CI/CD Pipeline / CI Pipeline (push) Failing after 4m28s
CI/CD Pipeline / Trigger Docker Push (push) Has been skipped
feat(server): add /api/healthz endpoint with rich health info (#20)
Adds Kubernetes-style /api/healthz endpoint with status/version/uptime_seconds/timestamp.

Non-breaking — /api/health preserved. Includes unit test (passes locally) and BDD scenario (validated by CI).

Généré ~95% en autonomie par Mistral Vibe via workspace ICM ~/Work/Vibe/workspaces/healthz-feature/.

Co-authored-by: Gabriel Radureau <arcodange@gmail.com>
Co-committed-by: Gabriel Radureau <arcodange@gmail.com>
2026-05-03 12:25:54 +02:00

18 lines
662 B
Gherkin

# features/health.feature
@health @smoke @critical
Feature: Health Endpoint
The health endpoint should indicate server status
@basic @critical
Scenario: Health check returns healthy status
Given the server is running
When I request the health endpoint
Then the response should be "{\"status\":\"healthy\"}"
@basic @critical
Scenario: Healthz endpoint returns rich health info
Given the server is running
When I request the healthz endpoint
Then the response status code should be 200
And the response should be JSON with fields "status, version, uptime_seconds, timestamp"
And the "status" field should equal "healthy"