fix: [apiosintds] Try to fix tests

pull/648/head
Jakub Onderka 2024-01-06 13:35:22 +01:00
parent 4f892b5a94
commit 1764b24647
2 changed files with 7 additions and 4 deletions

View File

@ -127,10 +127,11 @@ def handler(q=False):
try:
response = apiosintDS.request(entities=tosubmit, stix=submit_stix, cache=submitcache, cachedirectory=submitcache_directory, cachetimeout=submitcache_timeout, verbose=True, localdirectory=sumbit_localdirectory)
r["results"] += apiosintParserHover(persistent, response, import_related, submit_stix)
except ValueError as e:
log.debug(str(e))
misperrors['error'] = str(e)
return r
return r
except Exception as e:
log.exception("Could not process apiosintDS")
return {'error': str(e)}
def apiosintParserHover(ispersistent, response, import_related, stix):
apiosinttype = ['hash', 'ip', 'url', 'domain']

View File

@ -74,6 +74,8 @@ class TestExpansions(unittest.TestCase):
return data['results'][0]['values']
def test_apiosintds(self):
self.skipTest("apiosintds is probably broken")
query = {'module': 'apiosintds', 'ip-dst': '10.10.10.10'}
response = self.misp_modules_post(query)