Skip to content

Conversation

bgavrilMS
Copy link
Member

@bgavrilMS bgavrilMS commented Sep 19, 2025

  • Reset API for test
  • Add static cache logic
  • Refactor tests to use new API

Note: this is a large PR due to refactoring of existing tests. Mostly not worth reviewing. Pls review only product code and code on which I have added comments.

@bgavrilMS bgavrilMS requested a review from a team as a code owner September 19, 2025 13:23
Comment on lines 178 to 181
UserAssignedIdentityId identity2Type = UserAssignedIdentityId.ClientId;
string identity2Id = TestConstants.ClientId2;
Copy link
Contributor

@Robbie-Microsoft Robbie-Microsoft Sep 19, 2025

Choose a reason for hiding this comment

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

Set identity2Type equal to the userAssignedIdentityId param from the DataRow.

You'll need to includeidentity2Id in the DataRow so that a ResourceId and ObjectId can be used instead of ClientId every time.

Copy link
Member Author

Choose a reason for hiding this comment

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

Done for the type.

I don't think the ID needs to set to some specific value based on the type. The ID is just a string, so as long as it's different from Identity1, it fits the purpose of this test.

Copy link
Contributor

Choose a reason for hiding this comment

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

Sure. But maybe we should rename the constant to something else, because using TestConstants.ClientId2 for theresourceId and objectId types is confusing. Could you at least include your above comment in the code?

The ID is just a string, so as long as it's different from Identity1, it fits the purpose of this test.

Copy link
Contributor

@Robbie-Microsoft Robbie-Microsoft left a comment

Choose a reason for hiding this comment

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

Please address my comments 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.

3 participants