What problem does it solve?
This Skill simplifies the creation, debugging, and review of API tests for Kibana's Scout framework, ensuring robust and efficient testing of API endpoints.
Core Features & Use Cases
- API Test Creation: Write and structure API tests using the
apiTest fixture.
- Authentication Handling: Choose between API keys (
requestAuth) for api/* endpoints and cookies (samlAuth) for internal/* endpoints.
- Assertion Library: Utilize custom matchers for status codes, headers, and response bodies.
- Service Integration: Leverage
apiServices for server-side helpers and kbnClient for direct Elasticsearch interaction.
- Use Case: When developing a new API endpoint in Kibana, use this Skill to write comprehensive tests that cover authentication, request/response validation, and side effects.
Quick Start
Use the scout-api-testing skill to write a new API test for the /api/my_plugin/users endpoint, authenticating with an API key.