RHIDP-14000: update mcp and query interrupt tests#1888
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (4)
📜 Recent review details⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (15)
🧰 Additional context used📓 Path-based instructions (1)tests/**/*.py📄 CodeRabbit inference engine (AGENTS.md)
Files:
🔇 Additional comments (9)
WalkthroughThis PR adds test coverage for error handling and edge cases across streaming interrupt and MCP server endpoints. Stream interrupt integration tests now cover 404 responses for non-existent request IDs, unit tests verify concurrent registry safety and endpoint idempotency, and MCP server tests ensure deletion succeeds idempotently when toolgroups are missing and list operations handle missing configuration. ChangesStream interrupt and MCP server error handling test coverage
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Suggested reviewers
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
✨ Simplify code
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Signed-off-by: Jordan Dubrick <jdubrick@redhat.com>
Signed-off-by: Jordan Dubrick <jdubrick@redhat.com>
73e6d19 to
0cc9905
Compare
Description
MCP
test_delete_mcp_server_toolgroup_not_found_is_idempotenttest_list_mcp_servers_configuration_not_loadedBenefits: Covers the idempotent delete path when the Llama Stack toolgroup is already gone (previously untested). Aligns list handler with config-not-loaded coverage on other endpoints.
Stream Interrupt
Unit tests:
test_stream_interrupt_registry_concurrent_cancel_and_deregistertest_stream_interrupt_endpoint_double_interruptIntegration:
test_stream_interrupt_nonexistent_request_returns_404test_stream_interrupt_full_round_trip@authorizeresolves correctlyBenefits: Protects thread-safe registry behavior and double-interrupt semantics. The HTTP 404 test validates routing/auth/handler wiring that direct handler calls miss.
Type of change
Tools used to create PR
Identify any AI code assistants used in this PR (for transparency and review context)
Related Tickets & Documents
Checklist before requesting a review
Testing
Summary by CodeRabbit