Implemented the next multi-source detection layer in this repository.
This commit is contained in:
@@ -30,6 +30,12 @@ class GraylogSourceTests(unittest.TestCase):
|
||||
self.assertIn("client", client.arguments["fields"])
|
||||
self.assertEqual(client.arguments["offset"], 0)
|
||||
|
||||
def test_requests_selected_profile_fields(self):
|
||||
client = _Client()
|
||||
GraylogStreamSource(client, "windows", profile_fields=("TargetUserName", "EventID")).fetch()
|
||||
self.assertIn("targetusername", client.arguments["fields"])
|
||||
self.assertIn("eventid", client.arguments["fields"])
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
|
||||
Reference in New Issue
Block a user