Test fixtures and sample files for CI/CD pipelines
Fixtures for build, test and deployment pipelines, with checksums for verification.
Pipelines handle files constantly: artifacts are uploaded, caches are restored, archives are unpacked and configuration is parsed. When you write or debug a pipeline step, a file of known size and checksum tells you immediately whether the step did its job.
The published SHA-256 values let a job verify what it downloaded before using it.
Recommended files
| File | Size | Why this one | Download |
|---|---|---|---|
| 10 MB BIN samplesample-bin-10mb.bin | 10 MB10,485,760 bytes | Artifact upload and cache tests | Download BIN |
| 1 MB TAR samplesample-tar-1mb.tar | 1 MB1,048,576 bytes | Extraction steps | Download TAR |
| Sample Docker Compose YAMLsample-docker-compose.yaml | 744 B744 bytes | Configuration parsing | Download YAML |
| Sample customers SQL script (100 rows)sample-customers.sql | 19.3 KB19,787 bytes | Seeding a test database | Download SQL |
| 5 MB ZIP samplesample-zip-5mb.zip | 5 MB5,242,880 bytes | Archive artifact | Download ZIP |
Checklist
Pin and verify
When a job downloads a fixture, check its SHA-256 before use and fail the job if it differs.
Cache fixtures
Store downloaded files in the pipeline cache or an artifact repository so later runs do not depend on the network.
Test artifact size limits
Upload 10 MB and larger files as artifacts to find the limits and timing of your CI provider.
Test archive handling
Use the TAR and GZ samples to check the extraction steps of deployment scripts.
Guides
- How to create test files of any size
Commands for Linux, macOS and Windows that produce a file of an exact byte count, and when to use each.
- How to test file downloads
Completeness, integrity, speed, range requests and resume, each with a command you can run.
- File upload and download testing with Playwright
setInputFiles, file choosers, in-memory files, download assertions and API uploads, with working examples.
Related use cases
Frequently asked questions
- How do I verify a checksum in a shell step?
- Write the expected hash and file name to a file and run sha256sum --check against it. The command exits with an error if the file does not match.
Test plan architecture and assertion matrix for test fixtures and sample files for ci/cd pipelines
A thorough ci cd workflow separates positive functional verification (confirming well-formed inputs succeed and preserve their SHA-256 checksum) from negative boundary verification (confirming oversized, truncated, or mislabelled inputs fail with structured diagnostic codes).
| Test case ID | Scenario in ci cd | Input fixture | Expected system outcome |
|---|---|---|---|
| TC-CI-C-01 | Baseline small payload acceptance | 1 KB – 100 KB valid fixture from Formats | HTTP 200/201; stored byte count and SHA-256 match /checksums.txt |
| TC-CI-C-02 | Gateway / reverse-proxy ceiling check | 1 MB, 10 MB, and 20 MB sized fixtures from Sizes | Exact threshold enforced; oversize payload returns HTTP 413 Payload Too Large |
| TC-CI-C-03 | Extension vs. magic-byte mismatch | wrong-extension-png-as-jpg.jpg from Broken Files | Validator detects 89 50 4E 47 PNG header and rejects spoofed .jpg extension |
| TC-CI-C-04 | Truncated stream / unexpected EOF | Truncated PDF or JPEG from Broken Files | Parser catches missing trailer/EOI marker and returns HTTP 422 without leaking stack traces |
Automating ci cd in CI/CD pipelines
To keep automated runs deterministic and fast, commit your small sub-100 KB fixtures directly to your repository and synthesize larger 10 MB to 1 GB stress fixtures on demand using our in-browser generator or the reproducible local commands on Methodology. When testing tabular or relational data pipelines during ci cd, pair binary container checks with our 100-row and 1,000-row synthetic datasets so you can assert exact row counts and column aggregations after ingestion.