test: comprehensive dockerised end-to-end suite #97
Reference in New Issue
Block a user
Delete Branch "benvin/comprehensive-docker-e2e"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Adds a black-box e2e suite that runs against the built container image via docker-compose (complementing the in-process
e2e/testcontainers suite).What it does
make docker-e2e→scripts/docker-e2e.sh: builds the image, brings up the full stack (postgres, redis, minio, artifactapi) plus a static nginx mock upstream for hermetic caching, waits for/health, runsgo test -tags=dockere2e ./e2e-docker/..., and tears everything down.Coverage
X-Artifact-Source: remote, secondcache, bytes verified against the origin fixture.simple/index), rpm (real package + automatic repodata generation).index.yamlmerge across two members.Notes
ARTIFACTAPI_PORT, default8000; the e2e run uses8001) so it does not collide with a locally-running instance. This is the only change to the productiondocker-compose.yml.e2e-docker/fixtures/are real package files (incl. a real RPM so repodata parsing works); a.gitignorenegation tracks them over the global ignore of those extensions.Validation
Ran
make docker-e2elocally: all suites pass against the containerised product.View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.