Check whether all nodes are healthy in e2e framework

This commit is contained in:
Wojciech Tyczynski
2015-07-07 13:53:03 +02:00
parent 73cb04ad6b
commit 54f2305dec
3 changed files with 25 additions and 0 deletions

View File

@@ -412,6 +412,10 @@ var _ = Describe("Nodes", func() {
})
AfterEach(func() {
By("checking whether all nodes are healthy")
if err := allNodesReady(c); err != nil {
Failf("Not all nodes are ready: %v", err)
}
By(fmt.Sprintf("destroying namespace for this suite %s", ns))
if err := c.Namespaces().Delete(ns); err != nil {
Failf("Couldn't delete namespace '%s', %v", ns, err)