Fix API Routing and Add Automated Testing#134
Open
uelkerd wants to merge 63 commits into
Open
Conversation
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.
This PR addresses Flask-RESTX routing issues and implements comprehensive automated testing.
Changes Made
Routing Fixes
Automated Testing Implementation
Files Modified
deployment/cloud-run/secure_api_server.py: Updated routing logicdeployment/cloud-run/test_routing_debug.py: Enhanced debuggingdeployment/cloud-run/test_routing_minimal.py: Minimal test casesdeployment/cloud-run/test_swagger_debug.py: Swagger integration testsdeployment/cloud-run/test_debug_server.py: New debugging server (added)tests/unit/test_api_routing.py: New unit tests (added)tests/unit/test_routing_fixes.py: New routing tests (added)Testing
All changes have been tested locally and automated tests pass. The API now correctly handles routing without conflicts.
Impact
These changes improve API reliability and maintainability by fixing routing issues and adding robust testing coverage.
Summary by Sourcery
Fix API routing issues by reordering root endpoint registration, removing leading slashes from namespaces, and bolstering logging, and introduce comprehensive automated tests (unit, integration, and debug scripts) to validate endpoint routes and functionality.
New Features:
Bug Fixes:
Enhancements:
Tests:
Summary by CodeRabbit
New Features
Improvements
Bug Fixes