@@ -357,7 +357,7 @@ def test_passivetotal(self):
357
357
query ["config" ] = self .configs [module_name ]
358
358
response = self .misp_modules_post (query )
359
359
try :
360
- self .assertEqual ( self . get_values ( response ), ' circl.lu' )
360
+ self .assertIn ( 'www. circl.lu', response . json ()[ 'results' ][ 0 ][ 'values' ] )
361
361
except Exception :
362
362
self .assertIn (self .get_errors (response ), ('We hit an error, time to bail!' , 'API quota exceeded.' ))
363
363
else :
@@ -401,7 +401,7 @@ def test_rbl(self):
401
401
query = {"module" : "rbl" , "ip-src" : "8.8.8.8" }
402
402
response = self .misp_modules_post (query )
403
403
try :
404
- self .assertTrue (self .get_values (response ).startswith ('8.8.8.8.query.senderbase .org' ))
404
+ self .assertTrue (self .get_values (response ).startswith ('8.8.8.8.bl.spamcannibal .org' ))
405
405
except Exception :
406
406
self .assertEqual (self .get_errors (response ), "No data found by querying known RBLs" )
407
407
@@ -441,7 +441,7 @@ def test_shodan(self):
441
441
if module_name in self .configs :
442
442
query ['config' ] = self .configs [module_name ]
443
443
response = self .misp_modules_post (query )
444
- self .assertIn ( "circl.lu" , self .get_values (response ))
444
+ self .assertEqual ( self .get_object (response ), 'ip-api-address' )
445
445
else :
446
446
response = self .misp_modules_post (query )
447
447
self .assertEqual (self .get_errors (response ), 'Shodan authentication is missing' )
0 commit comments