Skip to content

🔧 chore(azure devops login): write test to ensure the redirect uri is absolute#86462

Merged
iamrajjoshi merged 1 commit into
masterfrom
raj/inc-1054-unit-test
Mar 6, 2025
Merged

🔧 chore(azure devops login): write test to ensure the redirect uri is absolute#86462
iamrajjoshi merged 1 commit into
masterfrom
raj/inc-1054-unit-test

Conversation

@iamrajjoshi

Copy link
Copy Markdown
Collaborator

this test is a unit test for the fix for inc-1054 (#86063).

it ensures that the redirect uri for azure devops is indeed the absolute uri instead of the relative one. i verified the test fails before the fix is made.

closes: https://getsentry.atlassian.net/browse/API-3026

@iamrajjoshi iamrajjoshi self-assigned this Mar 6, 2025
@iamrajjoshi iamrajjoshi marked this pull request as ready for review March 6, 2025 15:32
@iamrajjoshi iamrajjoshi requested a review from a team March 6, 2025 15:32
Comment on lines +109 to +112
# Verify the redirect URI is correctly constructed with absolute_uri
assert req_params["redirect_uri"][0] == absolute_uri(
reverse("sentry-extension-setup", kwargs={"provider_id": "vsts_new"})
)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

this is the different part

@iamrajjoshi iamrajjoshi merged commit 401d8c5 into master Mar 6, 2025
@iamrajjoshi iamrajjoshi deleted the raj/inc-1054-unit-test branch March 6, 2025 17:00
@github-actions github-actions Bot locked and limited conversation to collaborators Mar 22, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants