Fix e2e tests by using url instead of domain (#1437)

This commit is contained in:
chaodaiG 2019-06-08 11:58:41 -07:00 committed by Knative Prow Robot
parent 697630d651
commit ae7836c70b
1 changed files with 3 additions and 2 deletions

View File

@ -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 {
@ -158,6 +158,7 @@ func checkDeployment(t *testing.T, appName, expectedOutput string) {
}
t.Logf("Curling %s/%s", ingressAddr, serviceHost)
serviceHost = strings.Replace(serviceHost, "http://", "", 1)
outputString := ""
timeout = servingTimeout
for outputString != expectedOutput && timeout >= 0 {