-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
[Metricbeat] Migrate couchbase cluster & pool metricset to new data generation #11112
Conversation
@berfinsari Thanks to your work, this is now possible 🎉 |
@ruflin LGTM, just one question: data.json is generated by _meta/testdata/docs.json here, so does docs.json-expected.json still needed/useful here? |
Sorta going off what @kaiyan-sheng asked, should we handle the docs.json files differently? Considering how many json files we'll have floating around as we migrate more tests to this, I wonder if there's a more clever solution to Otherwise LGTM, but do we want to update the ReporterV2 error handling in the same PR? |
@kaiyan-sheng I would say yes. There is a difference here. If the @fearful-symmetry I'm sure there are better ways. Perhaps you can open an issue to discuss it with a suggestion? For the error handling: If you prefer, I can also put it into a different PR. |
…eneration The data.json is now generated based on example JSON documents. In case they change, it means the code change in some way. This will make it much easier to detect changes. Also the basic tests for the cluster are now covered by the new testing. The error handling moved over to the new error interface for simplicity.
@fearful-symmetry I remove the logging change, we can tackle it in a separate PR. |
Tested locally. Everything ok |
The data.json is now generated based on example JSON documents. In case they change, it means the code change in some way. This will make it much easier to detect changes.
Also the basic tests for the cluster are now covered by the new testing.
The error handling moved over to the new error interface for simplicity.