Skip to content

Commit

Permalink
Add tests for origin and sources
Browse files Browse the repository at this point in the history
  • Loading branch information
pabloperezj committed Sep 20, 2024
1 parent 3e1730f commit 7bd9772
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ def test_fetch_indicators_command(mocker):
}
assert indicator['value'] == '9ceef6e3194cb4babe53863b686a012be4a1b368aca7c108df80b77adb5a1c25'
assert indicator['value'] == indicator['fields']['sha256']
assert indicator['origin'] == 'hunting'
assert indicator['sources'] == '[hunting_ruleset] Malware Families YARA ruleset'
elif indicator['type'] == FeedIndicatorType.Domain:
assert set(indicator['fields'].keys()) == {
'admincountry', 'adminname', 'adminemail', 'adminphone', 'registrantcountry',
Expand Down

0 comments on commit 7bd9772

Please sign in to comment.