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 {