feat(product): T5 — E2E smoke test (health, auth, CRUD through gateway)#71
Open
devin-ai-integration[bot] wants to merge 2 commits into
Open
feat(product): T5 — E2E smoke test (health, auth, CRUD through gateway)#71devin-ai-integration[bot] wants to merge 2 commits into
devin-ai-integration[bot] wants to merge 2 commits into
Conversation
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:
|
… and service healthcheck
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 an end-to-end smoke test validating the Product microservice through the API gateway with JWT authentication.
src/Services/Product/tests/smoke-test.sh— bash script that:openssl dgstwith the shared dev secretwait_for_serviceretry loop (polls/healthz, 1s backoff, 30 retries) before running assertionsCATEGORY_IDskips product creation (Test 5), emptyPRODUCT_IDskips get-by-id (Test 7) — prevents cascading false-passesGET /healthzdirect → 200 (public health check)GET /api/productdirect without token → 401GET /api/productsvia gateway without token → 401POST /api/products/categoriesvia gateway with JWT → 201 (create category)POST /api/productsvia gateway with JWT → 201 (create product referencing category)GET /api/productsvia gateway with JWT → 200 + body contains created productGET /api/products/{id}via gateway with JWT → 200src/Services/Product/tests/docker-compose.test.yml— minimal compose stack (postgres:16-alpine, product-service, api-gateway) for isolated test runs.All 8 assertions pass. No source files in
Product.API/,Product.Domain/,Product.Infrastructure/, orApiGateway/were modified.Link to Devin session: https://partner-workshops.devinenterprise.com/sessions/bc5a9156cad244339c8ad8d1601e6dc2
Requested by: @mbatchelor81