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:
Clayton Coleman
2015-08-07 12:40:59 -04:00
parent 213e7a8ab6
commit e623d33343
5 changed files with 77 additions and 15 deletions

View File

@@ -78,7 +78,7 @@ var _ = Describe("Kubectl client", func() {
AfterEach(func() {
By(fmt.Sprintf("Destroying namespace for this suite %v", ns))
if err := c.Namespaces().Delete(ns); err != nil {
if err := deleteNS(c, ns); err != nil {
Failf("Couldn't delete ns %s", err)
}
})
@@ -467,7 +467,7 @@ var _ = Describe("Kubectl client", func() {
}
}
if !found {
Failf("Added annation not found")
Failf("Added annotation not found")
}
})
})