Skip to content

Commit

Permalink
use cli project deletion
Browse files Browse the repository at this point in the history
rh-pre-commit.version: 2.3.2
rh-pre-commit.check-secrets: ENABLED
  • Loading branch information
rnetser committed Nov 26, 2024
1 parent 76918f8 commit 08a3d51
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion ods_ci/tests/Resources/Page/OCPDashboard/Pods/Pods.robot

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ Verify Tensorflow Model Via UI (OVMS on Kserve) # robocop: off=too-long-test-
${status_code} ${response_text}= Send Random Inference Request endpoint=${url} name=input:0

Check notice

Code scanning / Robocop

Variable '{{ name }}' is assigned but not used Note test

Variable '${response_text}' is assigned but not used
... shape={"B": 1, "H": 299, "W": 299, "C": 3} no_requests=1
Should Be Equal As Strings ${status_code} 200
[Teardown] Run Keywords Delete Project Via CLI By Display Name displayed_name="ALL" AND
[Teardown] Run Keywords Delete Project Via CLI By Display Name displayed_name=ALL AND
... Run Keyword If Test Failed Get Kserve Events And Logs
... model_name=${MODEL_NAME} project_title=${PRJ_TITLE}

Expand All @@ -88,7 +88,7 @@ Test Onnx Model Via UI (OVMS on Kserve)
Run Keyword And Continue On Failure Verify Model Inference With Retries
... ${SECURED_MODEL} ${INFERENCE_INPUT} ${EXPECTED_INFERENCE_SECURED_OUTPUT} token_auth=${FALSE}
... project_title=${SECOND_PROJECT}
[Teardown] Run Keywords Delete Project Via CLI By Display Name displayed_name="ALL" AND
[Teardown] Run Keywords Delete Project Via CLI By Display Name displayed_name=ALL AND
... Run Keyword If Test Failed Get Kserve Events And Logs
... model_name=${SECURED_MODEL} project_title=${SECOND_PROJECT}

Expand All @@ -98,7 +98,7 @@ Verify Multiple Projects With Same Model (OVMS on Kserve)
... ODS-2629 RHOAIENG-549
Create Openvino Models For Kserve server_name=${RUNTIME_NAME} model_name=${MODEL_NAME}
... project_name=${PRJ_TITLE} num_projects=3
[Teardown] Run Keywords Delete Project Via CLI By Display Name displayed_name="ALL" AND
[Teardown] Run Keywords Delete Project Via CLI By Display Name displayed_name=ALL AND
... Run Keyword If Test Failed Get Kserve Events And Logs
... model_name=${MODEL_NAME} project_title=${PRJ_TITLE}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,15 +81,15 @@ Cross Auth On Kserve Suite Setup
Launch Dashboard ${TEST_USER.USERNAME} ${TEST_USER.PASSWORD} ${TEST_USER.AUTH_TYPE}
... ${ODH_DASHBOARD_URL} ${BROWSER.NAME} ${BROWSER.OPTIONS}
Fetch Knative CA Certificate filename=openshift_ca_istio_knative.crt
Delete Project Via CLI By Display Name displayed_name="ALL"
Delete Project Via CLI By Display Name displayed_name=ALL

Cross Auth On Kserve Suite Teardown
[Documentation] Suite teardown steps after testing DSG. It Deletes
... all the DS projects created by the tests and run RHOSi teardown
# Even if kw fails, deleting the whole project will also delete the model
# Failure will be shown in the logs of the run nonetheless
IF ${MODEL_CREATED}
Delete Project Via CLI By Display Name displayed_name="ALL"
Delete Project Via CLI By Display Name displayed_name=ALL
ELSE
Log Model not deployed, skipping deletion step during teardown console=true
END
Expand Down

0 comments on commit 08a3d51

Please sign in to comment.