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

Add WithoutResource test helper #1169

Merged
merged 1 commit into from
Nov 20, 2023

Conversation

julienduchesne
Copy link
Member

We have to test that resources can be destroyed. However, for org tests, since we destroy everything (including the org), the test is bad since destroying the org destroys everything within

To help with this, this new helper will allow to add a step in org tests where we keep the org, but remove the actual resource on which we want to test deletion

To test the behavior, I made the role resource tests use this instead of a if and I added a test step for the team resource

We have to test that resources can be destroyed. However, for org tests, since we destroy everything (including the org), the test is bad since destroying the org destroys everything within

To help with this, this new helper will allow to add a step in org tests where we keep the org, but remove the actual resource on which we want to test deletion

To test the behavior, I made the role resource tests use this instead of a `if` and I added a test step for the team resource
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.

@julienduchesne julienduchesne marked this pull request as ready for review November 17, 2023 04:20
@julienduchesne julienduchesne requested a review from a team as a code owner November 17, 2023 04:20
@julienduchesne julienduchesne merged commit 39c2b53 into master Nov 20, 2023
23 checks passed
@julienduchesne julienduchesne deleted the julienduchesne/without-resource-helper branch November 20, 2023 18:28
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