From 40de688366849ee52710a1e2be9c7223e2397ade Mon Sep 17 00:00:00 2001 From: Luca Giorgi Date: Wed, 21 Sep 2022 11:48:50 +0200 Subject: [PATCH] Make sure Pod Toleration setting is applied before running TC (#567) * Add sleep to ensure setting is applied Signed-off-by: Luca Giorgi * Move sleep withing save changes keyword Signed-off-by: Luca Giorgi Signed-off-by: Luca Giorgi --- tests/Resources/Page/ODH/ODHDashboard/ODHDashboard.robot | 4 +++- tests/Tests/800__culler/culler.robot | 1 - 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/Resources/Page/ODH/ODHDashboard/ODHDashboard.robot b/tests/Resources/Page/ODH/ODHDashboard/ODHDashboard.robot index 49aa97d23..728c94e76 100644 --- a/tests/Resources/Page/ODH/ODHDashboard/ODHDashboard.robot +++ b/tests/Resources/Page/ODH/ODHDashboard/ODHDashboard.robot @@ -390,6 +390,9 @@ Save Changes In Cluster Settings Click Button Save changes Wait Until Keyword Succeeds 30 1 ... Wait Until Page Contains Settings changes saved. + # New setting applies after ~5-10s. Sleep here to make + # sure it is applied. + Sleep 10s Enable "Usage Data Collection" [Documentation] Once in Settings > Cluster Settings, enables "Usage Data Collection" @@ -436,7 +439,6 @@ Restore PVC Value To Default Size Wait Until Page Contains Element xpath://input[@id="pvc-size-input"] timeout=30 Click Button Restore Default Save Changes In Cluster Settings - Sleep 20s msg=NOTE: This change will cause juypterhub to restart. It will take 30 seconds before juypterhub will be available. #robocop:disable RHODS Notification Drawer Should Contain [Documentation] Verifies RHODS Notifications contains given Message diff --git a/tests/Tests/800__culler/culler.robot b/tests/Tests/800__culler/culler.robot index 5186a3516..9aaaae001 100644 --- a/tests/Tests/800__culler/culler.robot +++ b/tests/Tests/800__culler/culler.robot @@ -175,7 +175,6 @@ Disable Notebook Culler Click Element xpath://input[@id="culler-timeout-unlimited"] Save Changes In Cluster Settings END - Sleep 30s msg=Give time for rollout Teardown [Documentation] Teardown for the test