Add Rapidfire vulnerability scanner parser #11909
Draft
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Rapidfire Scan Parser
Test results
Following tests are executed against 5 .csv files in unittests/scans/rapidfire directory:
test_complex_port_formats (unittests.tools.test_rapidfire_parser.TestRapidFireParser.test_complex_port_formats)
Test parsing findings with various port formats ... ok
test_date_parsing (unittests.tools.test_rapidfire_parser.TestRapidFireParser.test_date_parsing)
Test date parsing from various formats ... ok
test_empty_rows (unittests.tools.test_rapidfire_parser.TestRapidFireParser.test_empty_rows)
Test parser handles empty rows gracefully ... ok
test_impact_formatting (unittests.tools.test_rapidfire_parser.TestRapidFireParser.test_impact_formatting)
Test impact formatting with various inputs ... ok
test_invalid_dates (unittests.tools.test_rapidfire_parser.TestRapidFireParser.test_invalid_dates)
Test parsing findings with invalid date formats ... ok
test_invalid_severity (unittests.tools.test_rapidfire_parser.TestRapidFireParser.test_invalid_severity)
Test parser handles invalid severity values ... ok
test_parse_cves (unittests.tools.test_rapidfire_parser.TestRapidFireParser.test_parse_cves)
Test CVE parsing function ... ok
test_parse_many_findings (unittests.tools.test_rapidfire_parser.TestRapidFireParser.test_parse_many_findings)
Test parsing a Rapidfire report with multiple findings ... ok
test_parse_no_findings (unittests.tools.test_rapidfire_parser.TestRapidFireParser.test_parse_no_findings)
Test parsing a RapidFire report with no findings ... ok
test_parse_one_finding (unittests.tools.test_rapidfire_parser.TestRapidFireParser.test_parse_one_finding)
Test parsing a Rapidfire report with one finding ... ok
test_parse_one_finding_impact (unittests.tools.test_rapidfire_parser.TestRapidFireParser.test_parse_one_finding_impact)
Test parsing a finding with properly formatted impact ... ok
test_port_extraction (unittests.tools.test_rapidfire_parser.TestRapidFireParser.test_port_extraction)
Test port extraction from various formats ... ok
test_reference_formatting (unittests.tools.test_rapidfire_parser.TestRapidFireParser.test_reference_formatting)
Test reference string formatting ... ok
Ran 13 tests in 0.016s
OK
Documentation
Contents of docs/content/en/connecting_your_tools/parsers/file/rapidfire.md
Rapidfire CSV Parser
CSV Field Mappings
Total Fields in CSV: 17
Summary
Additional Finding Field Settings
Processing Notes
Extra information