mentat.daemon.component.test_storage module

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

Bases: 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'], 'AggrWin': '00:05:00', 'Name': 'cz.uhk.apate.cowrie', 'Type': ['Connection', 'Honeypot', 'Recon']}], 'Note': 'SSH login attempt', 'Source': [{'IP4': ['188.14.166.39']}], 'Target': [{'Proto': ['tcp', 'ssh'], 'IP4': ['195.113.165.128/25'], 'Port': ['22'], 'Anonymised': True}], 'WinEndTime': '2016-06-21 12:00:02Z', 'WinStartTime': '2016-06-21 11:55:02Z', '_Mentat': {'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