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

Use golden files with haproxy test #4528

Merged
merged 2 commits into from Mar 25, 2024
Merged

Use golden files with haproxy test #4528

merged 2 commits into from Mar 25, 2024

Conversation

atoulme
Copy link
Contributor

@atoulme atoulme commented Mar 25, 2024

No description provided.

@atoulme atoulme requested review from a team as code owners March 25, 2024 05:32
)
}

func checkGoldenFile(t *testing.T, configFile string, expectedFilePath string, options ...pmetrictest.CompareMetricsOption) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it make sense to move this function to some central location that can be reused? It looks like it's being defined for every component, but maybe there are differences I'm missing.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, of course. I wanted my PRs to be independent, but we can refactor.

tests/receivers/smartagent/haproxy/haproxy_test.go Outdated Show resolved Hide resolved
Co-authored-by: Curtis Robert <crobert@splunk.com>
@atoulme atoulme merged commit 7e16cce into main Mar 25, 2024
23 of 25 checks passed
@delete-merged-branch delete-merged-branch bot deleted the haproxy_golden branch March 25, 2024 18:40
@github-actions github-actions bot locked and limited conversation to collaborators Mar 25, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants