-
Notifications
You must be signed in to change notification settings - Fork 28
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
End-to-end tests don't clean up scans when run individually #231
Comments
Looking at the namespace, it appears the scan finalizer tripped:
|
Also noticed that if a test fails, the cluster role bindings are not cleaned up. Is this intentional?
|
Something else I noticed is that scans aren't cleaned up in time.
I was able to recreate this using I know the tests do clean up the SSB, but I wonder if the tests are cleaning up the rest of the environment/CRDs before the scan and suite get deleted. |
Added some debugging to the e2e suite that might help us track down what's going on. |
If you run a single e2e test that produces a scan using the
-testRegex
flag (introduced in PR #227), you'll notice that the scan created by the test isn't cleaned up.This causes issues when you try and run the same test twice.
Here's what I did to reproduce:
Which leaves the following scan after the test completes:
Running the test test again fails because the test times out (the scan setting binding doesn't process).
The text was updated successfully, but these errors were encountered: