e2e test cases should clean up more effectively
Graceful deletion exposes weakness in cleanup paths, add common hooks for waiting for namespcae deletion to complete, use direct delection where necessary, and add some debug output for finding cleanup flags (namespaces that aren't fully deleted)
This commit is contained in:
@@ -94,7 +94,8 @@ func (f *Framework) afterEach() {
|
||||
}
|
||||
|
||||
By(fmt.Sprintf("Destroying namespace %q for this suite.", f.Namespace.Name))
|
||||
if err := f.Client.Namespaces().Delete(f.Namespace.Name); err != nil {
|
||||
|
||||
if err := deleteNS(f.Client, f.Namespace.Name); err != nil {
|
||||
Failf("Couldn't delete ns %q: %s", f.Namespace.Name, err)
|
||||
}
|
||||
// Paranoia-- prevent reuse!
|
||||
|
Reference in New Issue
Block a user