Skip to content

EIP: fix the message expiration suite and set response status on waves 1–3 listeners - #12

Merged
brunosouzas merged 12 commits into
mainfrom
ab108-eip-lab-fixes
Nov 26, 2026
Merged

brunosouzas merged 12 commits into
mainfrom
ab108-eip-lab-fixes

Conversation

@brunosouzas

@brunosouzas brunosouzas commented Oct 21, 2026 •

Copy link
Copy Markdown
Owner

Held for PUB: correlation-identifier-in-mulesoft

Stacked on #7: merge right after #7. The base is main, so until #7 is merged this diff also shows #7's commits. This pull request changes the http:listener of mule-correlation-id-echo, which the published Correlation Identifier page quotes (and the wave 2 refactor page quotes at #7's head), so it waits for the content merge of the publishing playbook and merges right after it. The merge of #7's branch (ac06c29) keeps #7's wave 1 names and adds this pull request's <http:response> to the wave 1 listeners.

Fixes found in the EIP lab review of waves 1–5.

Message expiration suite

  • Removed tc-second-payment-of-an-order-is-refused and tc-after-failed-compensation-answers-500: copies of tests that belong to (and still exist in) transactional-client-test-suite.xml.
  • Added me-failing-request-does-not-end-the-run: a request stored with an expiresAt that does not parse becomes FAILED with the error, and the request queued after it is RESERVED in the same consumer run.
  • Added me-request-with-invalid-quantity-is-rejected (over HTTP): a quantity of 0, -3, 1.5 or "two" gets 400 in JSON and is not queued; no quantity is queued as 1.
  • The flow already implemented both behaviours (per-request Try with On Error Continue; quantity validation at queue time), so no flow change.

Response status on wave 1–3 listeners
Twelve listeners had no http:response, so an APP:* error handled by the global error handler answered 200. Each now has statusCode="#[vars.httpStatus default 200]", as in waves 4–6. Paths and methods unchanged:

  • message-translator.xml: POST /eip/orders/translate
  • canonical-data-model.xml: POST /eip/canonical/orders/marketplace, POST /eip/canonical/orders/partner
  • scatter-gather-services.xml: POST /eip/services/pricing, /stock, /fraud
  • mule-correlation-id.xml: GET /eip/correlation-id/echo, /call/default, /call/never
  • payment-common.xml: GET /eip/payments/{orderId}/charges
  • recipient-list-recipients.xml: GET /eip/orders/{orderId}/notifications
  • stock-reservation-common.xml: GET /eip/stock/{orderId}/reservations

New tests over real HTTP: mt-over-http-error-answers-400-and-success-200, cdm-over-http-errors-answer-400-and-success-200.

Verification
mvn clean test (Java 17): 183 tests, 0 failures, 0 errors; application coverage 99.47%. README updated (count, coverage, claims).

PR #7 (ab102-eip-wave-1-naming) will need a rebase onto main after this one: it conflicts in mule-correlation-id.xml and payment-common.xml.

AB#108

brunosouzas and others added 12 commits October 21, 2026 10:10
…-flows, v-variables, typed display names, flow descriptions)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Stacks this pull request on #7: keeps #7's wave 1 names and adds this
pull request's <http:response> to the wave 1 listeners
(mule-correlation-id.xml, payment-common.xml).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@brunosouzas
brunosouzas merged commit cf49f18 into main Nov 26, 2026
2 checks passed
brunosouzas-agent added a commit that referenced this pull request Nov 26, 2026
Resolves the README coverage line with #12: 198 cases at about 99.4%
(local MUnit run on this merge).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@brunosouzas-agent
brunosouzas-agent deleted the ab108-eip-lab-fixes branch November 27, 2026 00:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants