Skip to content

RAID-731: Skip DataCite error test when mockserver unavailable#564

Merged
robleney-ardc merged 1 commit into
mainfrom
fix/RAID-731-datacite-mockserver
Jul 9, 2026
Merged

RAID-731: Skip DataCite error test when mockserver unavailable#564
robleney-ardc merged 1 commit into
mainfrom
fix/RAID-731-datacite-mockserver

Conversation

@robleney-ardc

Copy link
Copy Markdown
Contributor

What

Re-lands the RAID-731 fix for DataciteErrorIntegrationTest onto main (cherry-pick of ba56b5f5).

The test previously programmed a MockServer expectation at runtime via a hardcoded http://localhost:1080/mockserver/expectation. In the Branch-Build-Deploy pipeline no Docker stack runs, so that call fails with connection refused during test setup, failing intTest for the whole branch. This change defines the DataCite 429 expectation statically in docker-compose/mockserver/expectations.json (matched by a sentinel string in the raid title, priority 10 over the generic 201 expectations) and skips the test via JUnit Assumptions when MockServer at localhost:1080 is unreachable.

Why this PR exists

The fix was originally raised as PR #560, which was closed without merging. The commit only survived on the unmerged RAID-712 branch (PR #558), so main never received it. As a result every branch cut from main still runs the old hardcoded test and fails intTest in Branch-Build-Deploy — most recently the feature/RAID-733 execution cd33496f-48bc-4d32-83ac-4cc2ea5a6912, where this was the only failing test (165/166 passed).

This PR decouples the test fix from the larger RAID-712 feature and lands it on main directly so all branch pipelines are unblocked.

Verification

  • Cherry-pick applied cleanly onto current main.
  • ./gradlew :api-svc:raid-api:compileIntTestJava succeeds (warnings only).

🤖 Generated with Claude Code

The test previously created a mockserver expectation dynamically at runtime, which
failed with connection refused in the Branch-Build-Deploy pipeline where no Docker
stack runs. The DataCite 429 expectation is now defined statically in expectations.json
(matched by a sentinel string in the raid title, priority 10 over the generic 201
expectations), and the test skips via JUnit Assumptions when mockserver at
localhost:1080 is unreachable.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@robleney-ardc robleney-ardc merged commit 87ad372 into main Jul 9, 2026
8 checks passed
@robleney-ardc robleney-ardc deleted the fix/RAID-731-datacite-mockserver branch July 9, 2026 05:39
@robleney-ardc robleney-ardc restored the fix/RAID-731-datacite-mockserver branch July 10, 2026 04:19
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