-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Delete rules when site or deployment is deleted #8939
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
Conversation
✨ Benchmark results
⚡ Benchmark Comparison
|
} | ||
|
||
/** | ||
* @depends testCreateSite |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lets rewrite tests in this file to have no dependencies.
If you need to list, or get, or delete, inside the test you can make new site.
this way we prevent need to use @Depends
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In that case, we'd also need to delete the resources we create in each test at the end of it so that it doesn't cause conflicts with other tests.
For example, while testing listSites
, if I am creating sites for it inside the test itself, it should not list sites from other tests. Do you agree each test should also perform cleanup then?
Security Scan Results for PRDocker Image Scan Results
Source Code Scan Results🎉 No vulnerabilities found! |
What does this PR do?
Delete rules, deployments, builds, variables etc when deleting a site.
Delete rule when deleting a deployment.
Test Plan
(Write your test plan here. If you changed any code, please provide us with clear instructions on how you verified your changes work. Screenshots may also be helpful.)
Related PRs and Issues
Checklist