Background
The a6 test strategy has now been clarified and implemented in phases.
The current repository policy is:
- Do not add new command-layer unit tests that mock the APISIX Admin API.
- Command behavior that depends on APISIX should be covered by E2E against a real APISIX Admin API.
- Existing mock Admin API unit tests are temporarily retained. Their removal is intentionally deferred and should be decided in a separate cleanup phase.
- E2E scenarios should be written with Ginkgo/Gomega.
- New E2E coverage should primarily exercise the CLI lifecycle: create, update, delete, list/export, and especially
get assertions through the CLI.
- E2E should not require validating the real data-plane/proxy chain by default. Gateway/proxy traffic checks should only be added when the feature specifically requires that behavior.
Goal
Refactor the a6 automated test strategy so that:
- unit tests are reserved for pure local logic and self-contained helpers
- command behavior coverage is centered on real APISIX E2E
- Ginkgo/Gomega is the standard framework for E2E organization and execution
- CI remains stable during the migration
- legacy mock Admin API tests are not removed in this phase
Completed Work
Related merged PRs include:
Final Status
The strategy migration is complete under the current boundary.
Future work, if needed, should be tracked separately:
- decide whether and when to remove legacy mock Admin API unit tests
- add more scenario coverage for specific gaps
- add proxy/data-plane validation only for features that explicitly require it
Background
The a6 test strategy has now been clarified and implemented in phases.
The current repository policy is:
getassertions through the CLI.Goal
Refactor the a6 automated test strategy so that:
Completed Work
Related merged PRs include:
Final Status
The strategy migration is complete under the current boundary.
Future work, if needed, should be tracked separately: