MCPcopy
hub / github.com/zaproxy/zaproxy / strip_alerts

Function strip_alerts

python/scripts/generic-pytest/test_zap.py:71–81  ·  view source on GitHub ↗
(alerts, ignoreAlerts)

Source from the content-addressed store, hash-verified

69
70# Returns a list of the alerts which dont match the 'ignoreAlerts' - a dictionary of regex patterns
71def 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
83def test_zap(zapconfig):
84

Callers 1

test_zapFunction · 0.85

Calls 2

match_alertsFunction · 0.85
appendMethod · 0.45

Tested by

no test coverage detected