-
Notifications
You must be signed in to change notification settings - Fork 0
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
Summary
Add end-to-end integration tests using docker-compose to test full workflows against real services.
Requirements
tests/docker-compose.ymlwith Postgres and an HTTP health-check server- Integration test file
tests/integration_test.go(build tag:integration) - Test scenarios:
wait-forTCP against Postgres → succeeds when Postgres is readywait-forHTTP against health-check server → succeeds when server returns 200wait-foragainst non-existent service → fails with proper exit code after timeoutrendertemplate with env vars → produces correct output filefetchfrom HTTP server → writes response to fileexecruns command → captures output and exit code- 'seed' for both mysql and postgresql. (Use postgres:16-alpine and mysql:8.0 images)
- test create database extensively
- CI integration: add an optional integration test job to
.github/workflows/ci.yml
Acceptance Criteria
-
tests/docker-compose.ymlwith service definitions -
tests/integration_test.gowith all scenarios - Tests pass locally with
docker-compose up -d && go test ./tests/ -tags=integration - CI job ( separate workflow)
-
CHANGELOG.mdupdated
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request