add agregated search
This commit is contained in:
@@ -31,6 +31,13 @@ class ConfigTests(unittest.TestCase):
|
||||
public = store.update({"graylog_max_events_per_stream": "25000"})
|
||||
self.assertEqual(public["graylog_max_events_per_stream"], 25000)
|
||||
|
||||
def test_graylog_fetch_mode_and_raw_sample_events_are_saved(self):
|
||||
with tempfile.TemporaryDirectory() as directory:
|
||||
store = ConfigStore(str(Path(directory) / "config.json"))
|
||||
public = store.update({"graylog_fetch_mode": "aggregate", "graylog_raw_sample_events": "2500"})
|
||||
self.assertEqual(public["graylog_fetch_mode"], "aggregate")
|
||||
self.assertEqual(public["graylog_raw_sample_events"], 2500)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
|
||||
Reference in New Issue
Block a user