Skip to content
This repository was archived by the owner on Sep 16, 2024. It is now read-only.

Commit a54159f

Browse files
committed
Verifying Java Client now throws nice error when TDE fails validation
This is due to a fix in Java Client 6.1.0 so that the client now correctly processes the error thrown by /v1/eval.
1 parent 297a7d4 commit a54159f

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/test/java/com/marklogic/client/ext/schemasloader/impl/ValidateTdeTemplatesTest.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,9 @@ public void badXmlFile() {
6868
assertTrue(ex.getMessage().contains("the following script can be run in Query Console against your content " +
6969
"database to see the TDE validation error"), "Unexpected message: " + ex.getMessage());
7070
FailedRequestException fre = (FailedRequestException)ex.getCause();
71-
assertTrue(fre.getMessage().contains("failed to apply resource at eval: Internal Server Error"),
72-
"Unfortunately, the FailedRequestException does not capture why the tde.templateBatchInsert failed; " +
73-
"JAVA-224 has been opened to improve this; unexpected message: " + fre.getMessage());
74-
71+
assertTrue(fre.getServerMessage().contains("TDE-REPEATEDCOLUMN"), "As of Java Client 6.1.0, errors from " +
72+
"the /v1/eval endpoint are expected to be processed correctly by the Java Client so that the user sees " +
73+
"the actual error; actual error message: " + fre.getServerMessage());
7574
} else {
7675
try {
7776
loader.loadSchemas(path);

0 commit comments

Comments
 (0)