Skip to content

Conversation

@Robbie-Microsoft
Copy link
Contributor

@Robbie-Microsoft Robbie-Microsoft commented Sep 8, 2025

I've added additional acceptance tests for bearer and mtls pop tokens, and done a major refactoring of the unit tests.

@Robbie-Microsoft Robbie-Microsoft changed the title ImdsV2: Bearer Token - Additional Acceptance Tests ImdsV2: Additional Acceptance Tests Sep 8, 2025
@Robbie-Microsoft Robbie-Microsoft marked this pull request as ready for review September 9, 2025 20:33
@Robbie-Microsoft Robbie-Microsoft requested a review from a team as a code owner September 9, 2025 20:33
.WithCsrFactory(_testCsrFactory);

// Disabling shared cache options to avoid cross test pollution.
miBuilder.Config.AccessorOptions = null;
Copy link
Member

Choose a reason for hiding this comment

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

Don't we have a "ResetCachesForTest" API now? If not, do we have a work item for it ? It's part of the static caching of the MSI source story.

Copy link
Contributor Author

@Robbie-Microsoft Robbie-Microsoft Sep 10, 2025

Choose a reason for hiding this comment

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

Per offline discussion, will be addressed in a future PR

}
#endregion

[TestMethod]
Copy link
Contributor

Choose a reason for hiding this comment

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

can we also add negative tests that simulate service failures?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Per offline discussion, will be addressed in a future PR

Copy link
Contributor

Choose a reason for hiding this comment

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

ok

@Robbie-Microsoft Robbie-Microsoft merged commit 8182762 into rginsburg/msiv2_entra_token_request_headers Sep 11, 2025
3 checks passed
@Robbie-Microsoft Robbie-Microsoft deleted the rginsburg/msiv2_acceptance_tests branch September 11, 2025 19:35
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.

4 participants