Add consumer REST API tests, fix OffsetAndMetadata bug, update docs#74
Merged
haochenpan merged 2 commits intomainfrom Mar 1, 2026
Merged
Add consumer REST API tests, fix OffsetAndMetadata bug, update docs#74haochenpan merged 2 commits intomainfrom
haochenpan merged 2 commits intomainfrom
Conversation
…docs - Add tests/consumer_service_test.py with 69 unit tests and 12 integration tests covering all 13 consumer REST API endpoints - Add 46 route handler tests to tests/main_test.py for auth, namespace validation, and happy paths - Fix production bug: OffsetAndMetadata missing leader_epoch argument in consumer_service.py commit_offsets - Update docs/web/api.md with new live URL, SDK auth instructions, and curl examples for all endpoints - Reorder API tags: User, Authentication, Namespace, Topic, Consumer - Relax ruff/mypy lint rules for test files (PLR2004, PLC0415, RUF059, PT021, and mypy error codes for test-specific patterns) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
tests/consumer_service_test.py, plus 46 route handler tests intests/main_test.pyconsumer_service.pywhereOffsetAndMetadatawas called with 2 args instead of 3 (missingleader_epoch)docs/web/api.mdwith new live deployment URL, SDK auth instructions, and curl examples for all endpointstesting/moduleTest plan
pytest -m "not integration")pytest -m integration)pytest tests/)🤖 Generated with Claude Code