feat(gateway): add E2E integration smoke test for all services#73
Open
devin-ai-integration[bot] wants to merge 1 commit into
Open
feat(gateway): add E2E integration smoke test for all services#73devin-ai-integration[bot] wants to merge 1 commit into
devin-ai-integration[bot] wants to merge 1 commit into
Conversation
- Add tests/gateway-e2e-smoke.sh that validates: - Gateway health (GET /healthz -> 200) - Route reachability for all 5 services through YARP proxy - Auth enforcement (401 without token, skipped for scaffolds) - Identity register/login flow (skipped for scaffolds) - Authenticated CRUD through gateway (skipped for scaffolds) - Authorization header forwarding verification - Fix broken Shared project reference paths in all service .csproj files (../../Shared -> ../../../Shared) so docker builds succeed The test is idempotent, CI-ready, and gracefully handles scaffold services by marking auth-dependent checks as SKIP rather than FAIL.
Contributor
Author
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
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
Adds
tests/gateway-e2e-smoke.sh— an idempotent, CI-ready E2E smoke test that validates all 5 services are reachable through the YARP API Gateway.Test flow:
docker compose up --build -d(skippable viaSKIP_COMPOSE=1)/healthzon each service (120s timeout)localhost:5000):GET /healthz→ 200GET /api/{service_plural}/api/{controller}→ 200 or 401 for all 5 servicesPOST .../register+POST .../login→ extracts JWT (SKIPs if scaffold)GETwithAuthorization: Bearer <token>→ 200 (SKIPs if no token)docker compose down -v(cleanup trap)Current scaffold state: 6 PASS, 0 FAIL, 11 SKIP — auth-dependent checks are SKIP (not FAIL) and will auto-activate when services add JWT middleware +
[Authorize].Bug fix included: All 5 service
.csprojfiles had brokenProjectReferencepaths toShared/:../../Sharedresolved tosrc/Services/Shared/(nonexistent);../../../Sharedcorrectly resolves tosrc/Shared/. This fix is required fordocker compose --buildto succeed.Link to Devin session: https://partner-workshops.devinenterprise.com/sessions/16aec171581348c9b7db944e31f8df8c
Requested by: @mbatchelor81