Skip to content

test: refactor automation strategy around real APISIX E2E and Ginkgo #19

@guoqqqi

Description

@guoqqqi

Background

The a6 test strategy has now been clarified and implemented in phases.

The current repository policy is:

  1. Do not add new command-layer unit tests that mock the APISIX Admin API.
  2. Command behavior that depends on APISIX should be covered by E2E against a real APISIX Admin API.
  3. Existing mock Admin API unit tests are temporarily retained. Their removal is intentionally deferred and should be decided in a separate cleanup phase.
  4. E2E scenarios should be written with Ginkgo/Gomega.
  5. New E2E coverage should primarily exercise the CLI lifecycle: create, update, delete, list/export, and especially get assertions through the CLI.
  6. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions