Skip to content

test: migrate remaining resource commands and remove legacy mock-command coverage #21

@guoqqqi

Description

@guoqqqi

Refs #19

Goal

Complete the remaining command-family Ginkgo E2E migration after the first core-resource batch.

Current Boundary

  • Keep existing mock Admin API unit tests for now.
  • Do not add new mocked Admin API command tests.
  • Add Ginkgo E2E coverage against a real APISIX Admin API.
  • Prefer CLI lifecycle assertions: create, update, delete, list/export, and get.
  • Do not require real proxy/data-plane validation by default.
  • Legacy mock-test removal is deferred to a separate future decision.

Remaining Areas Covered

  • consumer / credential / consumer-group
  • ssl / stream-route / proto / secret / plugin-metadata
  • debug / completion / version / extension / context where applicable

Completed Work

This migration has been implemented through merged PRs:

Acceptance Criteria

  • remaining command families have Ginkgo E2E coverage where useful
  • resource behavior is asserted through CLI reads against real APISIX Admin API
  • existing mock Admin API unit tests are preserved in this phase
  • CI remains green and stable

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