Repository navigation
Description
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 cloudflarestarts. - 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.pystarts. - 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 modulesrc/devops_cli/commands/cloudflare.pydefines the Typer app and its command paths begin withcloudflare. [sources: src/devops_cli/commands/cloudflare.py] - How does the change add the cloudflare group to the route-name check?: Add
CoveredApiCommandentries withgroup=("cloudflare",)toCOVERED_API_COMMANDSfor each cloudflare command that has a single-route dry-run plan. Use the existingplan_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_COMMANDStuple. The module already holds the covered commands. One entry per command is the smallest change, and-k cloudflareselects 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.
- Chosen: Add entries to the existing
Fit
Fits in one pull request.
Suspected block
None.
Activity
devops-cli-service commentedon Nov 26, 2026
Both target cloudflare command tests, but #4088 removes name patches from those tests while this adds cloudflare to the API command name test groups.devops-cli-service commentedon Nov 28, 2026
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.
devops-cli-service commentedon Nov 29, 2026
Next step: the alternatives check records a verdict. See the section Proposed design of the body.