Skip to content

Commit

Permalink
System test for kibana module, xpack code path (#12506)
Browse files Browse the repository at this point in the history
* System test for kibana module, xpack code path

* Adding skip annotation for integration tests
  • Loading branch information
ycombinator authored Jun 18, 2019
1 parent 4d9b1d0 commit 15ec133
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions metricbeat/tests/system/test_kibana.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,28 @@ def test_status(self):

self.assert_fields_are_documented(evt)

@unittest.skipUnless(metricbeat.INTEGRATION_TESTS, "integration test")
def test_xpack(self):
"""
kibana-xpack module tests
"""
self.render_config_template(modules=[{
"name": "kibana",
"metricsets": [
"stats"
],
"hosts": self.get_hosts(),
"period": "1s",
"extras": {
"xpack.enabled": "true"
}
}])

proc = self.start_beat()
self.wait_until(lambda: self.output_lines() > 0)
proc.check_kill_and_wait()
self.assert_no_logged_warnings()

def get_hosts(self):
return [self.compose_host("kibana")]

Expand Down

0 comments on commit 15ec133

Please sign in to comment.