Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RHOAIENG-5092 - Validate Authorino Resources #1346

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Validate Service Mesh State Managed
[Tags] Operator Tier1 ODS-2526 ServiceMesh-Managed

Is Resource Present ServiceMeshControlPlane ${SERVICE_MESH_CR_NAME} ${SERVICE_MESH_CR_NS} ${IS_PRESENT}
Check If Pod Exists istiod ${SERVICE_MESH_CR_NS}
Check If Pod Exists ${SERVICE_MESH_CR_NS} app=istiod ${FALSE}

Validate Service Mesh State Unmanaged
[Documentation] The purpose of this Test Case is to validate Service Mesh state 'Unmanaged'.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
*** Settings ***
Documentation Test Cases to verify RHOAI operator integration with Authorino operator

Library Collections
Resource ../../../../Resources/OCP.resource
Resource ../../../../Resources/ODS.robot
Suite Setup Suite Setup
Suite Teardown Suite Teardown


*** Variables ***
${OPERATOR_NS} ${OPERATOR_NAMESPACE}
${RHOAI_OPERATOR_DEPLOYMENT_NAME} rhods-operator
${DSCI_NAME} default-dsci
${SERVICE_MESH_OPERATOR_NS} openshift-operators
${SERVICE_MESH_OPERATOR_DEPLOYMENT_NAME} istio-operator
${AUTHORINO_OPERATOR_NS} openshift-operators
${AUTHORINO_OPERATOR_DEPLOYMENT_NAME} authorino-operator
${AUTHORINO_CR_NS} redhat-ods-applications-auth-provider
${AUTHORINO_CR_NAME} authorino

${IS_PRESENT} 0
${IS_NOT_PRESENT} 1

Check notice

Code scanning / Robocop

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

Variable '${IS_NOT_PRESENT}' is assigned but not used


*** Test Cases ***
Validate Authorino Resources
[Documentation] The purpose of this Test Case is to validate that Authorino resources have been created.
[Tags] Operator Tier1 RHOAIENG-5092

# Validate that Authorino CR has been created
Wait Until Keyword Succeeds 2 min 0 sec
... Is Resource Present Authorino ${AUTHORINO_CR_NAME} ${AUTHORINO_CR_NS} ${IS_PRESENT}

Check If Pod Exists ${AUTHORINO_CR_NS} authorino-resource ${FALSE}


*** Keywords ***
Suite Setup
[Documentation] Suite Setup
RHOSi Setup
Wait Until Operator Ready ${SERVICE_MESH_OPERATOR_DEPLOYMENT_NAME} ${SERVICE_MESH_OPERATOR_NS}
Wait Until Operator Ready ${RHOAI_OPERATOR_DEPLOYMENT_NAME} ${OPERATOR_NS}
Wait Until Operator Ready ${AUTHORINO_OPERATOR_DEPLOYMENT_NAME} ${AUTHORINO_OPERATOR_NS}
Wait For DSCI Ready State ${DSCI_NAME} ${OPERATOR_NS}

Suite Teardown
[Documentation] Suite Teardown
RHOSi Teardown