Skip to content

Commit

Permalink
Assert size of index pattern document is less than 1 MiB
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewkroh committed Jul 22, 2020
1 parent d657502 commit 725c12c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions libbeat/tests/system/beat/common_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ def test_export_index_pattern(self):
output = self.run_export_cmd("index-pattern")
js = json.loads(output)
assert "objects" in js
size = len(output.encode('utf-8'))
assert size < 1024*1024, "Kibana index pattern must be less than 1MiB " \
"to keep the Beat setup request size below " \
"Kibana's server.maxPayloadBytes."

@unittest.skipUnless(INTEGRATION_TESTS, "integration test")
def test_export_config(self):
Expand Down

0 comments on commit 725c12c

Please sign in to comment.