This is an automated email from the ASF dual-hosted git repository.
ndipiazza pushed a commit to branch tika-grpc-3x-features
in repository https://gitbox.apache.org/repos/asf/tika.git
The following commit(s) were added to refs/heads/tika-grpc-3x-features by this
push:
new f96cb0679 TIKA-4272: add another assertion
f96cb0679 is described below
commit f96cb0679aa7e5dad1ffb67307803dffd73358b5
Author: Nicholas DiPiazza <[email protected]>
AuthorDate: Fri Nov 1 13:49:08 2024 -0500
TIKA-4272: add another assertion
---
.../fetchers/microsoftgraph/config/AadCredentialConfigBaseTest.java | 3 +++
1 file changed, 3 insertions(+)
diff --git
a/tika-pipes/tika-fetchers/tika-fetcher-microsoft-graph/src/test/java/org/apache/tika/pipes/fetchers/microsoftgraph/config/AadCredentialConfigBaseTest.java
b/tika-pipes/tika-fetchers/tika-fetcher-microsoft-graph/src/test/java/org/apache/tika/pipes/fetchers/microsoftgraph/config/AadCredentialConfigBaseTest.java
index f54406fbb..1935d4950 100644
---
a/tika-pipes/tika-fetchers/tika-fetcher-microsoft-graph/src/test/java/org/apache/tika/pipes/fetchers/microsoftgraph/config/AadCredentialConfigBaseTest.java
+++
b/tika-pipes/tika-fetchers/tika-fetcher-microsoft-graph/src/test/java/org/apache/tika/pipes/fetchers/microsoftgraph/config/AadCredentialConfigBaseTest.java
@@ -59,5 +59,8 @@ class AadCredentialConfigBaseTest {
String str = new
ObjectMapper().writeValueAsString(microsoftGraphFetcherConfig);
MicrosoftGraphFetcherConfig backAgain = new
ObjectMapper().readValue(str, MicrosoftGraphFetcherConfig.class);
Assertions.assertEquals(microsoftGraphFetcherConfig.getCredentials().getClientId(),
backAgain.getCredentials().getClientId());
+ ClientCertificateCredentialsConfig backAgainCreds =
(ClientCertificateCredentialsConfig) backAgain.getCredentials();
+
Assertions.assertEquals(microsoftGraphFetcherConfig.getCredentials().getClientId(),
backAgain.getCredentials().getClientId());
+ Assertions.assertEquals("nick", new
String(backAgainCreds.getCertificateBytes()));
}
}