Skip to content

Commit

Permalink
fix: use common vars in the operator dependant tests to be able to ru…
Browse files Browse the repository at this point in the history
…n in both ODH/RHOAI
  • Loading branch information
CFSNM committed Jul 30, 2024
1 parent 5d819db commit 4ee9849
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions ods_ci/tests/Resources/RHOSi.resource
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ Assign Vars According To Product
Set Suite Variable ${OPERATOR_APPNAME} Red Hat OpenShift AI
Set Suite Variable ${OPERATOR_NAME} Red Hat OpenShift AI
Set Suite Variable ${OPERATOR_DEPLOYMENT_NAME} rhods-operator
Set Suite Variable ${OPERATOR_POD_CONTAINER_NAME} rhods-operator
Set Suite Variable ${OPERATOR_LABEL_SELECTOR} name=rhods-operator
Set Suite Variable ${AUTHORINO_CR_NS} redhat-ods-applications-auth-provider
Set Suite Variable ${DASHBOARD_DEPLOYMENT_NAME} rhods-dashboard
Expand All @@ -100,6 +101,7 @@ Assign Vars According To Product
Set Suite Variable ${OPERATOR_APPNAME} Open Data Hub Operator
Set Suite Variable ${OPERATOR_NAME} Open Data Hub Operator
Set Suite Variable ${OPERATOR_DEPLOYMENT_NAME} opendatahub-operator-controller-manager
Set Suite Variable ${OPERATOR_POD_CONTAINER_NAME} manager
Set Suite Variable ${OPERATOR_LABEL_SELECTOR} control-plane=controller-manager
Set Suite Variable ${AUTHORINO_CR_NS} opendatahub-auth-provider
Set Suite Variable ${DASHBOARD_DEPLOYMENT_NAME} odh-dashboard
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ Validate DSC and DSCI Created With No Errors When Kserve Serving Is Unmanaged An
Suite Setup
[Documentation] Suite Setup
Set Library Search Order SeleniumLibrary
RHOSi Setup

Suite Teardown
[Documentation] Suite Teardown
Expand Down Expand Up @@ -208,7 +209,7 @@ DataScienceCluster Should Fail Because Service Mesh Operator Is Not Installed
Should Contain ${output} operator servicemeshoperator not found. Please install the operator before enabling kserve component #robocop:disable

${rc} ${logs}= Run And Return Rc And Output
... oc logs -l name=rhods-operator -c rhods-operator -n ${OPERATOR_NS} --ignore-errors
... oc logs -l ${OPERATOR_LABEL_SELECTOR} -c ${OPERATOR_POD_CONTAINER_NAME} -n ${OPERATOR_NS} --ignore-errors

Should Contain ${logs} failed to find the pre-requisite Service Mesh Operator subscription, please ensure Service Mesh Operator is installed. #robocop:disable

Expand Down

0 comments on commit 4ee9849

Please sign in to comment.