Analyzer improvements

This commit is contained in:
Jason Ertel
2022-04-08 16:57:40 -04:00
parent 44e318e046
commit ebcfbaa06d
27 changed files with 521 additions and 9 deletions

View File

@@ -23,6 +23,11 @@ class TestHelpersMethods(unittest.TestCase):
data = helpers.loadMetadata(input)
self.assertEqual(data["name"], "Urlhaus")
def test_loadConfig(self):
dir = os.path.dirname(os.path.realpath(__file__))
data = helpers.loadConfig(dir + "/virustotal/virustotal.yaml")
self.assertEqual(data["base_url"], "https://www.virustotal.com/api/v3/search?query=")
def test_parseArtifact(self):
input = '{"value":"foo","artifactType":"bar"}'
data = helpers.parseArtifact(input)