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.
This commit is contained in:
Justin Santa Barbara 2015-07-06 00:38:53 -04:00
parent 5bd82ffe6d
commit 8ce6c2db96

View File

@ -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.