Skip to content

Commit

Permalink
add dashboard test debug log
Browse files Browse the repository at this point in the history
  • Loading branch information
CecileRobertMichon committed Jan 16, 2018
1 parent 66918b8 commit 4937282
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/e2e/kubernetes/kubernetes_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,15 +156,16 @@ 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
}
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)
Expand Down

0 comments on commit 4937282

Please sign in to comment.