-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
RHOAIENG-2508 ODS-2600 Validate DSC creates all Serverless CRs (#1259)
RHOAIENG-2508 The goal of this Test Case is to automate manual testing on the Platform scrum team
- Loading branch information
Showing
4 changed files
with
96 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
68 changes: 68 additions & 0 deletions
68
.../Tests/100__deploy/130__operators/140__serverless_operator/140__serverless_operator.robot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
*** Settings *** | ||
Documentation Test Cases to verify Serverless installation | ||
Library Collections | ||
Library SeleniumLibrary | ||
Library OpenShiftLibrary | ||
Resource ../../../../Resources/Page/OCPDashboard/OCPDashboard.resource | ||
Resource ../../../../Resources/OCP.resource | ||
Suite Setup Suite Setup | ||
Suite Teardown Suite Teardown | ||
|
||
|
||
*** Variables *** | ||
${KNATIVESERVING_NS} knative-serving | ||
${ISTIO_NS} istio-system | ||
${regex_pattern} ERROR | ||
${LABEL_SELECTOR} name=rhods-operator | ||
|
||
*** Test Cases *** | ||
Validate DSC creates all Serverless CRs | ||
[Documentation] The purpose of this Test Case is to validate the creation | ||
... of Serverless Custom Resources | ||
... ProductBug: RHOAIENG-4358 | ||
[Tags] Operator ODS-2600 ProductBug | ||
Assign Vars According To Product ${PRODUCT} | ||
Resource Should Exist KnativeServing knative-serving ${KNATIVESERVING_NS} | ||
Resource Status Should Be oc get KnativeServing knative-serving -n ${KNATIVESERVING_NS} -o json | jq '.status.conditions[] | select(.type=="Ready") | .status' KnativeServing "True" # robocop: disable | ||
Resource Should Exist Gateway knative-ingress-gateway ${KNATIVESERVING_NS} | ||
Resource Should Exist Gateway knative-local-gateway ${KNATIVESERVING_NS} | ||
Resource Should Exist Service knative-local-gateway ${ISTIO_NS} | ||
Resource Should Exist deployment controller ${KNATIVESERVING_NS} | ||
Wait For Pods Numbers 2 namespace=${KNATIVESERVING_NS} | ||
... label_selector=app.kubernetes.io/component=controller timeout=120 | ||
${pod_names}= Get Pod Names ${KNATIVESERVING_NS} app.kubernetes.io/component=controller | ||
Verify Containers Have Zero Restarts ${pod_names} ${KNATIVESERVING_NS} | ||
${podname}= Get Pod Name ${OPERATOR_NAMESPACE} ${LABEL_SELECTOR} | ||
Verify Pod Logs Do Not Contain ${podname} ${OPERATOR_NAMESPACE} ${regex_pattern} rhods-operator | ||
Wait For DSC Conditions Reconciled ${KNATIVESERVING_NS} default-dsc | ||
|
||
|
||
*** Keywords *** | ||
Suite Setup | ||
[Documentation] Suite Setup | ||
Set Library Search Order SeleniumLibrary | ||
RHOSi Setup | ||
|
||
Suite Teardown | ||
[Documentation] Suite Teardown | ||
Close All Browsers | ||
RHOSi Teardown | ||
|
||
Assign Vars According To Product | ||
[Documentation] Assign vars related to product | ||
[Arguments] ${PRODUCT} | ||
IF "${PRODUCT}" == "RHODS" | ||
Set Suite Variable ${OPERATOR_APPNAME} Red Hat OpenShift AI | ||
Set Suite Variable ${OPERATOR_NAME} Red Hat OpenShift AI | ||
ELSE IF "${PRODUCT}" == "ODH" | ||
Set Suite Variable ${OPERATOR_APPNAME} Open Data Hub Operator | ||
Set Suite Variable ${OPERATOR_NAME} Open Data Hub Operator | ||
END | ||
|
||
Wait For DSC Conditions Reconciled | ||
[Documentation] Checks all DSC conditions to be successfully reconciled | ||
[Arguments] ${namespace} ${dsc_name} | ||
${rc} ${out}= Run And Return Rc And Output | ||
... oc wait --timeout=3m --for jsonpath='{.status.conditions[].reason}'=ReconcileCompleted -n ${namespace} dsc ${dsc_name} # robocop: disable | ||
Should Be Equal As Integers ${rc} ${0} | ||
Log ${out} console=${out} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters