chore(test): use RequestCatcher webhook URLs in integration tests#80
Closed
FranDisalvo90 wants to merge 1 commit into
Closed
chore(test): use RequestCatcher webhook URLs in integration tests#80FranDisalvo90 wants to merge 1 commit into
FranDisalvo90 wants to merge 1 commit into
Conversation
The API started rejecting reserved placeholder webhook URLs (e.g. *.pluggy.ai) with HTTP 400 "Webhook url is a reserved placeholder and cannot be used" around 2026-06-01, which broke item creation in the setUp of most integration tests (and the www.test.com URLs were no longer accepted either). Replace the hardcoded placeholders with public, reachable HTTPS RequestCatcher endpoints, as recommended by the Pluggy webhook docs for testing. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Collaborator
Author
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.
Problem
The daily scheduled
Build & Testrun has been failing since ~2026-06-01. ~10 integration test classes fail insetUpwith:Root cause
This is an API-side change, not a repo regression: the last green scheduled run (May 31) and the first red one (Jun 1) ran the same
masterwith no code change in between (runtime dropped from ~6min to ~1.5min because the tests now abort early insetUp).Around Jun 1 the API started rejecting reserved/placeholder webhook URLs. The tests hardcoded such URLs:
helper/ItemHelper.java→https://webhookUrl.pluggy.ai(used bycreatePluggyBankItem, so it broke thesetUpof almost every item-dependent test)CreateItemTest/UpdateItemTest→https://www.test.com/https://www.test2.com(no longer accepted either)Tests that don't create items (connectors, categories, auth, connect token) keep passing.
Fix
Replace the hardcoded placeholders with public, reachable HTTPS RequestCatcher endpoints, as recommended by the Pluggy webhook docs for testing. Distinct paths are used where the assertions compare URLs (
UpdateItemTest). The negativehttp://www.test.comcase (which tests rejection of non-HTTPS) is left untouched.Validation
mvn test-compile(JDK 11)Build & Testrun will confirm the fix.🤖 Generated with Claude Code