Files
theHarvester/tests
L1ghtn1ng 4f60fc9e8b fix(discovery): report hunter, tomba, gitlab, wayback, certspotter failures correctly
Transport errors, non-2xx responses, and malformed bodies were returned
as None, which the shared source runner maps to a completed run. Classify
them with the shared provider_http_error convention so failures surface
as failed/rate-limited outcomes and partial data is preserved:

- hunter/tomba: _fetch_json returns dict or SourceExecutionReport;
  malformed-dict shapes still map to invalid-response
- gitlab: unreachable 'if not response' guard replaced; [None] transport
  failures report transport-error instead of invalid-response
- waybackarchive: transport errors no longer masquerade as end-of-data;
  _search_pattern returns explicit SourceExecutionReport outcomes and
  HTTP failures use provider_http_error
- certspotter: transport failures distinguished from invalid responses;
  HTTP failures classified per the shared convention

Contract tests updated to assert the resulting reports and to mock the
metadata-shaped responses the shared transport actually delivers.
2026-09-17 01:30:55 +01:00
..