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

Stats: Add test for fetching stats by service and field #333

Conversation

hermanschaaf
Copy link
Contributor

Before this change, there was no test covering the /stats/service/:service_id/field/:field endpoint (docs). This endpoint gets used when both a service ID and field name are given in the options.

The surprising thing about this case is that despite being for a specific field, when specifying both a service and field, one needs to be call the GetStats method, not the GetStatsField method, due to the format of the response. The new test case provides an example of proper usage.

@Integralist Integralist added the enhancement New feature or request label Feb 21, 2022
Copy link
Collaborator

@Integralist Integralist left a comment

Choose a reason for hiding this comment

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

Thanks for adding this test case 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants