Skip to content

Conversation

@SylvainJuge
Copy link
Contributor

@SylvainJuge SylvainJuge commented Dec 10, 2024

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

  • prevent adding duplicate metric assertions
  • fix wildfly datasource metrics
  • migrate wildfly assertions

.hasDataPointsWithAttributes(
attributeGroup(attribute("state", "dead")),
attributeGroup(attribute("state", "live"))))
.add(
Copy link
Contributor Author

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.

*/
@CanIgnoreReturnValue
public MetricsVerifier add(String metricName, Consumer<MetricAssert> assertion) {
if (assertions.containsKey(metricName)) {
Copy link
Contributor Author

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.

mapping:
ActiveCount:
metric: &metric connection.open
type: updowncounter
Copy link
Contributor Author

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.

@trask trask merged commit f9774f3 into open-telemetry:main Dec 10, 2024
14 checks passed
@SylvainJuge SylvainJuge deleted the wildfly-refactor-test branch December 11, 2024 08:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants