Add a skeleton script for collecting linux audit longs
This commit is contained in:
3
ghetto/audit/tests/.cache/v/cache/lastfailed
vendored
Normal file
3
ghetto/audit/tests/.cache/v/cache/lastfailed
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
"test_01.py": true
|
||||
}
|
0
ghetto/audit/tests/__init__.py
Normal file
0
ghetto/audit/tests/__init__.py
Normal file
BIN
ghetto/audit/tests/__pycache__/test_01.cpython-27-PYTEST.pyc
Normal file
BIN
ghetto/audit/tests/__pycache__/test_01.cpython-27-PYTEST.pyc
Normal file
Binary file not shown.
21011
ghetto/audit/tests/audit.log
Normal file
21011
ghetto/audit/tests/audit.log
Normal file
File diff suppressed because it is too large
Load Diff
5
ghetto/audit/tests/context.py
Normal file
5
ghetto/audit/tests/context.py
Normal 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
|
10
ghetto/audit/tests/test_01.py
Normal file
10
ghetto/audit/tests/test_01.py
Normal 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
|
||||
|
Reference in New Issue
Block a user