Skip to content

Test(resource): global rules #3088

@SkyeYoung

Description

@SkyeYoung

Objective

resource refers to the page corresponding to the resources provided by the APISIX Admin API.

For the testing of these resource pages, it is necessary to ensure that the relevant resources can be CRUDed normally.

Steps

Here are just some of the most basic test steps that MUST be covered, and you are welcome to add more precise and comprehensive test steps.

As of the creation of this issue, please make sure to be divided into at least the following files:

*.list.spec.ts

  1. Can navigate to the list (index) page and display the relevant fields in the list normally.

  2. page, page_size and other filtering methods all work normally

*.crud-required-fields.spec.ts

Only CRUD required fields.

*.crud-all-fields.spec.ts

CRUD all fields.

Reference resources

  1. schema_def.lua
  2. docs/apisix/admin-api
  3. e2e tests

Note

  1. Please refer to the latest test files with similar names to understand what you need to do.
  2. If you encounter problems with the pages or components during testing, separate one or more PRs that fix these issues.
  3. If you need to modify content that affects other tests, such as e2e/server, please make sure you provide sufficient instructions or initiate a discussion.
  4. Existing tests are not the best way to write them, and better test steps or methods are welcome.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions