(**overrides)
| 10 | |
| 11 | |
| 12 | def _base_alert(**overrides): |
| 13 | alert = { |
| 14 | 'alertRef': '40018-1', |
| 15 | 'risk': '2', |
| 16 | 'confidence': '2', |
| 17 | 'name': 'SQL Injection', |
| 18 | 'description': 'Potential SQL injection detected', |
| 19 | 'url': 'https://example.test/api/items?id=1', |
| 20 | 'method': 'GET', |
| 21 | 'param': 'id', |
| 22 | 'attack': "' OR '1'='1", |
| 23 | 'evidence': 'SQL syntax near ...', |
| 24 | 'reference': '', |
| 25 | 'pluginId': '40018', |
| 26 | 'cweid': '89', |
| 27 | 'wascid': '19', |
| 28 | } |
| 29 | alert.update(overrides) |
| 30 | return alert |
| 31 | |
| 32 | |
| 33 | def test_parse_zap_alert_filters_explicit_false_positive_confidence(): |
no test coverage detected