From 8ce6c2db96a9db8d8d10094fae3e278cc47226c2 Mon Sep 17 00:00:00 2001 From: Justin Santa Barbara Date: Mon, 6 Jul 2015 00:38:53 -0400 Subject: [PATCH] e2e: Check that node is healthy before isolating from master We simulate network failure, check the node is offline, and then check it recovers. This adds a check that the node is online before simulating network failure. --- test/e2e/resize_nodes.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/e2e/resize_nodes.go b/test/e2e/resize_nodes.go index f3488187cdf..0ef0434a0e0 100644 --- a/test/e2e/resize_nodes.go +++ b/test/e2e/resize_nodes.go @@ -375,6 +375,9 @@ func performTemporaryNetworkFailure(c *client.Client, ns, rcName string, replica } }() + Logf("Waiting for node %s to be ready", node.Name) + waitForNodeToBe(c, node.Name, true, 2*time.Minute) + // The command will block all outgoing network traffic from the node to the master // When multi-master is implemented, this test will have to be improved to block // network traffic to all masters.