File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -74,7 +74,6 @@ def __extract_finding(
7474 ):
7575 msg = "Vital information is missing for this finding! Skipping this finding!"
7676 raise ValueError (msg )
77-
7877 finding = Finding (
7978 test = test ,
8079 title = "Weak username / password combination found for " + host ,
@@ -91,7 +90,7 @@ def __extract_finding(
9190 + password ,
9291 static_finding = False ,
9392 dynamic_finding = True ,
94- service = metadata .service_type ,
93+ component_name = metadata .service_type ,
9594 )
9695 if settings .V3_FEATURE_LOCATIONS :
9796 finding .unsaved_locations = [LocationData .url (host = host , port = port )]
Original file line number Diff line number Diff line change @@ -128,6 +128,7 @@ def __assertFindingEquals(
128128 actual_finding .description )
129129 self .assertFalse (actual_finding .static_finding )
130130 self .assertTrue (actual_finding .dynamic_finding )
131+ self .assertEqual (actual_finding .component_name , "http-post-form" )
131132 # The following fields should be not be set from this parser.
132133 self .assertIsNone (actual_finding .unique_id_from_tool )
133134 self .assertEqual (self .get_unsaved_locations (actual_finding )[0 ].host , finding_url )
You can’t perform that action at this time.
0 commit comments