You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
BUG-79: the portal's test stand-in checks If-Match before the idempotency replay; the API replays first #314
BacklogNot started: the work waits in the backlogbugSomething isn't workingsev:lowA small defect, a defect no code path reaches yet, or a cleanupstatus:openNo fix yet
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.
BacklogNot started: the work waits in the backlogbugSomething isn't workingsev:lowA small defect, a defect no code path reaches yet, or a cleanupstatus:openNo fix yet
Activity