← Back to Pull requests

[ZEPPELIN-6681] Cover login route authentication and failure recovery with E2E tests #5605

Closed
unknown closed this pull request without merging on Nov 04, 2026 12:01 UTC
View on GitHub
unknown unknown commented on Nov 03, 2026 13:22 UTC
Author

What is this PR for?

Extend login-route E2E coverage for authentication handoff and failure recovery.

Successful login now verifies the login response, the browser-visible home page, a session cookie, and a ticket request using the same browser session. The suite also checks that an already-authenticated visitor is redirected home without another login submission.

Invalid-credential, network-failure, and HTTP 503 scenarios verify that the form exits its loading state, remains editable, and accepts a successful retry. Only the network and 503 failures are injected; successful authentication always uses the live server.

What type of PR is it?

Improvement

What is the Jira issue?

https://issues.apache.org/jira/browse/ZEPPELIN-6681

How should this be tested?

Start a Shiro-enabled Zeppelin backend at http://localhost:8080. Its Shiro configuration must include an account with the admin role. Ensure conf/shiro.ini matches the server configuration, or set ZEPPELIN_E2E_SHIRO_INI to that file.

With frontend dependencies installed, run from zeppelin-web-angular:

npm run e2e:fast -- tests/login/login.spec.ts --workers=1 --retries=0

For all configured browsers:

npm run e2e -- tests/login/login.spec.ts --workers=1 --retries=0

Check that:

  • Valid credentials establish an authenticated browser session and reach home.

  • An already-authenticated visit to the login route returns home without another login submission.

  • Invalid credentials leave the form usable and nonloading, and corrected credentials authenticate successfully.

  • Network and HTTP 503 failures allow recovery and a successful retry against the real server.

  • Tab moves focus from username to password to the login button.
  • Run against a Shiro-enabled server; skipped scenarios on an anonymous server do not verify authentication behavior.

    Questions:

    Does the license files need to update? No.
    Is there breaking changes for older versions? No.
    Does this needs documentation? No.

    Diff: 253 lines (+189 / -64) across 3 files Reviewer: jongyoul Review duration: 1359m
    All Vouch review confidence checks passed
    Residual risk 0.25 = Change Risk (0.62) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.62 · 253 lines diff across 3 files
    0.62
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.331
    Shallow Review Depth shallow_review_depth
    0.289
    Sensitive Paths sensitive_paths
    0.062
    Real PR Conversation Timeline
    1 comments
    "Review active on #5605"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed sensitive_module
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 62.2% (MEDIUM) · Higher = larger blast radius
    62.2%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 24.6% · Safe to merge
    24.6%