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

Extract the mock api url from code to pipeline argument #2387

Merged
merged 17 commits into from
May 21, 2024

Conversation

Yuki-YuXin
Copy link
Contributor

@Yuki-YuXin Yuki-YuXin commented Apr 18, 2024

Summary

The Mock API domain is hardcoded in our test source files. This domain should not be publicly known.
Please refer to #2387 for comments related with the PR.

Company MSAL PR: AzureAD/microsoft-authentication-library-for-android#2103

@Yuki-YuXin Yuki-YuXin closed this Apr 18, 2024
@Yuki-YuXin Yuki-YuXin reopened this May 16, 2024
@Yuki-YuXin Yuki-YuXin marked this pull request as ready for review May 16, 2024 13:13
@Yuki-YuXin Yuki-YuXin requested review from a team as code owners May 16, 2024 13:13
@Yuki-YuXin Yuki-YuXin added No-Changelog This Pull-Request has no associated changelog entry. No-4j-Changelog There is no changelog entry for common4j in this PR labels May 16, 2024
@Yuki-YuXin Yuki-YuXin changed the title Extract the mock api url from code to pipeline argument Test: Extract the mock api url from code to pipeline argument May 16, 2024
@Yuki-YuXin Yuki-YuXin closed this May 16, 2024
@Yuki-YuXin Yuki-YuXin reopened this May 17, 2024
@@ -164,6 +165,11 @@ if (project.hasProperty("useMockApiForNativeAuth")) {
useMockApiForNativeAuthParameter = useMockApiForNativeAuth
}

if (project.hasProperty("mockApiUrl")) {
mockApiUrlParameter = mockApiUrl.toString()
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think you need to call toString() here.

@Yuki-YuXin Yuki-YuXin added the Skip-Consumers-Check Only include this if making a breaking change purposefully, and there is an MSAL/ADAL/Broker PR label May 17, 2024
@Yuki-YuXin Yuki-YuXin changed the title Test: Extract the mock api url from code to pipeline argument Extract the mock api url from code to pipeline argument May 17, 2024
@Yuki-YuXin
Copy link
Contributor Author

@shahzaibj @p3dr0rv @fadidurah This PR makes change on pipeline yml files. Could I kindly ask for your confirmation and review in case I missed something that could cause issues to the pipeline. For the skiped MSAL consumers check, I will add -PmockApiUrl=$(MOCK_API_URL) later in msal repo. Many thanks!

@Yuki-YuXin Yuki-YuXin merged commit 0f8be8b into dev May 21, 2024
13 checks passed
Yuki-YuXin added a commit to AzureAD/microsoft-authentication-library-for-android that referenced this pull request May 21, 2024
@Yuki-YuXin Yuki-YuXin deleted the yuki/extract-mock-api-pipeline branch May 29, 2024 14:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
No-4j-Changelog There is no changelog entry for common4j in this PR No-Changelog This Pull-Request has no associated changelog entry. Skip-Consumers-Check Only include this if making a breaking change purposefully, and there is an MSAL/ADAL/Broker PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants