Make various fixes to flex tests and fix some crashes

Remove disruptive from flex
This commit is contained in:
Hemant Kumar
2018-06-27 11:08:29 -04:00
parent 23000cfbd3
commit 4e7c2f638d
8 changed files with 87 additions and 62 deletions

View File

@@ -948,7 +948,10 @@ func TestHitNodesFromOutsideWithCount(externalIP string, httpPort int32, timeout
// This function executes commands on a node so it will work only for some
// environments.
func TestUnderTemporaryNetworkFailure(c clientset.Interface, ns string, node *v1.Node, testFunc func()) {
host := GetNodeExternalIP(node)
host, err := GetNodeExternalIP(node)
if err != nil {
Failf("Error getting node external ip : %v", err)
}
master := GetMasterAddress(c)
By(fmt.Sprintf("block network traffic from node %s to the master", node.Name))
defer func() {