@@ -10,27 +10,27 @@ RESOURCEDIR="${MY_DIR}/../resources"
10
10
os::test::junit::declare_suite_start " $MY_SCRIPT "
11
11
12
12
function check_resources() {
13
- header " Testing ML pipelines installation"
13
+ header " Testing Data Science Pipelines installation"
14
14
os::cmd::expect_success " oc project ${ODHPROJECT} "
15
15
os::cmd::try_until_text " oc get crd pipelineruns.tekton.dev " " pipelineruns.tekton.dev" $odhdefaulttimeout $odhdefaultinterval
16
- os::cmd::try_until_text " oc get pods -l application-crd-id=kubeflow -pipelines --field-selector='status.phase!=Running,status.phase!=Completed' -o jsonpath='{$.items[*].metadata.name}' | wc -w" " 0" $odhdefaulttimeout $odhdefaultinterval
17
- running_pods=$( oc get pods -l application-crd-id=kubeflow -pipelines --field-selector=' status.phase=Running' -o jsonpath=' {$.items[*].metadata.name}' | wc -w)
16
+ os::cmd::try_until_text " oc get pods -l application-crd-id=data-science -pipelines --field-selector='status.phase!=Running,status.phase!=Completed' -o jsonpath='{$.items[*].metadata.name}' | wc -w" " 0" $odhdefaulttimeout $odhdefaultinterval
17
+ running_pods=$( oc get pods -l application-crd-id=data-science -pipelines --field-selector=' status.phase=Running' -o jsonpath=' {$.items[*].metadata.name}' | wc -w)
18
18
os::cmd::expect_success " if [ " $running_pods " -gt " 0" ]; then exit 0; else exit 1; fi"
19
19
}
20
20
21
21
function check_ui_overlay() {
22
22
header " Checking UI overlay Kfdef deploys the UI"
23
- os::cmd::try_until_text " oc get pods -l app=ml -pipeline-ui --field-selector='status.phase=Running' -o jsonpath='{$.items[*].metadata.name}' | wc -w" " 1" $odhdefaulttimeout $odhdefaultinterval
23
+ os::cmd::try_until_text " oc get pods -l app=ds -pipeline-ui --field-selector='status.phase=Running' -o jsonpath='{$.items[*].metadata.name}' | wc -w" " 1" $odhdefaulttimeout $odhdefaultinterval
24
24
}
25
25
26
26
function create_pipeline() {
27
27
header " Creating a pipeline"
28
- route=` oc get route ml -pipeline || echo " " `
28
+ route=` oc get route ds -pipeline || echo " " `
29
29
if [[ -z $route ]]; then
30
- oc expose service ml -pipeline
30
+ oc expose service ds -pipeline
31
31
fi
32
- ROUTE=$( oc get route ml -pipeline --template={{.spec.host}})
33
- PIPELINE_ID=$( curl -s -F " uploadfile=@${RESOURCEDIR} /ml -pipelines/test-pipeline-run.yaml" ${ROUTE} /apis/v1beta1/pipelines/upload | jq -r .id)
32
+ ROUTE=$( oc get route ds -pipeline --template={{.spec.host}})
33
+ PIPELINE_ID=$( curl -s -F " uploadfile=@${RESOURCEDIR} /ds -pipelines/test-pipeline-run.yaml" ${ROUTE} /apis/v1beta1/pipelines/upload | jq -r .id)
34
34
os::cmd::try_until_not_text " curl -s ${ROUTE} /apis/v1beta1/pipelines/${PIPELINE_ID} | jq" " null" $odhdefaulttimeout $odhdefaultinterval
35
35
}
36
36
@@ -57,7 +57,7 @@ function check_run_status() {
57
57
58
58
function setup_monitoring() {
59
59
header " Enabling User Workload Monitoring on the cluster"
60
- oc apply -f ${RESOURCEDIR} /ml -pipelines/enable-uwm.yaml
60
+ oc apply -f ${RESOURCEDIR} /ds -pipelines/enable-uwm.yaml
61
61
}
62
62
63
63
function test_metrics() {
@@ -94,6 +94,6 @@ setup_monitoring
94
94
test_metrics
95
95
delete_runs
96
96
delete_pipeline
97
- oc delete route ml -pipeline
97
+ oc delete route ds -pipeline
98
98
99
99
os::test::junit::declare_suite_end
0 commit comments