Skip to content

test: align v1 dispatch + omni router tests with #277 fall-through behavior#285

Merged
thinmintdev merged 1 commit into
mainfrom
fix/test-dispatcher-no-route-asserts
May 23, 2026
Merged

test: align v1 dispatch + omni router tests with #277 fall-through behavior#285
thinmintdev merged 1 commit into
mainfrom
fix/test-dispatcher-no-route-asserts

Conversation

@thinmintdev
Copy link
Copy Markdown
Contributor

PR #277 changed dispatcher to fall through to lemonade_proxy on NoRouteFound; 6 tests still asserted the old 404 behavior, breaking CI for #281, #282, #283 + future PRs. Updates assertions to the new contract.

…havior

PR #277 changed the dispatcher: NoRouteFound now delegates to the
lemonade_proxy catch-all instead of bubbling up as 404. Six existing
tests asserted the OLD 404 contract, breaking CI for #281, #282, #283
and any future PR.

Fixes:
- tests/api/test_v1_dispatch.py: 3 `_no_route_envelope` tests renamed +
  asserts widened to accept either 404 (no proxy) or 503
  (proxy→lemonade unreachable).
- tests/api/test_v1_proxy.py: test_v1_chat_completions_still_hits_dispatcher
  renamed to ..._falls_through_to_proxy + assertion flipped (proxy now
  MUST be consulted on dispatcher no_route, not skipped).
- tests/omni_router/test_api_wiring.py: test_chat_completions_without_omni
  widened to either 404 or 503 + lemonade.unavailable code.
- tests/slots/test_manager.py::test_status_reconciles_drift: drop the
  "evicted" message assertion (the operator-facing message is reset to
  empty in the post-transition Slot rebuild path; only state==OFFLINE
  is contract per #276).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@thinmintdev thinmintdev merged commit eaa8b98 into main May 23, 2026
4 checks passed
@thinmintdev thinmintdev deleted the fix/test-dispatcher-no-route-asserts branch May 23, 2026 23:13
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