Skip to content

Commit

Permalink
Fix "SKIPPED" status in Post upgrade suite (red-hat-data-services#1738)
Browse files Browse the repository at this point in the history
* replace SKIP with IF

* add missing documentation
  • Loading branch information
bdattoma authored Aug 21, 2024
1 parent be6c8c4 commit 55534fe
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions ods_ci/tests/Tests/0200__rhoai_upgrade/0203__post_upgrade.robot
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ Resource ../../Resources/Page/HybridCloudConsole/OCM.robot
Resource ../../Resources/Page/DistributedWorkloads/DistributedWorkloads.resource
Resource ../../Resources/Page/DistributedWorkloads/WorkloadMetricsUI.resource
Resource ../../Resources/CLI/MustGather/MustGather.resource
Suite Setup Upgrade Suite Setup


*** Variables ***
${S_SIZE} 25
Expand Down Expand Up @@ -218,7 +220,7 @@ Dashboard Suite Setup

Dashboard Test Teardown
[Documentation] Basic suite Teradown
Upgrade Test Teardown
IF not ${IS_SELF_MANAGED} Managed RHOAI Upgrade Test Teardown
Close All Browsers

Get Dashboard Config Data
Expand All @@ -231,16 +233,16 @@ Set Default Users
[Documentation] Set Default user settings
Set Standard RHODS Groups Variables
Set Default Access Groups Settings
Upgrade Test Teardown
IF not ${IS_SELF_MANAGED} Managed RHOAI Upgrade Test Teardown

Delete OOTB Image
[Documentation] Delete the Custom notbook create
${status} Run Keyword And Return Status Oc Delete kind=ImageStream name=byon-upgrade namespace=${APPLICATIONS_NAMESPACE} #robocop:disable
IF not ${status} Fail Notebook image is deleted after the upgrade
Upgrade Test Teardown
IF not ${IS_SELF_MANAGED} Managed RHOAI Upgrade Test Teardown

Upgrade Test Teardown
Skip If RHODS Is Self-Managed
Managed RHOAI Upgrade Test Teardown
[Documentation] Check rhods_aggregate_availability metric when RHOAI is installed as managed
${expression} = Set Variable rhods_aggregate_availability&step=1
${resp} = Prometheus.Run Query ${RHODS_PROMETHEUS_URL} ${RHODS_PROMETHEUS_TOKEN} ${expression}
Log rhods_aggregate_availability: ${resp.json()["data"]["result"][0]["value"][-1]}
Expand All @@ -256,3 +258,8 @@ Upgrade Test Teardown
Log rhods_aggregate_availability: ${resp.json()["data"]["result"][0]["value"][-1]}
@{list_values} = Create List 1
Run Keyword And Warn On Failure Should Contain ${list_values} ${resp.json()["data"]["result"][0]["value"][-1]}

Upgrade Suite Setup
[Documentation] Set of action to run as Suite setup
${IS_SELF_MANAGED}= Is RHODS Self-Managed
Set Suite Variable ${IS_SELF_MANAGED}

0 comments on commit 55534fe

Please sign in to comment.