grafana / plugin-tools

Create Grafana plugins with ease.
https://grafana.com/developers/plugin-tools/
Apache License 2.0
57 stars 31 forks source link

Feat: Make it possible to switch admin client user #934

Closed sunker closed 4 months ago

sunker commented 4 months ago

Which areas does this feature request relate to

Problem

In a few places in the code, plugin-e2e uses the Grafana API to administrate users, data sources etc. Before this PR, the Grafana API was always called on behalf of the admin:admin user (the default server admin account) as it has all the necessary permissions. This is working fine in most cases, but in the test environment for the SLO app, this account doesn't exist so they're getting 401 errors when setting up users (more details on how to create users here).

Solution

Should be possible to override the default admin user

Alternatives

No response

Additional context

No response

Are you interested in contributing the solution?

grafana-plugins-platform-bot[bot] commented 4 months ago

:rocket: Issue was released in @grafana/plugin-e2e@1.3.0 :rocket: