Skip to content

Commit

Permalink
Perform some checks on the retrieved metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
jsoriano committed Jan 23, 2019
1 parent cb1528f commit 87a0da7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion metricbeat/tests/system/test_mysql.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,10 @@ def test_status(self):
evt = output[0]

self.assertItemsEqual(self.de_dot(MYSQL_FIELDS), evt.keys())
mysql_info = evt["mysql"]["status"]

status = evt["mysql"]["status"]
assert status["connections"] > 0
assert status["opened_tables"] > 0

self.assert_fields_are_documented(evt)

Expand Down

0 comments on commit 87a0da7

Please sign in to comment.