bug: LogsCheck can't be supported to ignore partial match of the error logs.
In our situation, we can't ignore partial matching using DVE-2018-0001
ignore key when we got Mar 26 09:51:32 compute01 systemd-resolved[1719]: message repeated 2 times: [ Server returned error NXDOMAIN, mitigating potential DNS violation DVE-2018-0001, retrying transaction with reduced feature level UDP.]
string.
The reason is that it compares "error string" and "ignore string" by using in
operator.
The in
operator detect perfect matching, so we should use find function instead of in
operator.
https://git.rlab.io/system/healthcheck/blob/master/heruche/tests/logs_check.py#L85