-
Notifications
You must be signed in to change notification settings - Fork 379
ImdsV2: Additional Acceptance Tests #5465
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
ImdsV2: Additional Acceptance Tests #5465
Conversation
tests/Microsoft.Identity.Test.Unit/ManagedIdentityTests/ImdsV2Tests.cs
Outdated
Show resolved
Hide resolved
tests/Microsoft.Identity.Test.Unit/ManagedIdentityTests/ImdsV2Tests.cs
Outdated
Show resolved
Hide resolved
| .WithCsrFactory(_testCsrFactory); | ||
|
|
||
| // Disabling shared cache options to avoid cross test pollution. | ||
| miBuilder.Config.AccessorOptions = null; |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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] |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok
8182762
into
rginsburg/msiv2_entra_token_request_headers
I've added additional acceptance tests for bearer and mtls pop tokens, and done a major refactoring of the unit tests.