-
-
Notifications
You must be signed in to change notification settings - Fork 58
Open
Description
I think it would be really useful to log which condition is failing the rule as a whole. For example, lets say I have
URI uri = UriBuilder.fromUri("http://localhost:{PORT}/authzforce-ce/domains").port(port).build();
whenHttp(server)
.match(
get(f.toString()),
parameter("externalId", domain))
.then(ok());
and fails when I do GET http://localhost:8080/authzforce-ce/domains?externalId=1
but if I have
URI uri = UriBuilder.fromUri("http://localhost:{PORT}/authzforce-ce/domains").port(port).build();
whenHttp(server)
.match(
// get(f.toString()),
parameter("externalId", domain))
.then(ok());
it succeeds. Then I'd want to know what part is causing it to fail.
NOTE: this is a hypothetical simple case, I only put it as an example (in reality I get 200 😛) but in more complex cases like POST with multiple conditions it would be useful
mkotsur
Metadata
Metadata
Assignees
Labels
No labels