mentat.daemon.component.test_storage module

class mentat.daemon.component.test_storage.TestMentatDaemonStorage(methodName='runTest')[source]

Bases: unittest.case.TestCase

idea_raw = {'Category': ['Attempt.Login'], 'ConnCount': 2, 'DetectTime': '2016-06-21 13:08:27Z', 'Format': 'IDEA0', 'ID': '4dd7cf5e-4a95-49f6-8f04-947de998012c', 'Node': [{'Type': ['Relay'], 'Name': 'cz.cesnet.mentat.warden_filer'}, {'SW': ['Kippo'], 'Type': ['Connection', 'Honeypot', 'Recon'], 'AggrWin': '00:05:00', 'Name': 'cz.uhk.apate.cowrie'}], 'Note': 'SSH login attempt', 'Source': [{'IP4': ['188.14.166.39']}], 'Target': [{'Anonymised': True, 'Proto': ['tcp', 'ssh'], 'Port': ['22'], 'IP4': ['195.113.165.128/25']}], 'WinEndTime': '2016-06-21 12:00:02Z', 'WinStartTime': '2016-06-21 11:55:02Z', '_CESNET': {'StorageTime': '2016-06-21T14:00:07Z'}}
setUp()[source]

Hook method for setting up the test fixture before exercising it.

test_01_setup()[source]

Perform the component setup tests.

test_02_process_internal()[source]

Perform the mentat.idea.internal.Idea message processing tests.

verbose = False