Skip to content

Commit 52b625c

Browse files
committed
Remove v1beta3 from end-to-end tests
1 parent 38179e7 commit 52b625c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/end-to-end/core.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,15 @@ function wait_for_app() {
2323

2424
echo "[INFO] Waiting for database service to start"
2525
os::cmd::try_until_text "oc get -n $1 services" 'database' "$(( 2 * TIME_MIN ))"
26-
DB_IP=$(oc get -n "$1" --output-version=v1beta3 --template="{{ .spec.portalIP }}" service database)
26+
DB_IP=$(oc get -n "$1" --template="{{ .spec.portalIP }}" service database)
2727

2828
echo "[INFO] Waiting for frontend pod to start"
2929
os::cmd::try_until_text "oc get -n $1 pods" 'frontend.+Running' "$(( 2 * TIME_MIN ))"
3030
os::cmd::expect_success "oc logs dc/frontend -n $1"
3131

3232
echo "[INFO] Waiting for frontend service to start"
3333
os::cmd::try_until_text "oc get -n $1 services" 'frontend' "$(( 2 * TIME_MIN ))"
34-
FRONTEND_IP=$(oc get -n "$1" --output-version=v1beta3 --template="{{ .spec.portalIP }}" service frontend)
34+
FRONTEND_IP=$(oc get -n "$1" --template="{{ .spec.portalIP }}" service frontend)
3535

3636
echo "[INFO] Waiting for database to start..."
3737
wait_for_url_timed "http://${DB_IP}:5434" "[INFO] Database says: " $((3*TIME_MIN))
@@ -90,7 +90,7 @@ os::cmd::expect_success_and_text "oc rsh dc/docker-registry cat config.yml" "500
9090
os::cmd::expect_success_and_text "oc rsh rc/docker-registry-1 cat config.yml" "5000"
9191

9292
# services can end up on any IP. Make sure we get the IP we need for the docker registry
93-
DOCKER_REGISTRY=$(oc get --output-version=v1beta3 --template="{{ .spec.portalIP }}:{{ with index .spec.ports 0 }}{{ .port }}{{ end }}" service docker-registry)
93+
DOCKER_REGISTRY=$(oc get --template="{{ .spec.portalIP }}:{{ (index .spec.ports 0).port }}" service docker-registry)
9494

9595
os::cmd::expect_success_and_text "dig @${API_HOST} docker-registry.default.svc.cluster.local. +short A | head -n 1" "${DOCKER_REGISTRY/:5000}"
9696

@@ -297,7 +297,7 @@ os::cmd::expect_success "oc project ${CLUSTER_ADMIN_CONTEXT}"
297297

298298
# ensure the router is started
299299
# TODO: simplify when #4702 is fixed upstream
300-
os::cmd::try_until_text "oc get endpoints router --output-version=v1beta3 --template='{{ if .subsets }}{{ len .subsets }}{{ else }}0{{ end }}'" '[1-9]+' $((5*TIME_MIN))
300+
os::cmd::try_until_text "oc get endpoints router --template='{{ if .subsets }}{{ len .subsets }}{{ else }}0{{ end }}'" '[1-9]+' $((5*TIME_MIN))
301301
echo "[INFO] Waiting for router to start..."
302302
router_pod=$(oc get pod -n default -l deploymentconfig=router --template='{{(index .items 0).metadata.name}}')
303303
healthz_uri="http://$(oc get pod "${router_pod}" --template='{{.status.podIP}}'):1936/healthz"

0 commit comments

Comments
 (0)