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

Folder/Dashboard Permissions Tests: Use OpenAPI #1232

Merged
merged 1 commit into from
Dec 15, 2023

Conversation

julienduchesne
Copy link
Member

Also:

  • Make the tests for these two resource roughly the same. These resources have the same interface
  • Actually test that permissions are applied in Grafana. The current checks were only fetching without checking. But you can fetch permissions on a folder/dashboard without any permissions
  • For dashboard, check that either setting empty permissions or deleting the resource actually removes the permissions

Copy link

In order to lower resource usage and have a faster runtime, PRs will not run Cloud tests automatically.
To do so, a Grafana Labs employee must trigger the cloud acceptance tests workflow manually.

Also:
- Make the tests for these two resource roughly the same. These resources have the same interface
- Actually test that permissions are applied in Grafana. The current checks were only fetching without checking. But you can fetch permissions on a folder/dashboard without any permissions
- For dashboard, check that either setting empty permissions or deleting the resource actually removes the permissions
@julienduchesne julienduchesne force-pushed the julienduchesne/permissions-tests-openapi branch from d3cb424 to cd9fe4b Compare December 15, 2023 03:08
@julienduchesne julienduchesne marked this pull request as ready for review December 15, 2023 03:12
@julienduchesne julienduchesne requested a review from a team as a code owner December 15, 2023 03:12
@julienduchesne julienduchesne merged commit 341a1f4 into master Dec 15, 2023
24 checks passed
@julienduchesne julienduchesne deleted the julienduchesne/permissions-tests-openapi branch December 15, 2023 13:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants