Skip to content

Instance discovery remains cloud local on known clouds#875

Open
bgavrilMS wants to merge 1 commit intodevfrom
bogavril/sovereign
Open

Instance discovery remains cloud local on known clouds#875
bgavrilMS wants to merge 1 commit intodevfrom
bogavril/sovereign

Conversation

@bgavrilMS
Copy link
Member

No description provided.

@bgavrilMS bgavrilMS requested a review from a team as a code owner February 19, 2026 17:57
Copy link

@githubursul githubursul left a comment

Choose a reason for hiding this comment

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

Thank you for the changes. I made some recommendations.

continue
self._test_given_host_and_tenant(host, "common")

def test_new_sovereign_hosts_should_be_known_authorities(self):

Choose a reason for hiding this comment

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

This test is not durable. The set of "new" authorities will change with time. And I also don't see how to make it truly useful, since it tests that the values have been added to the map.

Copy link
Member Author

Choose a reason for hiding this comment

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

Deleting..


@patch("msal.authority._instance_discovery")
@patch("msal.authority.tenant_discovery")
def test_new_sovereign_hosts_should_build_authority_endpoints(

Choose a reason for hiding this comment

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

This test is not durable, since the set of new authorities will change with time. But it is useful - it verifies tha tthe string added to wel-known authority makes up an authority.
I suggest that all well-known authorities from the set are tested to make it durable.


@patch("msal.authority._instance_discovery")
@patch("msal.authority.tenant_discovery")
def test_known_authority_should_use_same_host_and_skip_instance_discovery(

Choose a reason for hiding this comment

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

I think this test should do it for every well known authority, not just for a single one. Essentially, it should validate the semantic of "well-knowness"

@githubursul githubursul self-requested a review February 19, 2026 18:43
Copy link

@githubursul githubursul left a comment

Choose a reason for hiding this comment

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

Thank you for the changes. I made some recommendations. Please address before merging.

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.

2 participants

Comments