(alerts, ignoreAlerts)
| 69 | |
| 70 | # Returns a list of the alerts which dont match the 'ignoreAlerts' - a dictionary of regex patterns |
| 71 | def strip_alerts (alerts, ignoreAlerts): |
| 72 | stripped = [] |
| 73 | for alert in alerts: |
| 74 | include = True |
| 75 | for ignore in ignoreAlerts: |
| 76 | if ( match_alerts(alert, ignore)): |
| 77 | include = False |
| 78 | break |
| 79 | if (include): |
| 80 | stripped.append(alert) |
| 81 | return stripped |
| 82 | |
| 83 | def test_zap(zapconfig): |
| 84 |
no test coverage detected