Skip to content

Latest commit

 

History

History
17 lines (11 loc) · 970 Bytes

File metadata and controls

17 lines (11 loc) · 970 Bytes

Integration testing

The compose.yml stack runs three nginx backends (service1service3; configs under tests/integration/nginx/) and buickd built from cmd/buickd/Dockerfile. buickd loads tests/integration/buick.yml (internal 8080 / 8443; published 18080 / 18443). Fixture PEMs live under tests/integration/certs/ (bind-mounted read-only). To regenerate them after SAN changes, from the repo root run go run ./tests/integration/gencerts.

Commands

docker compose up -d --build
BUICK_INTEGRATION=1 go test -tags=integration ./tests/integration/...
docker compose down

With BUICK_INTEGRATION=1, tests wait up to 90s for http://127.0.0.1:18080.

Override probe addresses with BUICK_HTTP_ADDR and BUICK_HTTPS_ADDR if needed.

Default go test ./... compiles the integration package but skips docker-backed tests unless BUICK_INTEGRATION is set.