Skip to content

feat: show error feedback in UI on early test failure - #2209

Merged
lbroudoux merged 1 commit into
microcks:masterfrom
alokkumardalei-wq:issue-1056
Jul 9, 2026
Merged

lbroudoux merged 1 commit into
microcks:masterfrom
alokkumardalei-wq:issue-1056

Conversation

@alokkumardalei-wq

@alokkumardalei-wq alokkumardalei-wq commented Jul 6, 2026 •

Copy link
Copy Markdown
Contributor

What does this PR do?

This PR provides clear UI feedback to the user whenever a test fails during its early setup phase (e.g., due to OAuth negotiation failures, malformed URIs, or runner setup errors).

Previously, if a test failed for known reasons like an AuthorizationException during the OAuth2 token flow, the failure was silently logged in the backend and the UI provided no immediate feedback. With these changes, the backend now explicitly captures these early failures and passes a runnerMessage to the frontend, which is then rendered as a prominent error alert directly in the UI.

Fixes #1056

How was this tested?

  • Backend: Verified that TestRunnerService properly populates the runnerMessage inside TestResult during AuthorizationException, URISyntaxException, and runner retrieval failures. Ran the full backend test suite (mvn clean test) to ensure no regressions.

  • Frontend / UI:

    • Spun up the Microcks instance locally using Docker Compose.
    • Imported a sample API (Petstore API).
    • Attempted to launch a new test with intentionally invalid OAuth credentials (wrong token URI, client ID, etc.).
    • Verified that a red alert banner displaying Test failed: OAuth2 token flow failed: ... appears immediately at the top of both the Test Details and Test Runner pages.
test_failure_message_1783345304967

@lbroudoux

Copy link
Copy Markdown
Member

Makes sense. Thanks for the contribution. I'm gonna review it now.

@lbroudoux lbroudoux left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thank you!

@lbroudoux lbroudoux added this to the 1.15.0 milestone Jul 9, 2026
@lbroudoux
lbroudoux merged commit 35c19fe into microcks:master Jul 9, 2026
15 checks passed
@github-actions

github-actions Bot commented Jul 9, 2026

Copy link
Copy Markdown

🎉 @alokkumardalei-wq

You are now a Microcks community contributor! 💖

Thanks and congrats 🚀 on merging your first pull request! We are delighted and very proud of you! 👏

📢 If you're using Microcks in your organization, please add your company name to this list. 🙏 It really helps the project to gain momentum and credibility. It's a small contribution back to the project with a big impact.

If you need to know why and how to add yourself to the list, please read the blog post "Join the Microcks Adopters list and Empower the vibrant open source Community 🙌"

Kudos and please keep going, we need you 🙌

lbroudoux pushed a commit that referenced this pull request Aug 5, 2026
Fixes #1056

Signed-off-by: alokkumardalei-wq <[email protected]>
(cherry picked from commit 35c19fe)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Provide an error message when the test fails for Authorization Reasons

2 participants