JiriOndrusek commented on a change in pull request #3066: URL: https://github.com/apache/camel-quarkus/pull/3066#discussion_r704150459
########## File path: integration-tests/sql/src/test/java/org/apache/camel/quarkus/component/sql/it/SqlTest.java ########## @@ -224,16 +228,20 @@ private ValidatableResponse postMapWithParam(String toUrl, String param, String .then(); } - private void route(String routeId, String operation, String expectedOutput) { - RestAssured.given() - .get("/sql/route/" + routeId + "/" + operation) - .then().statusCode(204); - - if (expectedOutput != null) { - await().atMost(5, TimeUnit.SECONDS).until(() -> RestAssured - .get("/sql/route/" + routeId + "/status") - .then() - .extract().asString(), equalTo(expectedOutput)); + @SuppressWarnings("unchecked") + public static org.hamcrest.Matcher<java.util.Map<String, Object>> matchMapIgnoringCase(Map<String, Object> map) { + Matcher m = null; + for (Map.Entry<String, Object> entry : map.entrySet()) { + if (entry.getKey().toUpperCase().equals("PROCESSED")) { + //it is boolean type and different dbs return different representations of boolean Review comment: I agree, I chose this way, because the assertions look complex. I'll try to cover boolean with it and we will see, whether its complexity is acceptable. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@camel.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org