How to test a data dource plugin
The following articles give some tips and tricks on how to test data source plugins, including example tests to cover common scenarios. To write end-to-end tests similar to the ones in this guide, you'll need your data source to be configured using provisioning. If you haven't already checked out our guide on how to set up the required resources, do that first.
- Test configurationsTesting the configuration editor of backend and frontend data sources with valid and invalid configuration
- Test data queriesTesting the query editor and the execution of data queries
- Test variable queriesTest a custom variable query editor and the execution of variable queries.
- Test annotation queriesTest a custom annotation editor and the execution of annotation queries.
- Test alert queriesTest alert queries to ensure the plugin is compatible with alerting