aldettinger commented on a change in pull request #3066:
URL: https://github.com/apache/camel-quarkus/pull/3066#discussion_r702756784
##########
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:
Couldn't we have a loose assertion checking that it maches "0" or
"false" ?
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]