mirror of https://github.com/knative/docs.git
Fix e2e tests by using url instead of domain (#1437)
This commit is contained in:
parent
697630d651
commit
ae7836c70b
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue