-
Notifications
You must be signed in to change notification settings - Fork 131
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
[jmx-scraper] wildfly refactor assertions #1587
Conversation
@@ -46,22 +46,6 @@ protected MetricsVerifier createMetricsVerifier() { | |||
.hasDataPointsWithAttributes( | |||
attributeGroup(attribute("state", "dead")), | |||
attributeGroup(attribute("state", "live")))) | |||
.add( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[for reviewer] duplicated test assertion for this metric.
@@ -63,6 +63,9 @@ public MetricsVerifier disableStrictMode() { | |||
*/ | |||
@CanIgnoreReturnValue | |||
public MetricsVerifier add(String metricName, Consumer<MetricAssert> assertion) { | |||
if (assertions.containsKey(metricName)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[for reviewer] this ensures that we don't have duplicated assertions for the same metric.
prefix: wildfly.jdbc. | ||
mapping: | ||
ActiveCount: | ||
metric: &metric connection.open | ||
type: updowncounter |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[for reviewer] this was actually a mistake made when creating the yaml mapping.
Description:
Migrates Wildfly integration test to use the new assertion framework.
Bonus: fixes a few bugs in the yaml definition and hbase tests that were not covered previously 🎉
Part of #1573