From 8d4a71c4ff8fcf9307952a75ca39f83d0d333bcb Mon Sep 17 00:00:00 2001 From: Krzysztof Kuzmicki Date: Tue, 5 Apr 2022 09:24:09 +0200 Subject: [ROBOT] Add timout flag for helm unintsll operation We've observed a race condition during testing JOB restarts for 5gbulkpm. Due to restarts of failing xtesting JOBs there is need to have fully executed teardown by previous robot xtesting JOBs before starting new one. Signed-off-by: Krzysztof Kuzmicki Issue-ID: INT-1895 Change-Id: Id725d68bb845020478716874de0d710d037e9c07 --- robot/resources/chart_museum.robot | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/robot/resources/chart_museum.robot b/robot/resources/chart_museum.robot index 173e2347..8969336e 100644 --- a/robot/resources/chart_museum.robot +++ b/robot/resources/chart_museum.robot @@ -62,9 +62,17 @@ Install helm charts from folder Uninstall helm charts [Documentation] Uninstall DCAE Servcie using helm charts [Arguments] ${dcae_service_helm_name} - ${helm_uninstall}= Set Variable helm uninstall ${dcae_service_helm_name} + ${helm_uninstall}= Set Variable helm uninstall ${dcae_service_helm_name} --timeout 5m0s ${helm_uninstall_command_output}= Run And Return Rc And Output ${helm_uninstall} Should Be Equal As Integers ${helm_uninstall_command_output[0]} 0 + ${helm_check}= Set Variable kubectl get pods -n onap | grep ${dcae_service_helm_name} + Wait Until Keyword Succeeds 5 minute 5 sec Helm charts uninstallation check ${helm_check} + +Helm charts uninstallation check + [Arguments] ${helm_check} + ${helm_uninstall_check_output}= Run And Return Rc And Output ${helm_check} + Should Be Equal As Integers ${helm_uninstall_check_output[0]} 1 + Log ${helm_uninstall_check_output[1]} -- cgit 1.2.3-korg