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 {
|
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 {
|
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)
|
t.Logf("Curling %s/%s", ingressAddr, serviceHost)
|
||||||
|
|
||||||
|
serviceHost = strings.Replace(serviceHost, "http://", "", 1)
|
||||||
outputString := ""
|
outputString := ""
|
||||||
timeout = servingTimeout
|
timeout = servingTimeout
|
||||||
for outputString != expectedOutput && timeout >= 0 {
|
for outputString != expectedOutput && timeout >= 0 {
|
||||||
|
|
Loading…
Reference in New Issue