diff --git a/metricbeat/tests/system/test_couchdb.py b/metricbeat/tests/system/test_couchdb.py index 9e65b5dd45c5..ddf6b459307f 100644 --- a/metricbeat/tests/system/test_couchdb.py +++ b/metricbeat/tests/system/test_couchdb.py @@ -25,11 +25,13 @@ def test_stats(self): output = self.read_output_json() self.assertTrue(len(output) >= 1) - evt = output[0] - print(evt) + event = output[0] + print(event) - self.assert_fields_are_documented(evt) + self.assertNotIn("error", event) + + self.assert_fields_are_documented(event) def get_hosts(self): return [os.getenv('COUCHDB_HOST', 'localhost') + ':' + - os.getenv('COUCHDB_PORT', '5894')] + os.getenv('COUCHDB_PORT', '5984')]