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

[chore][receiver/vcenter] Reworked Integration test for vCenter #34201

Conversation

BominRahmani
Copy link
Contributor

Description:

The following PR works to make the integration tests a bit more deterministic by taking advantage of the govmomi simulator. Previously the integration test had the following line when comparing

pmetrictest.IgnoreResourceAttributeValue("vcenter.host.name")

Which is a bit of a hacky fix that addressed an issue where the simulator had inconsistent VM to Host assignments between test runs.

Although ignoring the resource attribute value currently works, it breaks once datacenter metrics are enabled by default

This PR hopes to make the integration tests more consistent and accurate going forward.

Link to tracking Issue:

Testing:

  • Regenerated the expected.yaml using scraperinttest.WriteExpected()
  • Passes Integration test

Documentation:

@BominRahmani BominRahmani marked this pull request as ready for review July 23, 2024 01:29
@BominRahmani BominRahmani requested a review from a team July 23, 2024 01:29
@djaglowski djaglowski merged commit c71919f into open-telemetry:main Jul 23, 2024
159 checks passed
@github-actions github-actions bot added this to the next release milestone Jul 23, 2024
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.

3 participants