From ae7836c70b74e3bcba2cd355da43f48a09bc54a2 Mon Sep 17 00:00:00 2001 From: chaodaiG <45011425+chaodaiG@users.noreply.github.com> Date: Sat, 8 Jun 2019 11:58:41 -0700 Subject: [PATCH] Fix e2e tests by using url instead of domain (#1437) --- test/e2e/sampleapptestbase.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/e2e/sampleapptestbase.go b/test/e2e/sampleapptestbase.go index e71ef364f..37cb9d0b6 100644 --- a/test/e2e/sampleapptestbase.go +++ b/test/e2e/sampleapptestbase.go @@ -69,7 +69,7 @@ func cleanup(yamlFilePath, workDir string) { } func serviceHostname(appName string) string { - return noStderrShell("kubectl", "get", "rt", appName, "-o", "jsonpath={.status.domain}", "-n", servingNamespace) + return noStderrShell("kubectl", "get", "rt", appName, "-o", "jsonpath={.status.url}", "-n", servingNamespace) } func ingressAddress(gateway string, addressType string) string { @@ -157,7 +157,8 @@ func checkDeployment(t *testing.T, appName, expectedOutput string) { t.Fatalf("Ingress not found (ingress='%s', host='%s')", ingressAddr, serviceHost) } t.Logf("Curling %s/%s", ingressAddr, serviceHost) - + + serviceHost = strings.Replace(serviceHost, "http://", "", 1) outputString := "" timeout = servingTimeout for outputString != expectedOutput && timeout >= 0 {