Skip to content

Commit

Permalink
replace SKIP with IF
Browse files Browse the repository at this point in the history
  • Loading branch information
bdattoma committed Aug 21, 2024
1 parent 59f14db commit f6b87d0
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 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,15 @@ 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
${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 +257,7 @@ 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
${IS_SELF_MANAGED}= Is RHODS Self-Managed
Set Suite Variable ${IS_SELF_MANAGED}

0 comments on commit f6b87d0

Please sign in to comment.