mirror of https://github.com/MISP/misp-modules
Add test for domaintools
parent
50dcc02700
commit
2b020c55ba
|
@ -7,7 +7,6 @@ import base64
|
||||||
import json
|
import json
|
||||||
import os
|
import os
|
||||||
|
|
||||||
|
|
||||||
class TestModules(unittest.TestCase):
|
class TestModules(unittest.TestCase):
|
||||||
|
|
||||||
def setUp(self):
|
def setUp(self):
|
||||||
|
@ -59,5 +58,11 @@ class TestModules(unittest.TestCase):
|
||||||
response = requests.post(self.url + "query", data=f.read()).json()
|
response = requests.post(self.url + "query", data=f.read()).json()
|
||||||
assert(response)
|
assert(response)
|
||||||
|
|
||||||
|
def test_domaintools(self):
|
||||||
|
query = {'config': {'username': 'test_user', 'api_key': 'test_key'}, 'module': 'domaintools', 'domain': 'domaintools.com'}
|
||||||
|
response = requests.post(self.url + "query", data=json.dumps(query)).json()
|
||||||
|
print(response)
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
unittest.main()
|
unittest.main()
|
||||||
|
|
Loading…
Reference in New Issue