Skip to content

Tests: Refactor TestAccExamples test to be able to skip specific files or categories #2090

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

spinillos
Copy link
Member

@spinillos spinillos commented Mar 20, 2025

It adds a small array of resources that we want to skip when we test the resources in TestAccExamples. It fixes enterprise v11.0.0 tests, not couldinstance one.

Currently we have a failing resource in enterprise because it works from Grafana v11.5.0, and this test tries to execute all from v11.0.0. It means that we are trying to execute this resource against a Grafana instance where this resource cannot work and obviously, fails.

Probably we can improve this code better in the future...

@spinillos spinillos self-assigned this Mar 20, 2025
@spinillos spinillos requested a review from a team as a code owner March 20, 2025 15:00
@spinillos spinillos marked this pull request as draft March 20, 2025 15:00
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.

@spinillos spinillos marked this pull request as ready for review March 20, 2025 15:50
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.

1 participant