@@ -501,7 +501,7 @@ def test_perform_successful_pre_detection_with_custom_field_copied(self):
501501 "severity" : "critical" ,
502502 "mitre" : ["attack.test1" , "attack.test2" ],
503503 "case_condition" : "directly" ,
504- "copy_fields_to_detector_event " : {"custom" , "winlog.custom" },
504+ "copy_fields_to_detection_event " : {"custom" , "winlog.custom" },
505505 },
506506 "description" : "Test rule one" ,
507507 }
@@ -547,7 +547,7 @@ def test_perform_successful_pre_detection_with_nothing_extra_copied(self):
547547 "severity" : "critical" ,
548548 "mitre" : ["attack.test1" , "attack.test2" ],
549549 "case_condition" : "directly" ,
550- "copy_fields_to_detector_event " : set (),
550+ "copy_fields_to_detection_event " : set (),
551551 },
552552 "description" : "Test rule one" ,
553553 }
@@ -581,7 +581,7 @@ def test_perform_successful_pre_detection_with_nothing_extra_copied(self):
581581 document , expected , detection_results .data , expected_detection_results
582582 )
583583
584- def test_copy_fields_to_detector_event_validation_supports_lists (self ):
584+ def test_copy_fields_to_detection_event_validation_supports_lists (self ):
585585 self ._load_rule (
586586 {
587587 "filter" : "*" ,
@@ -591,13 +591,13 @@ def test_copy_fields_to_detector_event_validation_supports_lists(self):
591591 "severity" : "critical" ,
592592 "mitre" : ["attack.test1" , "attack.test2" ],
593593 "case_condition" : "directly" ,
594- "copy_fields_to_detector_event " : ["host.name" ],
594+ "copy_fields_to_detection_event " : ["host.name" ],
595595 },
596596 "description" : "Test rule one" ,
597597 }
598598 )
599599
600- def test_copy_fields_to_detector_event_validation_supports_sets (self ):
600+ def test_copy_fields_to_detection_event_validation_supports_sets (self ):
601601 self ._load_rule (
602602 {
603603 "filter" : "*" ,
@@ -607,7 +607,7 @@ def test_copy_fields_to_detector_event_validation_supports_sets(self):
607607 "severity" : "critical" ,
608608 "mitre" : ["attack.test1" , "attack.test2" ],
609609 "case_condition" : "directly" ,
610- "copy_fields_to_detector_event " : {"host.name" },
610+ "copy_fields_to_detection_event " : {"host.name" },
611611 },
612612 "description" : "Test rule one" ,
613613 }
@@ -627,7 +627,7 @@ def test_copy_fields_to_detector_event_validation_supports_sets(self):
627627 "link" ,
628628 ],
629629 )
630- def test_copy_fields_to_detector_event_fails_on_illegal_fields (self , field_name : str ):
630+ def test_copy_fields_to_detection_event_fails_on_illegal_fields (self , field_name : str ):
631631 with pytest .raises (ValueError , match = "Illegal fields" ) as exc_info :
632632 self ._load_rule (
633633 {
@@ -638,7 +638,7 @@ def test_copy_fields_to_detector_event_fails_on_illegal_fields(self, field_name:
638638 "severity" : "critical" ,
639639 "mitre" : ["attack.test1" , "attack.test2" ],
640640 "case_condition" : "directly" ,
641- "copy_fields_to_detector_event " : {field_name },
641+ "copy_fields_to_detection_event " : {field_name },
642642 },
643643 "description" : "Test rule one" ,
644644 }
0 commit comments