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: adding test coverage for NewClientMetrics & NewEndpointMetrics #743

Merged
merged 2 commits into from
Jun 13, 2024

Conversation

zhaque44
Copy link
Contributor

@zhaque44 zhaque44 commented Jun 13, 2024

This PR enhances test coverage for the metrics package. Tests validate the proper initialization of endpoint and client metrics & scenarios with a Prometheus registry. Each test ensures:

NewEndpointMetrics and NewClientMetrics

are both correctly instantiated and their components (requestsTotal, requestsFailed, argoCDRequestsTotal, argoCDRequestsErrorsTotal, kubeAPIRequestsTotal, kubeAPIRequestsErrorsTotal) are properly initialized.

Signed-off-by: zhaque44 <haque.zubair@gmail.com>
Signed-off-by: zhaque44 <haque.zubair@gmail.com>
Copy link
Contributor

@jannfis jannfis left a comment

Choose a reason for hiding this comment

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

Nice, thank you!

LGTM.

@jannfis jannfis merged commit cd97393 into argoproj-labs:master Jun 13, 2024
10 checks passed
@zhaque44 zhaque44 deleted the metrics-test-coverage branch June 14, 2024 01:18
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.

None yet

2 participants