Skip to content

test: cover request ID failure handling - #1243

Open
taiwoMoil wants to merge 1 commit into
RevoraOrg:masterfrom
taiwoMoil:test/request-id-failure-handling
Open

taiwoMoil wants to merge 1 commit into
RevoraOrg:masterfrom
taiwoMoil:test/request-id-failure-handling

Conversation

@taiwoMoil

Copy link
Copy Markdown

Add focused regression coverage for requestIdMiddleware's empty-result path and adjacent behavior.

Exercised cases:

  • missing, empty, and whitespace-only string headers
  • empty and blank-only header arrays
  • fallback to an existing request ID
  • trimming a normal header value
  • selecting the first non-empty array value
  • response header, request logger, and next() propagation

Validation:

  • focused suite: 8 tests passed
  • surrounding request-ID suites: 9 tests passed
  • combined coverage gate: 17 tests passed with 95% thresholds
  • focused ESLint: passed
  • repository ESLint: blocked by 2,352 pre-existing findings
  • TypeScript build: blocked by pre-existing syntax/invalid-character errors in riskScoreEngine and health tests

Security note: invalid or blank request ID headers cannot suppress trace ID generation or request-scoped logging.

closes #1057

Add focused regression coverage for requestIdMiddleware's empty-result path and adjacent behavior.

Exercised cases:
- missing, empty, and whitespace-only string headers
- empty and blank-only header arrays
- fallback to an existing request ID
- trimming a normal header value
- selecting the first non-empty array value
- response header, request logger, and next() propagation

Validation:
- focused suite: 8 tests passed
- surrounding request-ID suites: 9 tests passed
- combined coverage gate: 17 tests passed with 95% thresholds
- focused ESLint: passed
- repository ESLint: blocked by 2,352 pre-existing findings
- TypeScript build: blocked by pre-existing syntax/invalid-character errors in riskScoreEngine and health tests

Security note: invalid or blank request ID headers cannot suppress trace ID generation or request-scoped logging.

Refs RevoraOrg#1057
@drips-wave

drips-wave Bot commented Sep 30, 2026

Copy link
Copy Markdown

@taiwoMoil Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

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.

Add regression coverage for requestIdMiddleware failure handling

2 participants