Add a skeleton script for collecting linux audit longs

This commit is contained in:
Orien Vandenbergh
2016-11-01 17:25:31 -06:00
parent 3e0118678d
commit a6f1395dd7
12 changed files with 21792 additions and 0 deletions

View File

@ -0,0 +1,3 @@
{
"test_01.py": true
}

View File

21011
ghetto/audit/tests/audit.log Normal file

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,5 @@
import os
import sys
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))
from audit2json import Audit2JSON

View File

@ -0,0 +1,10 @@
"""
"""
from .context import Audit2JSON
def test_get_entry():
stream = Audit2JSON("tests/audit.log")
entry = next(stream.get_entry(),None)
assert entry != None
print entry