From 49372822a79469cdbb45cab7d7887e70c6ba2c19 Mon Sep 17 00:00:00 2001 From: CecileRobertMichon Date: Tue, 16 Jan 2018 15:11:48 -0800 Subject: [PATCH] add dashboard test debug log --- test/e2e/kubernetes/kubernetes_test.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/e2e/kubernetes/kubernetes_test.go b/test/e2e/kubernetes/kubernetes_test.go index c1accd7614..e5c380fb62 100644 --- a/test/e2e/kubernetes/kubernetes_test.go +++ b/test/e2e/kubernetes/kubernetes_test.go @@ -156,8 +156,8 @@ var _ = Describe("Azure Container Cluster using the Kubernetes Orchestrator", fu success := false for i := 0; i < 60; i++ { dashboardURL := fmt.Sprintf("http://%s:%v", node.Status.GetAddressByType("InternalIP").Address, port) - curlCMD := fmt.Sprintf("curl --max-time 60 %s", dashboardURL) - _, err := exec.Command("ssh", "-i", sshKeyPath, "-o", "ConnectTimeout=10", "-o", "StrictHostKeyChecking=no", "-o", "UserKnownHostsFile=/dev/null", master, curlCMD).CombinedOutput() + curlCMD := fmt.Sprintf("curl --max-time 60 %s, ssh-key path=%s", dashboardURL, sshKeyPath) + out, err := exec.Command("ssh", "-i", sshKeyPath, "-o", "ConnectTimeout=10", "-o", "StrictHostKeyChecking=no", "-o", "UserKnownHostsFile=/dev/null", master, curlCMD).CombinedOutput() if err == nil { success = true break @@ -165,6 +165,7 @@ var _ = Describe("Azure Container Cluster using the Kubernetes Orchestrator", fu if i > 58 { log.Println(curlCMD) log.Println(err.Error()) + log.Printf("out: %s", out) log.Printf("%#v\n", err) } time.Sleep(10 * time.Second)