Skip to content

Commit d8f425e

Browse files
committed
wip
1 parent 59b0bc7 commit d8f425e

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

openshift/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export DOWNSTREAM_E2E_FLAGS := -count=1 -v
4545
.PHONY: test-e2e
4646
test-e2e: ## Run the e2e tests.
4747
$(DIR)/operator-controller/build-test-registry.sh $(E2E_REGISTRY_NAMESPACE) $(E2E_REGISTRY_NAME) $(E2E_REGISTRY_IMAGE)
48-
oc create route passthrough $(E2E_REGISTRY_NAME) --service $(E2E_REGISTRY_NAME) -n $(E2E_REGISTRY_NAMESPACE)
48+
#oc create route passthrough $(E2E_REGISTRY_NAME) --service $(E2E_REGISTRY_NAME) -n $(E2E_REGISTRY_NAMESPACE)
4949
cd $(DIR)/../; \
5050
LOCAL_REGISTRY_HOST=$(shell oc get route $(E2E_REGISTRY_NAME) -n $(E2E_REGISTRY_NAMESPACE) -o jsonpath='{.spec.host}') \
5151
go test $(DOWNSTREAM_E2E_FLAGS) ./test/e2e/features_test.go --godog.tags="~@mirrored-registry && ~@catalog-updates" --k8s.cli=oc

openshift/operator-controller/build-test-registry.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,3 +118,11 @@ spec:
118118
EOF
119119

120120
oc wait --for=condition=Complete -n "${namespace}" "job/${name}-push" --timeout=60s
121+
122+
oc create route passthrough ${name} --service ${name} -n ${namespace}
123+
124+
until output=$(oc get route ${name} -n ${namespace} -o jsonpath='{.spec.host}') && [[ -n "$output" ]]; do
125+
sleep 1
126+
done
127+
128+
oc get route ${name} -n ${namespace} -o yaml

0 commit comments

Comments
 (0)