Skip to content

Commit eef4740

Browse files
Copilotgladjohn
andauthored
Add exact correlation ID assertion alongside UUID format validation in IMDS test
Agent-Logs-Url: https://github.com/AzureAD/microsoft-authentication-library-for-java/sessions/a002e01d-801c-4ba9-8cf4-0d0ad3b9a0c9 Co-authored-by: gladjohn <90415114+gladjohn@users.noreply.github.com>
1 parent 7170925 commit eef4740

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

msal4j-sdk/src/test/java/com/microsoft/aad/msal4j/ManagedIdentityTests.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -707,6 +707,7 @@ void managedIdentityTest_RetrySucceedsAfterFailure() throws Exception {
707707
HttpRequest capturedRequest = captor.getValue();
708708
assertEquals(EXPECTED_SKU, capturedRequest.headers().get("x-client-SKU"));
709709
assertNotNull(capturedRequest.headers().get("x-client-VER"));
710+
assertEquals(TEST_CORRELATION_ID, capturedRequest.headers().get("x-ms-client-request-id"));
710711
assertDoesNotThrow(() -> UUID.fromString(capturedRequest.headers().get("x-ms-client-request-id")));
711712
}
712713

0 commit comments

Comments
 (0)