Update e2e tests to list only schedulable nodes, to make them work with master Node registered.

This commit is contained in:
gmarek
2015-12-10 15:35:58 +01:00
parent 775369a8f1
commit f38455ddc3
26 changed files with 67 additions and 101 deletions

View File

@@ -250,10 +250,8 @@ func truncate(b []byte, maxLen int) []byte {
}
func pickNode(c *client.Client) (string, error) {
nodes, err := c.Nodes().List(api.ListOptions{})
if err != nil {
return "", err
}
// TODO: investigate why it doesn't work on master Node.
nodes := ListSchedulableNodesOrDie(c)
if len(nodes.Items) == 0 {
return "", fmt.Errorf("no nodes exist, can't test node proxy")
}