@@ -30,6 +30,8 @@ public void badJsonFile() {
3030 final String path = Paths .get ("src" , "test" , "resources" , "bad-schemas" , "bad-json" ).toString ();
3131 if (TdeUtil .templateBatchInsertSupported (client )) {
3232 RuntimeException ex = assertThrows (RuntimeException .class , () -> loader .loadSchemas (path ));
33+ assertTrue (ex .getMessage ().contains ("the following script can be run in Query Console against your content " +
34+ "database to see the TDE validation error" ), "Unexpected message: " + ex .getMessage ());
3335 FailedRequestException fre = (FailedRequestException )ex .getCause ();
3436 assertTrue (fre .getMessage ().contains ("failed to apply resource at eval: Internal Server Error" ),
3537 "Unfortunately, the FailedRequestException does not capture why the tde.templateBatchInsert failed; " +
@@ -63,6 +65,8 @@ public void badXmlFile() {
6365 final String path = Paths .get ("src" , "test" , "resources" , "bad-schemas" , "bad-xml" ).toString ();
6466 if (TdeUtil .templateBatchInsertSupported (client )) {
6567 RuntimeException ex = assertThrows (RuntimeException .class , () -> loader .loadSchemas (path ));
68+ assertTrue (ex .getMessage ().contains ("the following script can be run in Query Console against your content " +
69+ "database to see the TDE validation error" ), "Unexpected message: " + ex .getMessage ());
6670 FailedRequestException fre = (FailedRequestException )ex .getCause ();
6771 assertTrue (fre .getMessage ().contains ("failed to apply resource at eval: Internal Server Error" ),
6872 "Unfortunately, the FailedRequestException does not capture why the tde.templateBatchInsert failed; " +
0 commit comments