eg-contrib-testing
Installation
SKILL.md
Envoy Gateway Testing Patterns
Overview
| Test Type | Location | Purpose | Run Command |
|---|---|---|---|
| Gateway API translator unit | internal/gatewayapi/ |
Verify CRD → IR translation | make go.test.unit |
| xDS translator unit | internal/xds/translator/ |
Verify IR → xDS translation | make go.test.unit |
| CEL validation | test/cel-validation/ |
Verify CRD validation rules | make go.test.cel |
| E2E | test/e2e/ |
Verify end-to-end proxy behavior | make e2e |
| Conformance | test/conformance/ |
Gateway API spec compliance | make conformance |
| Benchmark | test/gobench/ |
Translation performance | make go.test.benchmark |
| Fuzz | test/fuzz/ |
Fuzz testing for critical paths | make go.test.fuzz |
Gateway API Translator Tests (Golden Files)
These are the most common tests you will write. They verify that Gateway API resources translate correctly to IR.