Skip to content

test(cli): cover custom-method path regressions - #64

Open
robinbraemer wants to merge 1 commit into
mainfrom
codex/cover-custom-verb-regressions
Open

robinbraemer wants to merge 1 commit into
mainfrom
codex/cover-custom-verb-regressions

Conversation

@robinbraemer

Copy link
Copy Markdown
Member

Summary

Adds behavioural generated-command coverage for the two literal custom-method paths named in CNAP Product Quality issue akua-dev/cnap#1761:

  • POST /operations/{id}:wait, including an encoded path id and timeout query.
  • POST /clusters/{id}/capabilities:refresh, including its nested literal suffix and headers.

The path compiler fix itself is already merged in #55. This PR keeps the regression contract at the actual generated-command boundary; it does not duplicate that implementation change.

Verification

  • bun run test -- test/generated-command.test.ts --testNamePattern='operations\.wait|refreshCapabilities'
  • mise run check — build, generation drift check, 19 files / 188 tests
  • git diff --check

Delivery note

The released v0.10.1 remains affected because it predates #55. Publishing the fixed source is independently blocked by governed Release Please tag identity in #63; no manual release workaround is included here.

Rationale: The system-level URL template fix is already on main, but Product Quality found that the released CLI still crashes specifically on operations.wait. Pin the exact action path and its nested counterpart so a future generated-client or Effect patch cannot reinterpret literal custom-method suffixes as parameters.\n\nRejected: Changing generated code again would duplicate the already-merged path compiler correction.\n\nTested: bun run test -- test/generated-command.test.ts --testNamePattern='operations\.wait|refreshCapabilities'; mise run check; git diff --check.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant