Add a skeleton script for collecting linux audit longs
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"test_01.py": true
|
||||
}
|
||||
Binary file not shown.
File diff suppressed because it is too large
Load Diff
@@ -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
|
||||
@@ -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