Actions
Feature #5262
openrun.py: should tell which fields are mismatching
Effort:
Difficulty:
Label:
Python
Description
Something like
Sub task 1
----------
email.to[0]: <recipient@example.com>
event_type: smtp
pcap_cnt: 89 <---- Mismatch
proto: TCP
smtp.helo: client-1016363.example.int
tx_id: 0
would be nice since it'll help us see which fields exactly to look at unless the entire event is missing.
Idea proposed by: Victor Julien
Updated by Victor Julien over 2 years ago
- Assignee changed from Community Ticket to Shivani Bhardwaj
Updated by Shivani Bhardwaj 11 months ago
This turned out harder than expected bc the match object does not carry the context.
The way we go about it is:
1. Go over each event and try to match against a filter, return immediately in case of a mismatch.
2. If there was a match, increment the match count.
3. Check if the match count is the expected count in the test.
Actions