Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Start simplify system tests #6906

Merged
merged 1 commit into from May 1, 2018
Merged

Conversation

ruflin
Copy link
Member

@ruflin ruflin commented Apr 20, 2018

The idea of this PR is to start to play around with ways to simplify our system tests are remove most of the duplicated code.

  • Use check_metricset method for aerospike test
  • Add fields check to check_metricset method
  • Use parameterized for ceph and couchbase tests

Further fixes:

  • Increase timeout for k8s tests
  • Fix regexp to remove cfgwarn warnings. The removal removed all WARN / ERROR messages.
  • Fix flaky auditbeat test by skipping the error message.

@ruflin
Copy link
Member Author

ruflin commented Apr 20, 2018

This requires parameterized on the windows workers. I opened a PR for the changes.

@@ -65,7 +65,7 @@ def assert_no_logged_warnings(self, replace=None):
"""
log = self.get_log()

pattern = self.build_log_regex("[cfgwarn]")
pattern = self.build_log_regex("\[cfgwarn\]")
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was actually a bug in our code and removed all WARN and ERROR entries from the log :-(

The idea of this PR is to start to play around with ways to simplify our system tests are remove most of the duplicated code.

* Use check_metricset method for aerospike test
* Add fields check to check_metricset method
* Use parameterized for ceph and couchbase tests

Further fixes:

* Increase timeout for k8s tests
* Fix regexp to remove cfgwarn warnings. The removal removed all WARN / ERROR messages.
* Fix flaky auditbeat test by skipping the error message.
self.assertTrue("pool_disk" in evt["ceph"])

self.assert_fields_are_documented(evt)
self.check_metricset("ceph", metricset, self.get_hosts(), self.FIELDS)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❤️

@ruflin
Copy link
Member Author

ruflin commented May 1, 2018

jenkins, test this

@jsoriano jsoriano merged commit 5572087 into elastic:master May 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants