Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update SelfSignUpConsentTest with Tenanted Callback Endpoint and Assertion Adjustments #22154

Merged
merged 2 commits into from
Jan 5, 2025

Conversation

KD23243
Copy link
Contributor

@KD23243 KD23243 commented Jan 5, 2025

Purpose

This pull request includes changes to the SelfSignUpConsentTest class in the org.wso2.identity.integration.test.consent package to update the callback endpoints and adjust the corresponding test assertions.

Changes to callback endpoints:

  • Updated the CALLBACK_ENDPOINT to use the correct port (https://localhost:9853/carbon/callback).
  • Added a new constant TENANTED_CALLBACK_ENDPOINT for tenant specific callback URL (https://localhost:9853/t/wso2.com/carbon/callback).

Adjustments to test assertions:

  • Modified the testInitialSelfSignUpPage method to assert the presence of the TENANTED_CALLBACK_ENDPOINT instead of CALLBACK_ENDPOINT.

Related PRs

@jenkins-is-staging
Copy link
Contributor

PR builder started
Link: https://github.com/wso2/product-is/actions/runs/12616515197

@jenkins-is-staging
Copy link
Contributor

PR builder completed
Link: https://github.com/wso2/product-is/actions/runs/12616515197
Status: success

Copy link
Contributor

@jenkins-is-staging jenkins-is-staging left a comment

Choose a reason for hiding this comment

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

Approving the pull request based on the successful pr build https://github.com/wso2/product-is/actions/runs/12616515197

@DilshanSenarath DilshanSenarath merged commit 7a28f35 into wso2:master Jan 5, 2025
1 check passed
Comment on lines +68 to +69
private static final String CALLBACK_ENDPOINT = "https://localhost:9853/carbon/callback";
private static final String TENANTED_CALLBACK_ENDPOINT = "https://localhost:9853/t/wso2.com/carbon/callback";
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's use port and secondary domain name from already available constants. You can add a new PR with this suggestion.

Copy link
Contributor

@DilshanSenarath DilshanSenarath Jan 5, 2025

Choose a reason for hiding this comment

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

You can use getTenantQualifiedURL (Link) and getBaseURL (Link) methods as helpers here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Addressed using #22158

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants