Improved the overview graphs. and MCP fetching poll
This commit is contained in:
@@ -35,6 +35,13 @@ class GraylogSourceTests(unittest.TestCase):
|
||||
GraylogStreamSource(client, "vpn").fetch(range_seconds=86_400)
|
||||
self.assertEqual(client.arguments["range_seconds"], 86_400)
|
||||
|
||||
def test_marks_stream_truncated_when_max_events_reached(self):
|
||||
client = _Client()
|
||||
events, status = GraylogStreamSource(client, "vpn").fetch(max_events=2)
|
||||
self.assertEqual(len(events), 2)
|
||||
self.assertEqual(client.arguments["limit"], 2)
|
||||
self.assertTrue(status["truncated"])
|
||||
|
||||
def test_requests_selected_profile_fields(self):
|
||||
client = _Client()
|
||||
GraylogStreamSource(client, "windows", profile_fields=("TargetUserName", "EventID")).fetch()
|
||||
|
||||
Reference in New Issue
Block a user