Skip to content

Added tests for intercepting cross cloud redirect url scenario , Fixes AB#3179147#2605

Merged
somalaya merged 8 commits intodevfrom
somalaya/crossCloudChallengeTests
Mar 24, 2025
Merged

Added tests for intercepting cross cloud redirect url scenario , Fixes AB#3179147#2605
somalaya merged 8 commits intodevfrom
somalaya/crossCloudChallengeTests

Conversation

@somalaya
Copy link
Copy Markdown
Contributor

@somalaya somalaya commented Mar 13, 2025

In this PR #2602, we made a change (hotfix) to override the redirect url when it is a cross cloud scenario to attach a PRT header.

The current PR just has some tests to cover the changes made in previous PR

Fixes AB#3179147

@somalaya somalaya requested a review from a team as a code owner March 13, 2025 18:55
@github-actions
Copy link
Copy Markdown

❌ Work item link check failed. Description does not contain AB#{ID}.

Click here to Learn more.

@somalaya somalaya changed the title Added tests for intercepting cross cloud redirect url scenario Added tests for intercepting cross cloud redirect url scenario , Fixes AB#3179147 Mar 13, 2025
val testUrl = "https://example.com?login_hint=testuser"
crossCloudChallengeHandler.processChallenge(testUrl)
verify(webView).loadUrl(eq(testUrl), eq(headers))
}
Copy link
Copy Markdown
Contributor

@mohitc1 mohitc1 Mar 14, 2025

Choose a reason for hiding this comment

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

Since you already have test for processChallenge, why add test for modifyHeadersWithRefreshTokenCredential (and make it non private)?

If there's some extra that's getting tested that can be tested on processChallenge itself.

Copy link
Copy Markdown
Contributor

@mohitc1 mohitc1 left a comment

Choose a reason for hiding this comment

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

Left a suggestion

@github-actions
Copy link
Copy Markdown

✅ Work item link check complete. Description contains link AB#3179147 to an Azure Boards work item.

@somalaya somalaya added the No-Changelog This Pull-Request has no associated changelog entry. label Mar 24, 2025
@somalaya somalaya merged commit 1e36669 into dev Mar 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

No-Changelog This Pull-Request has no associated changelog entry.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants