Skip to content

BUG-79: the portal's test stand-in checks If-Match before the idempotency replay; the API replays first #314

Open

Description

@ephico2real2

Part of #301. From the review of PR #313 (no failing test yet).

cmapi-portal-ui/tests/api/standin.mjs:492-511 checks If-Match before it looks up the Idempotency-Key. The API does the opposite: cmapi/src/cmapi/plugins/namespaces/router.py:171-175 replays a known key first. So a portal test can pass on the stand-in for a sequence that the real API answers differently, for example a retry of a submitted PATCH with an old ETag.

Fix. Make the stand-in follow the API's order, with a comment citing router.py.

How to prove it. A test that retries a submitted PATCH with the same key and a stale ETag must get the replayed 202, as from the API, and must fail on the current stand-in.

Activity

  1. added
    bug
    status:open
    sev:low
    Backlog
    on Nov 16, 2026
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

    Backlogbugsev:lowstatus:open

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions