Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[chore][receiver/vcenter] Reworked Integration test for vCenter (#34201)
**Description:** <Describe what has changed.> <!--Ex. Fixing a bug - Describe the bug and how this fixes the issue. Ex. Adding a feature - Explain what this achieves.--> 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:** <Issue number if applicable> **Testing:** <Describe what testing was performed and which tests were added.> - Regenerated the expected.yaml using `scraperinttest.WriteExpected()` - Passes Integration test **Documentation:** <Describe the documentation added.>
- Loading branch information