Skip to content

Commit 7c51005

Browse files
Merge pull request opendatahub-io#79 from gmfrasca/e2e-apiroute
Update e2e basictests to use APIServer Route
2 parents d7778fe + 6ff0de0 commit 7c51005

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

config/internal/apiserver/role_ds-pipeline.yaml.tmpl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,3 +85,9 @@ rules:
8585
- imagestreamtags
8686
verbs:
8787
- get
88+
- apiGroups:
89+
- route.openshift.io
90+
verbs:
91+
- get
92+
resources:
93+
- routes

tests/basictests/dsp-operator.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ function create_and_verify_data_science_pipelines_resources() {
3838
function check_data_science_pipeline_route() {
3939
header "Checking Routes of Data Science Pipeline availability"
4040

41-
os::cmd::try_until_text "oc get pods -n ${DSPAPROJECT} -l app=ds-pipeline-ui-sample --field-selector='status.phase=Running' -o jsonpath='{$.items[*].metadata.name}' | wc -w" "1" $odhdefaulttimeout $odhdefaultinterval
41+
os::cmd::try_until_text "oc get pods -n ${DSPAPROJECT} -l app=ds-pipeline-sample --field-selector='status.phase=Running' -o jsonpath='{$.items[*].metadata.name}' | wc -w" "1" $odhdefaulttimeout $odhdefaultinterval
4242
}
4343

4444
function setup_monitoring() {
@@ -59,8 +59,8 @@ function test_metrics() {
5959
function fetch_runs() {
6060
header "Fetch the dsp route and verify it works"
6161

62-
ROUTE=$(oc get route -n ${DSPAPROJECT} ds-pipeline-ui-sample --template={{.spec.host}})
63-
SA_TOKEN=$(oc create token ds-pipeline-ui-sample -n ${DSPAPROJECT})
62+
ROUTE=$(oc get route -n ${DSPAPROJECT} ds-pipeline-sample --template={{.spec.host}})
63+
SA_TOKEN=$(oc create token ds-pipeline-sample -n ${DSPAPROJECT})
6464

6565
os::cmd::try_until_text "curl -s -k -H \"Authorization: Bearer ${SA_TOKEN}\" 'https://${ROUTE}/apis/v1beta1/runs'" "{}" $odhdefaulttimeout $odhdefaultinterval
6666
}

0 commit comments

Comments
 (0)