Use pod logs subresource from e2e

Means that e2e code doesn't need to access the proxy
This commit is contained in:
Clayton Coleman 2015-10-18 23:06:36 -04:00
parent 56093b7779
commit 34e9478cd3

View File

@ -1144,10 +1144,11 @@ func testContainerOutputMatcher(scenarioName string,
for time.Now().Sub(start) < (60 * time.Second) {
err = nil
logs, err = c.Get().
Prefix("proxy").
Resource("nodes").
Name(podStatus.Spec.NodeName).
Suffix("containerLogs", ns, podStatus.Name, containerName).
Resource("pods").
Namespace(ns).
Name(pod.Name).
SubResource("log").
Param("container", containerName).
Do().
Raw()
if err == nil && strings.Contains(string(logs), "Internal Error") {