Skip to content

test(cloudflare): cover the cloudflare group in the API command name test #7299

Backlog

Description

@devops-cli-service

Split from #5232.

The tests/commands/test_api_command_names.py file checks that command names follow the API routes. The cloudflare group must be in its groups. Issue #5231 adds this test file and the generated command reference. #5231 is in a dependency cycle with #5232: #5232 -> #5231 -> #5230 -> #5229 -> #5232. This issue defers the test coverage so the rename of #5232 can proceed without the cycle. This issue waits on #5231. Acceptance criteria: The cloudflare group is in the groups that tests/commands/test_api_command_names.py checks. A test runs uv run pytest tests/commands/test_api_command_names.py -k cloudflare and the run passes.

Proposed design

Problem statement

The module tests/commands/test_api_command_names.py checks that API command names follow their routes. It does not cover the cloudflare group. This change adds the cloudflare entries to the module after #5231 lands. It closes the test gap without a second test module.

Acceptance criteria

Requirement: Cloudflare group in the API command name check

The module tests/commands/test_api_command_names.py SHALL hold at least one CoveredApiCommand entry whose group is ("cloudflare",) and whose command path follows its API route.

Scenario: Cloudflare route-name test passes

  • WHEN A run of uv run pytest tests/commands/test_api_command_names.py -k cloudflare starts.
  • THEN The run collects at least one test whose ID names cloudflare, each collected test passes, and the run exits 0.

Requirement: Whole module still passes

The module tests/commands/test_api_command_names.py MUST pass for each group that it checks after the cloudflare entries are added.

Scenario: All route-name tests pass

  • WHEN A run of uv run pytest tests/commands/test_api_command_names.py starts.
  • THEN Each collected test passes and the run exits 0.

Existing Tool Considered

No alternatives check has run on this issue. The change uses pytest, which the repository already uses. No open tool or library covers adding a cloudflare group to the project's own route-name test. The written cost to add, keep and fix the entry is about 2,000 tokens and under 15 minutes of elapsed time.

Key questions

  • Which group name does the cloudflare command group register?: The group name is cloudflare. The module src/devops_cli/commands/cloudflare.py defines the Typer app and its command paths begin with cloudflare. [sources: src/devops_cli/commands/cloudflare.py]
  • How does the change add the cloudflare group to the route-name check?: Add CoveredApiCommand entries with group=("cloudflare",) to COVERED_API_COMMANDS for each cloudflare command that has a single-route dry-run plan. Use the existing plan_cloudflare_* factory and the command path that the CLI exposes. Change no other file. (best practice) [sources: tests/commands/test_api_command_names.py, src/devops_cli/commands/cloudflare.py, src/devops_cli/cloudflare/cloudflare_plans.py]
    • Chosen: Add entries to the existing COVERED_API_COMMANDS tuple. The module already holds the covered commands. One entry per command is the smallest change, and -k cloudflare selects the new test IDs.
    • Rejected: Add a second test module for cloudflare. It duplicates the route check, and the two group lists drift apart.
    • Rejected: Rename the cloudflare commands in this issue. This issue covers the test only. The rename belongs to feat(cloudflare): cloudflare commands take the API route names #5232.

Fit

Fits in one pull request.

Suspected block

None.

Dependencies

#5231

Activity

  1. added
    type/test
    source/agent
    status/new
    value/medium
    effort/low
    scope/cloudflare
    on Nov 26, 2026
  2. devops-cli-service commented on Nov 26, 2026

    @devops-cli-service
    ContributorAuthor
  3. devops-cli-service commented on Nov 28, 2026

    @devops-cli-service
    ContributorAuthor

    Next step: the open items close, or a person replies in a comment or edits the body. See Dependencies in the section Proposed design of the body.

  4. devops-cli-service commented on Nov 29, 2026

    @devops-cli-service
    ContributorAuthor

    Next step: the alternatives check records a verdict. See the section Proposed design of the body.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort/lowpriority/p2-mediumscope/cloudflaresource/agentstatus/newtype/testvalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions