Improved the overview graphs. and MCP fetching poll
This commit is contained in:
@@ -23,6 +23,14 @@ class ConfigTests(unittest.TestCase):
|
||||
public = store.update({"graylog_range_seconds": "7200"})
|
||||
self.assertEqual(public["graylog_range_seconds"], 7200)
|
||||
|
||||
def test_graylog_max_events_per_stream_is_numeric_and_bounded(self):
|
||||
with tempfile.TemporaryDirectory() as directory:
|
||||
store = ConfigStore(str(Path(directory) / "config.json"))
|
||||
public = store.update({"graylog_max_events_per_stream": "0"})
|
||||
self.assertEqual(public["graylog_max_events_per_stream"], 1)
|
||||
public = store.update({"graylog_max_events_per_stream": "25000"})
|
||||
self.assertEqual(public["graylog_max_events_per_stream"], 25000)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
|
||||
Reference in New Issue
Block a user