[Visualizations] Add API integration tests #161038
Labels
impact:high
Addressing this issue will have a high level of impact on the quality/strength of our product.
loe:medium
Medium Level of Effort
Team:Visualizations
Visualization editors, elastic-charts and infrastructure
technical debt
Improvement of the software architecture and operational architecture
Describe the feature:
With #157043, all our content types got custom API layers. While (many of) these APIs are tested implicitly with the existing functional test suite, we could consider API integration tests (making requests and verifying the responses without involving the UI).
Other teams in Kibana that maintain their own endpoints employ this strategy to verify the behavior of the API layer relatively inexpensively (e.g. https://github.com/elastic/kibana/blob/main/x-pack/test/api_integration/apis/ml/jobs/force_start_datafeeds.ts).
Could also consider how this intersects with the docs team's requests to document our APIs via the OpenAPI spec.
The text was updated successfully, but these errors were encountered: