mirror of https://github.com/apache/druid.git
Integration tests: print expected results in json format
This commit is contained in:
parent
083f019a48
commit
72ab621c2a
|
@ -96,8 +96,9 @@ public class TestQueryHelper
|
||||||
List<Map<String, Object>> result = queryClient.query(url, queryWithResult.getQuery());
|
List<Map<String, Object>> result = queryClient.query(url, queryWithResult.getQuery());
|
||||||
if (!QueryResultVerifier.compareResults(result, queryWithResult.getExpectedResults())) {
|
if (!QueryResultVerifier.compareResults(result, queryWithResult.getExpectedResults())) {
|
||||||
LOG.error(
|
LOG.error(
|
||||||
"Failed while executing %s actualResults : %s",
|
"Failed while executing query %s \n expectedResults: %s \n actualResults : %s",
|
||||||
queryWithResult,
|
queryWithResult.getQuery(),
|
||||||
|
jsonMapper.writeValueAsString(queryWithResult.getExpectedResults()),
|
||||||
jsonMapper.writeValueAsString(result)
|
jsonMapper.writeValueAsString(result)
|
||||||
);
|
);
|
||||||
failed = true;
|
failed = true;
|
||||||
|
|
Loading…
Reference in New Issue