mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-14 13:56:01 +03:00
Adds expected results when a regression test failed due to unexpected debug logs
This commit is contained in:
parent
e88d2120fb
commit
c8f91ca856
@ -200,7 +200,10 @@ end:
|
||||
if (d != NULL) {
|
||||
if (!d->contains(t->debug_log)) {
|
||||
std::cout << KRED << "failed!" << RESET << std::endl;
|
||||
testRes->reason << "Debug log was not matching the expected results.";
|
||||
testRes->reason << "Debug log was not matching the " \
|
||||
<< "expected results." << std::endl;
|
||||
testRes->reason << KWHT << "Expecting: " << RESET \
|
||||
<< t->debug_log + ".";
|
||||
testRes->passed = false;
|
||||
} else if (r.status != t->http_code) {
|
||||
std::cout << KRED << "failed!" << RESET << std::endl;
|
||||
|
Loading…
x
Reference in New Issue
Block a user